Re: How to make VFAT work right in 2.4.0-prereleaseu

2001-01-06 Thread Eelco Dolstra
Hi, On Sat, 6 Jan 2001, Alan Cox wrote: > > - edit file fs/fat/inode.c, look in the function named > > "fat_notify_change" (at about line 901), where it says:" > > /* FAT cannot truncate to a longer file */ > > if (attr->ia_valid & ATTR_SIZE) { > > if (attr->ia_size > ino

[PATCH] fix for truncate() in FAT & HPFS

2000-11-13 Thread Eelco Dolstra
Hi, The following patch fixes the truncate() bug in the HPFS and FAT drivers. As reported by Ivan Baldo, the FAT driver mildly corrupts the file system when truncate() is used to grow a file. The problem is that FAT doesn't support holes, and therefore the allocation of a file must match its fi