diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2018-09-11 15:59:04 +0900 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-09-23 21:55:29 +0200 |
commit | 4ced2039dc55e74ce0c4587a1cd509109d281e80 (patch) | |
tree | 4cc77389e082b6d944635b2cd95a015112c6d6fe /fs/fat/fat.c | |
parent | f1149cea160710b8851001454db66e5bb6bcee48 (diff) | |
download | u-boot-4ced2039dc55e74ce0c4587a1cd509109d281e80.tar.gz |
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>
Diffstat (limited to 'fs/fat/fat.c')
-rw-r--r-- | fs/fat/fat.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 8122fefae4..6d7012c841 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -465,15 +465,6 @@ static __u8 mkcksum(const char name[8], const char ext[3]) } /* - * TODO these should go away once fat_write is reworked to use the - * directory iterator - */ -__u8 get_dentfromdir_block[MAX_CLUSTSIZE] - __aligned(ARCH_DMA_MINALIGN); -__u8 do_fat_read_at_block[MAX_CLUSTSIZE] - __aligned(ARCH_DMA_MINALIGN); - -/* * Read boot sector and volume info from a FAT filesystem */ static int |