samba-users May 2010 archive
Main Archive Page > Month Archives  > samba-users archives
samba-users: [Samba] FW: smbd *not* breaking hard links when sa

[Samba] FW: smbd *not* breaking hard links when saving files

From: Hugo Connery <hmc_at_nospam>
Date: Fri May 28 2010 - 14:31:16 GMT
To: "" <>

Hi Tim et al.,

Yes, I can see that the new behaviour would seem like an 'optimization',
possibly especially for large files, in that it saves the unlink operation.

was (quasi): unlink, open(write), write data, close
now is (quasi): open(write, truncate), write data, close

However, this old behaviour enabled my rather nice hard link copy (cheap!) local

The question is, is the old type of behaviour still available? (config option,
compile option etc.)

Regards, Hugo

> From: []
> Sent: Friday, May 28, 2010 14:16
> To: Hugo Connery
> Subject: Re: [Samba] smbd *not* breaking hard links when saving files
> smbd does not seem to do this anymore (RedHat distribution 3.0.33 x86_64). That is, when one
> saves a file the link is not broken, and both hard links (served and backup) are the same
> (the new version). This defeats my backup mechanism.

I have no idea how to answer your question, just gotta say that is pretty brilliant. I thought that was a bug...but it's a feature!



-- To unsubscribe from this list go to the following URL and read the instructions: