Update to new kernel patches that add FAT_NO_83NAME flag.
See http://lkml.org/lkml/2009/7/20/425 and http://lkml.org/lkml/2009/7/20/424 for more information. Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
parent
dd0f0b5392
commit
d42a27373a
@ -263,7 +263,7 @@ static int bad_name(DOS_FILE *file)
|
|||||||
|
|
||||||
/* don't complain about the dummy 11 bytes used by patched Linux
|
/* don't complain about the dummy 11 bytes used by patched Linux
|
||||||
kernels */
|
kernels */
|
||||||
if (file->lfn && name[0] == ' ') return 0;
|
if (file->dir_ent.lcase & FAT_NO_83NAME) return 0;
|
||||||
|
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
if (name[i] < ' ' || name[i] == 0x7f) return 1;
|
if (name[i] < ' ' || name[i] == 0x7f) return 1;
|
||||||
|
|||||||
@ -207,6 +207,9 @@ extern void *mem_queue;
|
|||||||
/* return -16 as a number with fs->fat_bits bits */
|
/* return -16 as a number with fs->fat_bits bits */
|
||||||
#define FAT_EXTD(fs) (((1 << fs->eff_fat_bits)-1) & ~0xf)
|
#define FAT_EXTD(fs) (((1 << fs->eff_fat_bits)-1) & ~0xf)
|
||||||
|
|
||||||
|
/* marker for files with no 8.3 name */
|
||||||
|
#define FAT_NO_83NAME 32
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Local Variables: */
|
/* Local Variables: */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user