[linux-cifs-client] zero data on truncate

Steven French sfrench at us.ibm.com
Tue Sep 20 16:41:31 GMT 2005






Windows ME (as a server) seems to have a set file size bug - it does not
clear file data when it sets the file size.

This means that tests like fsx that set the file size and expect to read
0x0000 back from unwritten offests in the file get junk instead.

Neither smbfs nor apparently windows xp from what I can tell compensate for
this bug on the client side by trying to special case windows ME
(presumably windows 9x has the same bug).

At a fairly significant performance cost, the cifs client could overwrite
zero over newly extended file data  but this would probably be a mistake to
other servers so it would require some even narrower special case detection
of particular old windows server versions.

Does anyone think it is worth compensating for the server bug by the
proposed client change to cifs vfs?


Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the linux-cifs-client mailing list