Re: remote mirroring in the works?

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

 



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@xxxxxxxxxxxxxxx/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@xxxxxxxxx>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux