patch-2.2.17 linux/fs/umsdos/ioctl.c
Next file: linux/fs/umsdos/namei.c
Previous file: linux/fs/umsdos/inode.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Sep 4 18:39:28 2000
- Orig file:
v2.2.16/fs/umsdos/ioctl.c
- Orig date:
Mon Sep 4 18:37:06 2000
diff -u --recursive --new-file v2.2.16/fs/umsdos/ioctl.c linux/fs/umsdos/ioctl.c
@@ -179,6 +179,17 @@
struct umsdos_info info;
ret = umsdos_emd_dir_readentry (&new_filp, &entry);
+
+ if (ret == -ENAMETOOLONG) {
+ printk (KERN_INFO "Fixing EMD entry with invalid size -- zeroing out\n");
+ fill_new_filp (&new_filp, demd);
+ new_filp.f_pos = f_pos;
+ new_filp.f_reada = 0;
+ memset (&entry, 0, sizeof (entry));
+ ret = umsdos_emd_dir_write (&new_filp, (char *) &entry, UMSDOS_REC_SIZE);
+ continue;
+ }
+
if (ret)
break;
if (entry.name_len <= 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)