u-boot-brain/fs/fat
Tien Fong Chee 7aa1a6b71c fs/fat/fatwrite: Local variable as buffer to store dir_slot entries
fill_dir_slot use get_contents_vfatname_block as a temporary buffer for
constructing a list of dir_slot entries. To save the memory and providing
correct type of memory for above usage, a local buffer with accurate size
declaration is introduced.

The local array size 640 is used because for long file name entry,
each entry use 32 bytes, one entry can store up to 13 characters.
The maximum number of entry possible is 20. So, total size is
32*20=640bytes.

Signed-off-by: Genevieve Chan <ccheauya@altera.com>
Signed-off-by: Tien Fong Chee <tfchee@altera.com>
2016-11-28 20:09:45 -05:00
..
fat_write.c fs/fat/fatwrite: Local variable as buffer to store dir_slot entries 2016-11-28 20:09:45 -05:00
fat.c fs/fat: Do not write unmodified fat entries to disk 2016-09-23 08:55:56 -04:00
file.c fat: Prepare API change for files greater than 2GB 2014-11-23 06:49:04 -05:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Makefile fs: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00