Niclas Hedhman a écrit :
Did you notice that I tried to instead create the temporary file in
the same location as the destination file is going?
Yes, your commit fix the issue present in org.qi4j.io that use
temporary files internally. That fixed the first part of the issue you
spotted.

UoWFile moves files to/from original file and configured workdir (current
& backup). On UoW apply, current code would have failed moving the files from
the workdir to the original path when used accross filesystems.

That's what my commit tries to fix while keeping work files outside of the
data directory.

On Mon, Jun 25, 2012 at 4:47 PM, Paul Merlin<[email protected]>  wrote:
I've pushed a first attempt to handle usage accross filesystems
in UoWFile.

Here is the choosen strategy for file moves:

- atomic move attempt (File#renameTo)
- if it fails, fallback to a copy/delete operation
- log a warning when the copy/delete operation completes
- report errors on copy/delete operation only

WDYT?

/Paul


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to