fs/: Remove support for CONFIG_FS_READABLE

This commit is contained in:
Gregory Nutt 2020-03-21 10:58:46 -06:00 committed by Xiang Xiao
parent 431286532c
commit 2b532ae4a8
14 changed files with 12 additions and 55 deletions

View file

@ -53,12 +53,6 @@ config PSEUDOFS_SOFTLINKS
to link a directory in the pseudo-file system, such as /bin, to
to a directory in a mounted volume, say /mnt/sdcard/bin.
config FS_READABLE
bool
default n
---help---
Automatically selected if any readable file system is selected
source fs/aio/Kconfig
source fs/semaphore/Kconfig
source fs/mqueue/Kconfig

View file

@ -7,7 +7,6 @@ config FS_BINFS
bool "BINFS File System"
default n
depends on BUILTIN
select FS_READABLE
---help---
The BINFS file system is provides access to builtin applications through
the NuttX file system. The BINFS may, for example, be mount at /bin.

View file

@ -7,7 +7,6 @@ config FS_CROMFS
bool "CROMFS file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
select LIBC_LZF
---help---
Enable Compessed Read-Only Filesystem (CROMFS) support

View file

@ -7,7 +7,6 @@ config FS_FAT
bool "FAT file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help---
Enable FAT filesystem support

View file

@ -7,7 +7,6 @@ config FS_HOSTFS
bool "Host File System"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help---
The Host file system provides a mechanism to mount directories
from the host OS during simulation mode. The host directory

View file

@ -1,7 +1,6 @@
config FS_LITTLEFS
bool "LITTLEFS File System"
default n
select FS_READABLE
depends on !DISABLE_MOUNTPOINT
---help---
Build the LITTLEFS file system. https://github.com/ARMmbed/littlefs.

View file

@ -1,36 +1,20 @@
/****************************************************************************
* fs/mount/fs_mount.c
*
* Copyright (C) 2007-2009, 2011-2013, 2015, 2017-2019 Gregory Nutt. All
* rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* http://www.apache.org/licenses/LICENSE-2.0
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
@ -52,14 +36,6 @@
#include "inode/inode.h"
#include "driver/driver.h"
/* At least one filesystem must be defined, or this file will not compile.
* It may be desire-able to make file systems dynamically registered at
* some time in the future, but at present, this file needs to know about
* every configured filesystem.
*/
#ifdef CONFIG_FS_READABLE
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -540,4 +516,3 @@ errout:
#endif /* BDFS_SUPPORT || MDFS_SUPPORT || NODFS_SUPPORT */
}
#endif /* CONFIG_FS_READABLE */

View file

@ -7,7 +7,6 @@ config NFS
bool "NFS client file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help---
Enable network file system (NFS) client file system

View file

@ -7,7 +7,6 @@ config FS_NXFFS
bool "NXFFS file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help---
Enable NuttX FLASH file system (NXFF) support.

View file

@ -6,7 +6,6 @@
config FS_PROCFS
bool "PROCFS File System"
default n
select FS_READABLE
---help---
The PROCFS file system provides access to task status and other driver
status through the NuttX file system. The PROCFS may, for example, be

View file

@ -7,7 +7,6 @@ config FS_ROMFS
bool "ROMFS file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help---
Enable ROMFS filesystem support

View file

@ -7,7 +7,6 @@ config FS_SMARTFS
bool "SMART file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help---
Enable NuttX SMART Flash file system (SMARTFS) support.

View file

@ -6,7 +6,6 @@
config FS_SPIFFS
bool "SPIFFS File System"
default n
select FS_READABLE
depends on !DISABLE_MOUNTPOINT
---help---
Build the SPIFFS file system. This is a port of version 0.3.7 of

View file

@ -7,7 +7,6 @@ config FS_TMPFS
bool "TMPFS file system"
default n
depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help---
Enable TMPFS filesystem support