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
-6
View File
@@ -53,12 +53,6 @@ config PSEUDOFS_SOFTLINKS
to link a directory in the pseudo-file system, such as /bin, to to link a directory in the pseudo-file system, such as /bin, to
to a directory in a mounted volume, say /mnt/sdcard/bin. 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/aio/Kconfig
source fs/semaphore/Kconfig source fs/semaphore/Kconfig
source fs/mqueue/Kconfig source fs/mqueue/Kconfig
-1
View File
@@ -7,7 +7,6 @@ config FS_BINFS
bool "BINFS File System" bool "BINFS File System"
default n default n
depends on BUILTIN depends on BUILTIN
select FS_READABLE
---help--- ---help---
The BINFS file system is provides access to builtin applications through The BINFS file system is provides access to builtin applications through
the NuttX file system. The BINFS may, for example, be mount at /bin. the NuttX file system. The BINFS may, for example, be mount at /bin.
-1
View File
@@ -7,7 +7,6 @@ config FS_CROMFS
bool "CROMFS file system" bool "CROMFS file system"
default n default n
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
select FS_READABLE
select LIBC_LZF select LIBC_LZF
---help--- ---help---
Enable Compessed Read-Only Filesystem (CROMFS) support Enable Compessed Read-Only Filesystem (CROMFS) support
-1
View File
@@ -7,7 +7,6 @@ config FS_FAT
bool "FAT file system" bool "FAT file system"
default n default n
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help--- ---help---
Enable FAT filesystem support Enable FAT filesystem support
-1
View File
@@ -7,7 +7,6 @@ config FS_HOSTFS
bool "Host File System" bool "Host File System"
default n default n
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help--- ---help---
The Host file system provides a mechanism to mount directories The Host file system provides a mechanism to mount directories
from the host OS during simulation mode. The host directory from the host OS during simulation mode. The host directory
-1
View File
@@ -1,7 +1,6 @@
config FS_LITTLEFS config FS_LITTLEFS
bool "LITTLEFS File System" bool "LITTLEFS File System"
default n default n
select FS_READABLE
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
---help--- ---help---
Build the LITTLEFS file system. https://github.com/ARMmbed/littlefs. Build the LITTLEFS file system. https://github.com/ARMmbed/littlefs.
+12 -37
View File
@@ -1,36 +1,20 @@
/**************************************************************************** /****************************************************************************
* fs/mount/fs_mount.c * fs/mount/fs_mount.c
* *
* Copyright (C) 2007-2009, 2011-2013, 2015, 2017-2019 Gregory Nutt. All * Licensed to the Apache Software Foundation (ASF) under one or more
* rights reserved. * contributor license agreements. See the NOTICE file distributed with
* Author: Gregory Nutt <gnutt@nuttx.org> * 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 * http://www.apache.org/licenses/LICENSE-2.0
* modification, are permitted provided that the following conditions
* are met:
* *
* 1. Redistributions of source code must retain the above copyright * Unless required by applicable law or agreed to in writing, software
* notice, this list of conditions and the following disclaimer. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* 2. Redistributions in binary form must reproduce the above copyright * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* notice, this list of conditions and the following disclaimer in * License for the specific language governing permissions and limitations
* the documentation and/or other materials provided with the * under the License.
* 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.
* *
****************************************************************************/ ****************************************************************************/
@@ -52,14 +36,6 @@
#include "inode/inode.h" #include "inode/inode.h"
#include "driver/driver.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 * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
@@ -540,4 +516,3 @@ errout:
#endif /* BDFS_SUPPORT || MDFS_SUPPORT || NODFS_SUPPORT */ #endif /* BDFS_SUPPORT || MDFS_SUPPORT || NODFS_SUPPORT */
} }
#endif /* CONFIG_FS_READABLE */
-1
View File
@@ -7,7 +7,6 @@ config NFS
bool "NFS client file system" bool "NFS client file system"
default n default n
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help--- ---help---
Enable network file system (NFS) client file system Enable network file system (NFS) client file system
-1
View File
@@ -7,7 +7,6 @@ config FS_NXFFS
bool "NXFFS file system" bool "NXFFS file system"
default n default n
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help--- ---help---
Enable NuttX FLASH file system (NXFF) support. Enable NuttX FLASH file system (NXFF) support.
-1
View File
@@ -6,7 +6,6 @@
config FS_PROCFS config FS_PROCFS
bool "PROCFS File System" bool "PROCFS File System"
default n default n
select FS_READABLE
---help--- ---help---
The PROCFS file system provides access to task status and other driver The PROCFS file system provides access to task status and other driver
status through the NuttX file system. The PROCFS may, for example, be status through the NuttX file system. The PROCFS may, for example, be
-1
View File
@@ -7,7 +7,6 @@ config FS_ROMFS
bool "ROMFS file system" bool "ROMFS file system"
default n default n
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help--- ---help---
Enable ROMFS filesystem support Enable ROMFS filesystem support
-1
View File
@@ -7,7 +7,6 @@ config FS_SMARTFS
bool "SMART file system" bool "SMART file system"
default n default n
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help--- ---help---
Enable NuttX SMART Flash file system (SMARTFS) support. Enable NuttX SMART Flash file system (SMARTFS) support.
-1
View File
@@ -6,7 +6,6 @@
config FS_SPIFFS config FS_SPIFFS
bool "SPIFFS File System" bool "SPIFFS File System"
default n default n
select FS_READABLE
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
---help--- ---help---
Build the SPIFFS file system. This is a port of version 0.3.7 of Build the SPIFFS file system. This is a port of version 0.3.7 of
-1
View File
@@ -7,7 +7,6 @@ config FS_TMPFS
bool "TMPFS file system" bool "TMPFS file system"
default n default n
depends on !DISABLE_MOUNTPOINT depends on !DISABLE_MOUNTPOINT
select FS_READABLE
---help--- ---help---
Enable TMPFS filesystem support Enable TMPFS filesystem support