Re: umsdos/uvfat

Gordon Chaffee (chaffee@CS.Berkeley.EDU)
Mon, 9 Feb 1998 15:28:38 -0800 (PST)


Tuukka Toivonen writes:
> When I'd delete VFAT files under DOS, MS-DOS del would leave the long
> filename entries in to the directory. Right? And then I couldn't remove the
> directory, because it wouldn't be empty. DIR just wouldn't show any files
> in it. I would panic and think that my FAT partition has crashed.

I updated the logic for this around 2.1.80 so this will no longer happen,
but if you want a patch for 2.0.x, here it is.

- Gordon

--- linux-2.0.31-clean/fs/msdos/namei.c Thu Dec 5 10:58:28 1996
+++ linux/fs/msdos/namei.c Mon Feb 9 14:41:02 1998
@@ -367,6 +370,9 @@
pos = 0;
bh = NULL;
while (fat_get_entry(dir,&pos,&bh,&de) > -1)
+ /* Ignore vfat longname entries */
+ if (de->attr == ATTR_EXT)
+ continue;
if (!IS_FREE(de->name) && strncmp(de->name,MSDOS_DOT,
MSDOS_NAME) && strncmp(de->name,MSDOS_DOTDOT,
MSDOS_NAME)) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu