Re: [4.1-rc] File was modified, but mtime stayed the same (according to unison)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 09, 2015 at 12:43:30PM +0200, Pavel Machek wrote:
> 
> Hi!
> 
> Today, I got strange warning from unison:
> 
> pavel/.config/chromium/Default/Extension State/LOG.old — transport
> failure
> • The source file /data/pavel/.config/chromium/Default/Extension
> State/LOG.old
> has been modified but the fast update detection mechanism
> failed to detect it.  Try running once with the fastcheck
> option set to 'no'.

What does this mean, precisely?  Is Unison checking that files have
been modified using some kind of a checksum or file comparison
mechanism?  And I assume that the "fast update detection mechanism"
using mtime?

And if it has modified, how was it modified (can you do a diff with
what the other side of the synchronization setup had for that file),
and do you know by which process. and what was it trying to do?  And
how is unison being run?

One thing that could be going on is that if you have a file which is
mmap'ed, the mtime field is set the first time the page is modified
(when the page table entry is set to read/write from read-only).  If
unison then takes a snapshot of the file, and then file is
subsequently modified via a write to the mmap'ed page, the mtime field
will not be updated again.  We *could* constantly reset the page table
flags but it would be disastrous from a performance standpoint, and if
mmap is involved, Posix does *not* guarantee that mtime field will be
set each time a process writes to the mmap'ed segment --- because that
would be insane.

Regards,

						- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux