[Csync2] tempdir patch
Lars Ellenberg
lars.ellenberg at linbit.com
Wed Oct 22 17:39:47 CEST 2008
On Wed, Oct 22, 2008 at 05:15:39PM +0200, Art -kwaak- van Breemen wrote:
> I've added a config option called tempdir, which allows to set a
> default tempdir.
> Furthermore, the tmpfile code is rewritten to use tempnam, which
> means it will adhere to the TMPDIR= convention.
while at it, maybe we can get rid of the additional copy after
successful transfer, and try to do "the same" as rsync, namely
defaulting to a temp file in the same directory.
then after successful transfer, try to rename, fall back to copy,
fall back to create/truncate/read from tmpfile write into new file.
see rsync code for what I mean.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
More information about the Csync2
mailing list