Is the sky actually falling? (NTFS streams) - some additional notes - part 2

Jeremy Allison jra at samba.org
Sat Nov 5 04:17:50 GMT 2005


On Sat, Nov 05, 2005 at 04:52:51AM +0100, Guenter Kukkukk wrote:
> 
> The glitch was, that "opening and truncating an existing file" on OS/2
> and windows does not only truncate the former file size - all former
> EAs are removed, too!
> 
> With linux, the open() function like
>   fd = open (fname, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
> on an _already existing_ file, which is containing (user) EAs, the file size
> is truncated to zero, but all former EAs will remain!

Ok, I can change the O_TRUNC paths in Samba to also
enumerate and delete all know EA's - but this will
slow down truncate so I'm only going to do it if
"ea support = yes" in the smb.conf.

Jeremy.


More information about the samba-technical mailing list