]> git.baikalelectronics.ru Git - uboot.git/commit
fs: fat: set start cluster for root directory
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 22 Nov 2020 15:04:47 +0000 (16:04 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 10 Dec 2020 08:14:59 +0000 (09:14 +0100)
commit3d556a43e70f0fe93e29ca7030dfb23ebbae0fee
treea3c8f7edd972ff4f9c18e18b3b4ea889d2aca74d
parent1bb15c585d0219efcf89f8e03415ff50b3e72e4e
fs: fat: set start cluster for root directory

When iterating over a child directory we set itr->start_clust.
Do the same when over the root directory.

When looking for deleted directory entries or existing short names we will
have to iterate over directories a second and third time. With this patch
we do not need any special logic for the root directory.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/fat/fat.c