[U-Boot] [U-Boot, 1/2] fs/fat/fatwrite: Local variable as buffer to store dir_slot entries
Tom Rini
trini at konsulko.com
Tue Nov 29 18:32:20 CET 2016
On Wed, Jul 27, 2016 at 11:08:56PM -0700, Tien Fong Chee wrote:
> 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 at altera.com>
> Signed-off-by: Tien Fong Chee <tfchee at altera.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161129/b4a561d0/attachment.sig>
More information about the U-Boot
mailing list