]> git.baikalelectronics.ru Git - uboot.git/commit
fs: fat: support write with sub-directory path
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 11 Sep 2018 06:59:04 +0000 (15:59 +0900)
committerAlexander Graf <agraf@suse.de>
Sun, 23 Sep 2018 19:55:29 +0000 (21:55 +0200)
commit60f46bdd8db33d0fc8f6f712fa3b345ccf0a598e
tree4cc77389e082b6d944635b2cd95a015112c6d6fe
parent3a1a71a47bca8de76037ea486db04a3f6bb26ee2
fs: fat: support write with sub-directory path

In this patch, write implementation is overhauled and rewritten by
making full use of directory iterator. The obvious bonus is that we are
now able to write to a file with a directory path, like /A/B/C/FILE.

Please note that, as there is no notion of "current directory" on u-boot,
a file name specified must contain an absolute directory path. Otherwise,
"/" (root directory) is assumed.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
fs/fat/fat.c
fs/fat/fat_write.c