> The man page for ftruncate(2) says: > > If the file previously was shorter, it is extended, > > However this is not always true. The glibc documentation says: > > The POSIX standard leaves it implementation defined what happens > if the specified new LENGTH of the file is bigger than the > original size. The `ftruncate' function might simply leave the > file alone and do nothing > > Empirical evidence shows that Linux returns EPERM and leaves the file > unchanged when trying to extend files on a vfat filesystem.
Hello Haul, Can you say a bit more. Which kernel version are you using? And if you have a small test program, please post it. Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page maintenance? Grab the latest tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpages/, read the HOWTOHELP file and grep the source files for 'FIXME'. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]