[Bug 11523] New: Request: Add option to unlink hard links when permissions change

2015-09-20 Thread Robert Bell

Folks,

b...@stupidkitties.com wrote:
" I was wondering if it'd be feasible to add an option (or multiple options,
depending on the desired granularity) to cause rsync to treat changes in file
attributes the same way it treats changes to the file's contents when it
encounters hard links at the destination. Maybe something like --relink-p or
something?"

One of colleagues has produced a patch to do just what you want, but we
have not promulgated it yet.

Sorry.

Regards

Rob.

Dr Robert C. Bell
HPC National Partnerships | Scientific Computing
CSIRO Information Management and Technology
T +61 3 9545 2368 (Docklands and Clayton)
T +61 3 9669 8102 (Docklands only)
Mob +61 428 108 333
robert.b...@csiro.au | www.csiro.au
https://wiki.csiro.au/display/ASC/Scientific+Computing+Homepage

Street: CSIRO SC Level 11, 700 Collins Street, Docklands Vic 3008, Australia
Postal: CSIRO SC Level 11, GPO Box 1289, Melbourne Vic 3001, Australia
Street: CSIRO IM&T, Rivett Room RNW 2.03, Clayton Vic 3168, Australia
Postal: CSIRO IM&T, Private Bag 10, Clayton South Vic 3169, Australia
Parcels: CSIRO IM&T, Gate 3 Normanby Road, Clayton Vic 3168, Australia


PLEASE NOTE
The information contained in this email may be confidential or privileged.
Any unauthorised use or disclosure is prohibited.  If you have received
this email in error, please delete it immediately and notify the sender by
return email. Thank you.  To the extent permitted by law, CSIRO does not
represent, warrant and/or guarantee that the integrity of this
communication has been maintained or that the communication is free of
errors, virus, interception or interference.

Please consider the environment before printing this email.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


[Bug 11523] New: Request: Add option to unlink hard links when permissions change

2015-09-16 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11523

Bug ID: 11523
   Summary: Request: Add option to unlink hard links when
permissions change
   Product: rsync
   Version: 3.1.2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P5
 Component: core
  Assignee: way...@samba.org
  Reporter: b...@stupidkitties.com
QA Contact: rsync...@samba.org

rsync has a very useful behaviour where, if it detects that a change has
occurred in a file which is a hard link on the destination side, the
destination file is unlinked during the transfer so as not to over-write all of
the other files with the same inode.

This works really well, but (please correct me if i'm wrong) rsync has no
similar mechanism for attribute changes. This means that if your file changes
ownerships or permissions (or times, though i don't personally care about
those), rsync will update those attributes on the destination hard link, which
will in turn replace all of the attributes for all of the other files with that
inode.

I was wondering if it'd be feasible to add an option (or multiple options,
depending on the desired granularity) to cause rsync to treat changes in file
attributes the same way it treats changes to the file's contents when it
encounters hard links at the destination. Maybe something like --relink-p or
something?

Hope this makes sense. Thanks for rsync!

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html