Skipping hardlinks in a copy

2007-03-07 Thread Sriram Ramkrishna
Hi folks, I've been googling around for awhile but I can't seem to find an answer to my question. I have a number of filesystems that contain thousands of hard links due to some bad organization of data. Rsync, cpio and various other utilities fail to copy this data because I think there might b

Re: [RFC][PATCH] remove extraneous xattr-s from not recreated files

2007-03-07 Thread Wayne Davison
On Wed, Mar 07, 2007 at 05:06:56PM -0800, Wayne Davison wrote: > It would be better [...] to only remove the items that are > extraneous, so that unchanged xattrs don't flicker. OK, I just committed a change to CVS that removes the extraneous values after the setting of the new values has finished

Re: [RFC][PATCH] remove extraneous xattr-s from not recreated files

2007-03-07 Thread Wayne Davison
On Wed, Mar 07, 2007 at 04:57:09PM -0800, Wayne Davison wrote: > That looks like it should do the job, and is a nice improvement over > what is there now. One more thing -- the one thing that I don't like about this patch is that it can momentarily tweak an existing file to remove all its xattrs,

Re: [RFC][PATCH] remove extraneous xattr-s from not recreated files

2007-03-07 Thread Wayne Davison
On Tue, Mar 06, 2007 at 11:41:46AM +0100, Stanis?aw Gruszka wrote: > patch is for rsync cvs sources after appling acls.diff and xattrs.diff > patches. Please comment or include it upstream. Thanks for your patch. That looks like it should do the job, and is a nice improvement over what is there n

Re: syncronizing file content into device content

2007-03-07 Thread Wayne Davison
On Wed, Mar 07, 2007 at 04:29:36PM -0600, Phil Howard wrote: > So, how can I get rsync to syncronize the _content_ of the device > with the _content_ of the source file (or source device)? You can't without writing custom code -- for instance, adding an option to rsync to tell it to treat a block

syncronizing file content into device content

2007-03-07 Thread Phil Howard
I have repeatable cases where a (very large) file contents are the intended content of a device (partition) of that exact size. The target device is already mostly of that content, but a few block have been changed. I want to restore the device contents back to what the file originally was. I'm