All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Oliver O." <oliver.o456i@gmail.com>
To: Chris Mason <clm@fb.com>, linux-btrfs@vger.kernel.org
Subject: Solved, false alarm - Re: File changing in snapshot
Date: Fri, 18 Apr 2014 17:50:44 +0200	[thread overview]
Message-ID: <535149D4.3090305@gmail.com> (raw)
In-Reply-To: <535047AB.6030606@gmail.com>

Am 17.04.2014 23:29, schrieb Oliver O.:
> Conclusions:
>
> The sequence of events seems to be:
>
> 1. The file was changed with generation 193090.
> 2. The snapshot for backup (@home-2014-04-16) was taken (generation 
> 194551).
> 3. As the backup was reading from the snapshot, it was seeing stale 
> data (MyFile still at generation 36067).

This conclusion was wrong:

Rdiff-backup never really considered the modified Excel file for backup, 
as its file modification time did not indicate that the file was newer 
than the last backup. So rdiff-backup always took the file copy already 
available in the previous backup.

What breaks the incremental backup mechanism is Excel modifying a file, 
then changing its modification timestamp back to its original value (see 
comment 10 at https://bugzilla.samba.org/show_bug.cgi?id=1601#c10).

> 4. As the backup comparison was reading from the snapshot, is was 
> seeing more recent data, causing a discrepancy with the stale data 
> just backed up.

The discrepancy between the file's modified contents were discovered 
because the comparison was content-based (MD5 checksums) and compared 
every file regardless of modification dates.

>
> It seems that the snapshot needed some time to become stable for 
> reading. From a file system user's point of view, I'd expect a 
> snapshot to be atomic and stable at any time. Maybe some kind of 
> caching problem here?
>
> Maybe it's time to file a bug report, but first: suggestions and ideas 
> appreciated.
>
Result: False alarm - this is definitely not a Btrfs problem. In this 
case snapshot behavior was as expected: atomic and stable.

Sorry for any irritation.


  reply	other threads:[~2014-04-18 15:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-17 15:39 File changing in snapshot Oliver O.
2014-04-17 15:56 ` Chris Mason
2014-04-17 16:11   ` Oliver O.
2014-04-17 21:29     ` Oliver O.
2014-04-18 15:50       ` Oliver O. [this message]
2014-04-18 17:08         ` Solved, false alarm - " Chris Mason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=535149D4.3090305@gmail.com \
    --to=oliver.o456i@gmail.com \
    --cc=clm@fb.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.