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: "samba@lists.samba.org" <samba@lists.samba.org>

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
backup.

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

Regards, Hugo

> From: tms3@tms3.com [tms3@tms3.com]
> 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!

Cheers,

TMS III

-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba