Skip to content

Commit 1788a96

Browse files
austriancodertrini
authored andcommitted
fs: fat: fix fat iteration
According to the FAT specification it is valid to have files with an attribute value of 0x0. This fixes a regression where different U-Boot versions are showing different amount of files on the same storage device. With this change U-Boot shows the same number of files and folders as Linux and Windows. Fixes: 39606d4 ("fs: fat: handle deleted directory entries correctly") Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
1 parent 53007fc commit 1788a96

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/fat/fat.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,9 +949,7 @@ static int fat_itr_next(fat_itr *itr)
949949
/* Volume label or VFAT entry, skip */
950950
continue;
951951
}
952-
} else if (!(dent->attr & ATTR_ARCH) &&
953-
!(dent->attr & ATTR_DIR))
954-
continue;
952+
}
955953

956954
/* short file name */
957955
break;

0 commit comments

Comments
 (0)