direct write patch

2001-11-12 Thread Don Mahurin
I have attached a patch that supports a new --direct-write option. The result of using this option is to write directly to the destination files, instead of a temporary file first. The reason this patch is needed is for rsyncing to a device where the device is full or nearly full. Say that I

Re: direct write patch

2001-11-12 Thread Dave Dykstra
Oh boy, I think you're getting into quite a can of worms there. At a minimum this option should imply the --partial option because if the operation is aborted the file will be left partially transferred. Note that if you're trying to use the rsync rolling checksum algorithm to minimize

Re: direct write patch

2001-11-12 Thread Don Mahurin
Perhaps, all that I need is a --delete-before-update option that just unlinks the file before it starts to write the temp file. Then we avoid the possible issues that you raised. I can still see a case where --direct-write may be useful (read-write file in a read-only dir), but this is

Re: direct write patch

2001-11-12 Thread Dave Dykstra
On Mon, Nov 12, 2001 at 11:50:01AM -0800, Don Mahurin wrote: Perhaps, all that I need is a --delete-before-update option that just unlinks the file before it starts to write the temp file. Then we avoid the possible issues that you raised. I can still see a case where --direct-write may be