CONFIG_NFILE_DESCRIPTORS=0 can no longer be used to disable the file system. NuttX with no file system does not make sense.

Squashed commit of the following:

    configs/:  The few configurations that formerly set CONFIG_NFILE_DESCRIPTORS=0 should not default, rather they should set the number of descriptors to 3.
    fs/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    tools/:  Tools updates for changes to usage of CONFIG_NFILE_DESCRIPTORS.
    syscall/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    libs/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    include/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    drivers/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    Documentation/:  Remove all references to CONFIG_NFILE_DESCRIPTORS == 0
    binfmt/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    arch/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    net/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    sched/:  Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS == 0
    sched/Kconfig:  CONFIG_NFILE_DESCRIPTORS may no longer to set to a value less than 3
    configs/:  Remove all settings for CONFIG_NFILE_DESCRIPTORS < 3
This commit is contained in:
Gregory Nutt
2019-02-11 12:09:26 -06:00
parent 07bcc6292a
commit a64869aa67
141 changed files with 374 additions and 1008 deletions
+4 -17
View File
@@ -115,26 +115,13 @@ if [ "X$disablescript" = "Xy" ]; then
exit 1
fi
# We need at least 2 file descriptors 1 for the ROMFS mount and one for
# FAT mount performed in rcS. That still wouldn't be enough to to do much
# with NSH
# We need at least 5 file descriptors: One for the ROMFS mount and one for
# FAT mount performed in rcS, plus three for stdio.
if [ -z "$ndescriptors" -o "$ndescriptors" -lt 2 ]; then
echo "No file descriptors have been allocated"
if [ "X$devconsole" = "Xy" ]; then
echo "Set CONFIG_NFILE_DESCRIPTORS to value greater than 4"
else
echo "Set CONFIG_NFILE_DESCRIPTORS to value greater than 1"
fi
exit 1
fi
# If a console is enabled, then three more file descriptors are required
# for stdin, stdout, and stderr
if [ "X$devconsole" = "Xy" -a "$ndescriptors" -lt 5 ]; then
if [ -z "$ndescriptors" -o "$ndescriptors" -lt 5 ]; then
echo "Insufficient file descriptors have been allocated"
echo "Set CONFIG_NFILE_DESCRIPTORS to value greater than 4"
exit 1
fi
# ROMFS support is required, of course