Hello.
HOWTO:
- 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 > inode->i_size)
return -EPERM;
}
", just delete all of it (or comment it out). This change wich has been
made in the -prerelease versión, makes Netscape Messenger not to work
with email stored on a VFAT partition, ok, I guess that maybe is
Netscape's fault though, but just removing that code makes Messenger at
least work somewhat.
- apply attached patch made by Eelco Dolstra
<edolstra@students.cs.uu.nl>, I am testing and using this patch since
13.nov.2000 (a lot of time) and with various versions of the Linux
2.4.0-testXX series kernels and it works flawlessly! Without it you get
allocation errors when using the "truncate()" C function to grow files
(and Messenger seems to use it).
- recompile the kernel and be happy!
I don't know why this patch isn't applied yet on the official kernel
and why the kernel people made that change to the inode.c file, maybe
they could explain us (please!).
Thanks a lot to everyone and special thanks to Eelco!
Goodbye.
P.s.: yes, I am writing this email with Netscape Messenger with emails
stored on a VFAT partition and using the 2.4.0-prerelease kernel with
those changes: no problems so far.
-- Ivan Baldo: lubaldo@adinet.com.uy - http://go.to/ibaldo - ICQ 10215364 Phone: (598) (2) 613 3223. Caldas 1781, 11400 Malvin, Montevideo, Uruguay, South America.(If you have problems with the previous addresses, try this ones: ibaldo@usa.net, http://members.xoom.com/baldo.1). --------------5204AC694C043978588FF727 Content-Type: application/x-gzip; name="parche-vfat-2.4.dif.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="parche-vfat-2.4.dif.gz"
H4sICKp6IDoCA3BhcmNoZS12ZmF0LTIuNC5kaWYApVj9c9pGE/5Z/BVbd5ryIcA4tuP4g8Z2 SezWxB7A07fvdEYjpBPcIE5UOsWhaf737t5JQh9gN+/r8SC4293b3Wdvnzu53POgHYcQ+G7X i7rT2PNY2HHA5yL+nB+ptdvtspQxDAR8DD5B7zX0jk8PDk8PD+Bgf3+/1mq1qibK4m9QQ4u/ ewft3puj1+YxtNQT7bx7VwMjZDIOBeyf1eBrDWqtbrPWgiZ8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caTkcjdNIvX99y7 laaZvYTJf8vdL5uUjpzBLa8Dvs2eSVcCo9SKaJVWeZVdr5ZK918TqraqKYjWwilctPWrpYa6 K5HYjAkWciexO6Wr//YruamWKTlRProscHXmdxfRehllR5fiYFYnxeFqjRz1yjXyvEapPt4e qfLAh66OwX8e7kcTa/z78Or+rr6lQCgn24SyFFYFqlVBgG6RyTCt2kgBcILlksvnXSm8Otlt aoMlyvwD2idvZjEWAAA= --------------5204AC694C043978588FF727--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/