Fix NT stype upper/lower case FAT 8.3 filename
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3784 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
65d19ae3dc
commit
5a05a26d43
@ -1908,5 +1908,12 @@
|
|||||||
before, leaving data in the hardware would cause infinite interrupts
|
before, leaving data in the hardware would cause infinite interrupts
|
||||||
one most MCUs since you must read the data in order to clear the
|
one most MCUs since you must read the data in order to clear the
|
||||||
interrupt.
|
interrupt.
|
||||||
* arch/arm/src/lpc17xx/lpc17_can.c: Added a CAN driver contributed by Lzyy.
|
* arch/arm/src/lpc17xx/lpc17_can.c: Added a CAN driver contributed by
|
||||||
|
Li Zhuoyi (Lzyy).
|
||||||
* include/stddefs.h and sys/types: Added type wchar_t.
|
* include/stddefs.h and sys/types: Added type wchar_t.
|
||||||
|
* fs/fat/fat_fat32dirent.c: The configuration CONFIG_FAT_LCNAMES has
|
||||||
|
been around for some time but never tested until now. This setting
|
||||||
|
will mimic the NT 8.3 file name behavior: File names or extensions
|
||||||
|
may be all upper or all lower case (but not mixed). If
|
||||||
|
CONFIG_FAT_LCNAMES is not selected, all filenames are strictly upper
|
||||||
|
case.
|
||||||
|
@ -3764,7 +3764,7 @@ build
|
|||||||
<code>CONFIG_FAT_SECTORSIZE</code>: Max supported sector size.
|
<code>CONFIG_FAT_SECTORSIZE</code>: Max supported sector size.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>CONFIG_FAT_LCNAME</code>: Enable use of the NT-style upper/lower case 8.3 file name support.
|
<code>CONFIG_FAT_LCNAMES</code>: Enable use of the NT-style upper/lower case 8.3 file name support.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>CONFIG_FAT_LFN</code>: Enable FAT long file names.
|
<code>CONFIG_FAT_LFN</code>: Enable FAT long file names.
|
||||||
@ -3775,6 +3775,7 @@ build
|
|||||||
<code>CONFIG_FAT_MAXFNAME</code>: If <code>CONFIG_FAT_LFN</code> is defined, then the default, maximum long file name is 255 bytes.
|
<code>CONFIG_FAT_MAXFNAME</code>: If <code>CONFIG_FAT_LFN</code> is defined, then the default, maximum long file name is 255 bytes.
|
||||||
This can eat up a lot of memory (especially stack space).
|
This can eat up a lot of memory (especially stack space).
|
||||||
If you are willing to live with some non-standard, short long file names, then define this value.
|
If you are willing to live with some non-standard, short long file names, then define this value.
|
||||||
|
A good choice would be the same value as selected for CONFIG_NAME_MAX which will limit the visibility of longer file names anyway.
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<code>CONFIG_FS_NXFFS</code>: Enable NuttX FLASH file system (NXFF) support.
|
<code>CONFIG_FS_NXFFS</code>: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
@ -564,7 +564,7 @@ defconfig -- This is a configuration file similar to the Linux
|
|||||||
Filesystem configuration
|
Filesystem configuration
|
||||||
CONFIG_FS_FAT - Enable FAT filesystem support
|
CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
CONFIG_FAT_SECTORSIZE - Max supported sector size
|
CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
CONFIG_FAT_LCNAME - Enable use of the NT-style upper/lower case 8.3
|
CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
file name support.
|
file name support.
|
||||||
CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
patents on FAT long file name technology. Please read the
|
patents on FAT long file name technology. Please read the
|
||||||
@ -574,7 +574,9 @@ defconfig -- This is a configuration file similar to the Linux
|
|||||||
default, maximum long file name is 255 bytes. This can eat up
|
default, maximum long file name is 255 bytes. This can eat up
|
||||||
a lot of memory (especially stack space). If you are willing
|
a lot of memory (especially stack space). If you are willing
|
||||||
to live with some non-standard, short long file names, then
|
to live with some non-standard, short long file names, then
|
||||||
define this value.
|
define this value. A good choice would be the same value as
|
||||||
|
selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
of longer file names anyway.
|
||||||
CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
This must have one of the values of 0xff or 0x00.
|
This must have one of the values of 0xff or 0x00.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# sim/nsh/defconfig
|
# sim/nsh/defconfig
|
||||||
#
|
#
|
||||||
# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -254,11 +254,53 @@ CONFIG_PREALLOC_WDOGS=32
|
|||||||
CONFIG_PREALLOC_TIMERS=8
|
CONFIG_PREALLOC_TIMERS=8
|
||||||
|
|
||||||
#
|
#
|
||||||
# FAT filesystem configuration
|
# Filesystem configuration
|
||||||
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
|
#
|
||||||
CONFIG_FS_FAT=y
|
CONFIG_FS_FAT=y
|
||||||
|
CONFIG_FAT_LCNAMES=y
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=y
|
CONFIG_FS_ROMFS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/stm3210e-eval/RIDE/defconfig
|
# configs/stm3210e-eval/RIDE/defconfig
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009-2011 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -449,8 +449,49 @@ CONFIG_PREALLOC_TIMERS=4
|
|||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
|
#
|
||||||
CONFIG_FS_FAT=n
|
CONFIG_FS_FAT=n
|
||||||
|
CONFIG_FAT_LCNAMES=n
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/stm3210e-eval/buttons/defconfig
|
# configs/stm3210e-eval/buttons/defconfig
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -463,8 +463,49 @@ CONFIG_PREALLOC_TIMERS=4
|
|||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
|
#
|
||||||
CONFIG_FS_FAT=n
|
CONFIG_FS_FAT=n
|
||||||
|
CONFIG_FAT_LCNAMES=n
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/stm3210e-eval/nsh/defconfig
|
# configs/stm3210e-eval/nsh/defconfig
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009-2011 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -458,8 +458,49 @@ CONFIG_PREALLOC_TIMERS=4
|
|||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
|
#
|
||||||
CONFIG_FS_FAT=y
|
CONFIG_FS_FAT=y
|
||||||
|
CONFIG_FAT_LCNAMES=y
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -471,9 +471,49 @@ CONFIG_PREALLOC_TIMERS=4
|
|||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
#
|
#
|
||||||
CONFIG_FS_FAT=y
|
CONFIG_FS_FAT=y
|
||||||
|
CONFIG_FAT_LCNAMES=y
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -482,9 +482,49 @@ CONFIG_FB_HWCURSORIMAGE=n
|
|||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
#
|
#
|
||||||
CONFIG_FS_FAT=n
|
CONFIG_FS_FAT=n
|
||||||
|
CONFIG_FAT_LCNAMES=n
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -482,9 +482,49 @@ CONFIG_FB_HWCURSORIMAGE=n
|
|||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
#
|
#
|
||||||
CONFIG_FS_FAT=n
|
CONFIG_FS_FAT=n
|
||||||
|
CONFIG_FAT_LCNAMES=n
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/stm3210e-eval/ostest/defconfig
|
# configs/stm3210e-eval/ostest/defconfig
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -460,8 +460,49 @@ CONFIG_PREALLOC_TIMERS=4
|
|||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
|
#
|
||||||
CONFIG_FS_FAT=n
|
CONFIG_FS_FAT=n
|
||||||
|
CONFIG_FAT_LCNAMES=n
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/stm3210e-eval/usbserial/defconfig
|
# configs/stm3210e-eval/usbserial/defconfig
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009-2011 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -461,8 +461,49 @@ CONFIG_PREALLOC_TIMERS=4
|
|||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
|
#
|
||||||
CONFIG_FS_FAT=n
|
CONFIG_FS_FAT=n
|
||||||
|
CONFIG_FAT_LCNAMES=n
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/stm3210e-eval/usbstorage/defconfig
|
# configs/stm3210e-eval/usbstorage/defconfig
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -460,8 +460,49 @@ CONFIG_PREALLOC_TIMERS=4
|
|||||||
#
|
#
|
||||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||||
|
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||||
|
# file name support.
|
||||||
|
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||||
|
# patents on FAT long file name technology. Please read the
|
||||||
|
# disclaimer in the top-level COPYING file and only enable this
|
||||||
|
# feature if you understand these issues.
|
||||||
|
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||||
|
# default, maximum long file name is 255 bytes. This can eat up
|
||||||
|
# a lot of memory (especially stack space). If you are willing
|
||||||
|
# to live with some non-standard, short long file names, then
|
||||||
|
# define this value. A good choice would be the same value as
|
||||||
|
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||||
|
# of longer file names anyway.
|
||||||
|
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||||
|
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||||
|
# This must have one of the values of 0xff or 0x00.
|
||||||
|
# Default: 0xff.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||||
|
# Default: 255.
|
||||||
|
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||||
|
# don't both with file chunks smaller than this number of data bytes.
|
||||||
|
# Default: 32.
|
||||||
|
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||||
|
# packing files together toward the end of the file or, if file are
|
||||||
|
# deleted at the end of the file, clean up can simply mean erasing
|
||||||
|
# the end of FLASH memory so that it can be re-used again. However,
|
||||||
|
# doing this can also harm the life of the FLASH part because it can
|
||||||
|
# mean that the tail end of the FLASH is re-used too often. This
|
||||||
|
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||||
|
# and making it available for re-use (and possible over-wear).
|
||||||
|
# Default: 8192.
|
||||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||||
|
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||||
|
# option will enable a limited form of memory mapping that is
|
||||||
|
# implemented by copying whole files into memory.
|
||||||
|
#
|
||||||
CONFIG_FS_FAT=n
|
CONFIG_FS_FAT=n
|
||||||
|
CONFIG_FAT_LCNAMES=n
|
||||||
|
CONFIG_FAT_LFN=n
|
||||||
|
CONFIG_FAT_MAXFNAME=32
|
||||||
|
CONFIG_FS_NXFFS=n
|
||||||
CONFIG_FS_ROMFS=n
|
CONFIG_FS_ROMFS=n
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -302,7 +302,7 @@ static inline int fat_parsesfname(const char **path,
|
|||||||
|
|
||||||
/* Clear lower case name bit in mask*/
|
/* Clear lower case name bit in mask*/
|
||||||
|
|
||||||
ntlcenable &= FATNTRES_LCNAME;
|
ntlcenable &= ~FATNTRES_LCNAME;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -323,7 +323,7 @@ static inline int fat_parsesfname(const char **path,
|
|||||||
|
|
||||||
/* Clear lower case extension in mask */
|
/* Clear lower case extension in mask */
|
||||||
|
|
||||||
ntlcenable &= FATNTRES_LCNAME;
|
ntlcenable &= ~FATNTRES_LCEXT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -390,7 +390,7 @@ static inline int fat_parsesfname(const char **path,
|
|||||||
|
|
||||||
/* Set lower case extension bit */
|
/* Set lower case extension bit */
|
||||||
|
|
||||||
ntlcfound |= FATNTRES_LCNAME;
|
ntlcfound |= FATNTRES_LCEXT;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif /* CONFIG_FAT_LFN && !CONFIG_FAT_LCNAMES */
|
#endif /* CONFIG_FAT_LFN && !CONFIG_FAT_LCNAMES */
|
||||||
@ -1649,7 +1649,7 @@ static int fat_putsfname(struct fat_mountpt_s *fs, struct fat_dirinfo_s *dirinfo
|
|||||||
uint8_t *direntry = &fs->fs_buffer[dirinfo->fd_seq.ds_offset];
|
uint8_t *direntry = &fs->fs_buffer[dirinfo->fd_seq.ds_offset];
|
||||||
|
|
||||||
memcpy(&direntry[DIR_NAME], dirinfo->fd_name, DIR_MAXFNAME);
|
memcpy(&direntry[DIR_NAME], dirinfo->fd_name, DIR_MAXFNAME);
|
||||||
#ifdef CONFIG_FLAT_LCNAMES
|
#ifdef CONFIG_FAT_LCNAMES
|
||||||
DIR_PUTNTRES(direntry, dirinfo->fd_ntflags);
|
DIR_PUTNTRES(direntry, dirinfo->fd_ntflags);
|
||||||
#else
|
#else
|
||||||
DIR_PUTNTRES(direntry, 0);
|
DIR_PUTNTRES(direntry, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user