Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for CONFIG_FS_WRITABLE #602

Merged
merged 12 commits into from
Mar 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fs/: Remove support for CONFIG_FS_READABLE
  • Loading branch information
gregory-nutt committed Mar 21, 2020
commit 4e28e15c6c414eaed4b9f43e04fc18f25f355ddc
6 changes: 0 additions & 6 deletions fs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion fs/binfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion fs/cromfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion fs/fat/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion fs/hostfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion fs/littlefs/Kconfig
Original file line number Diff line number Diff line change
@@ -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.
49 changes: 12 additions & 37 deletions fs/mount/fs_mount.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
* 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:https://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.
*
****************************************************************************/

Expand All @@ -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
****************************************************************************/
Expand Down Expand Up @@ -540,4 +516,3 @@ int mount(FAR const char *source, FAR const char *target,
#endif /* BDFS_SUPPORT || MDFS_SUPPORT || NODFS_SUPPORT */
}

#endif /* CONFIG_FS_READABLE */
1 change: 0 additions & 1 deletion fs/nfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion fs/nxffs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 0 additions & 1 deletion fs/procfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion fs/romfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion fs/smartfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 0 additions & 1 deletion fs/spiffs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion fs/tmpfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down