linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Goffredo Baroncelli <kreijack@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: remote mirroring in the works?
Date: Tue, 31 Aug 2010 20:29:06 +0200	[thread overview]
Message-ID: <201008312029.06424.kreijack@libero.it> (raw)
In-Reply-To: <20100831063841.GF29552@hostway.ca>

On Tuesday, 31 August, 2010, Simon Kirby wrote:
[...]
> Anyway, there _is_ this interface:
> 
> 	btrfs subvolume find-new <path> <last_gen>
> 		List the recently modified files in a filesystem.
> 
> Eg:
> 
> 	btrfs sub find-new /mnt 0
> 
> This should print all files on the file system, and the last transaction
> ID marker.  This can be used to call the interface again, which lists
> only new changed things since that ID.
  ^^^^

It is not fully correct. In fact Chris Mason says

(from http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg04620.html)


Chris> When we find an inode in the output, it doesn't mean that inode has
Chris> changed.  It just means the btree block holding that inode has 
changed.
Chris> So we'll want to add limiting based on the ctime/mtime of the inode as
Chris> well.

So even tough this command definitely helps, false positives may happen. 
And moreover an empty file is not detected (I think because the file doesn't 
have associated data). But I think that this may be easily corrected.

Regards
G.Baroncelli

-- 
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512

      reply	other threads:[~2010-08-31 18:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTinmSdHwXXq3s64sM39GjacafgwgTjPadZGHuway@mail.gmail.com>
2010-08-30 17:07 ` remote mirroring in the works? Fred van Zwieten
2010-08-30 17:21   ` Bryan Whitehead
2010-08-30 17:33   ` Roy Sigurd Karlsbakk
2010-08-30 17:55   ` K. Richard Pixley
2010-08-30 17:59     ` Roy Sigurd Karlsbakk
2010-08-30 18:14       ` K. Richard Pixley
2010-08-31  6:30         ` Simon Kirby
2010-08-31 18:44           ` Fred van Zwieten
2010-09-06 21:50         ` David Nicol
2010-09-07  0:04           ` K. Richard Pixley
2010-08-30 21:15     ` Fred van Zwieten
2010-08-30 21:23       ` Freddie Cash
2010-08-30 22:56       ` K. Richard Pixley
2010-08-31  5:07         ` Fred van Zwieten
2010-08-31  6:38           ` Simon Kirby
2010-08-31 18:29             ` Goffredo Baroncelli [this message]

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=201008312029.06424.kreijack@libero.it \
    --to=kreijack@gmail.com \
    --cc=kreijack@libero.it \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).