Hello,

On Tue, Jan 24, 2006 at 02:35:25PM +0100, Gabor Gombas wrote:
> Package: unison
> Version: 2.13.16-4
> Severity: critical
> Justification: causes serious data loss
> 
> 
> Hi,
> 
> I'm regularly replicating my home directory to an USB harddisk using
> unison. This morning the USB drive got disconnected during the
> synchronization (hw error). Instead of noticing that one of the replica
> roots have completely disappeared and aborting, unison started to delete
> large amounts of data from my home directory. Luckily I could restore
> most of it, but this behaviour makes unison unsuitable as a serious
> synchronization tool.
> 
> Possible solution: unison should do a stat() on the replica roots before
> delete operations and if the st_dev field changes (i.e. the file system
> containing the replica is unmounted or is over-mounted) it should abort
> the synchronization. This is not a complete solution as it does not
> protect from e.g. bind mounts, but it would at least cover the
> "removable device fails causing the mount to go away" case.
> 
> Gabor
> 

Was it during the synchronisation phase (when effectively doing
operation) or before (when calculating changes) ?

I think, it is the first case, and in this case, i agree : it a real
problem.

Kind regard
Sylvain Le Gall


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to