On Sun, Oct 02, 2011 at 04:38:21PM +0200, krzf83@xxxxxxxxx wrote: > Also I think there are no real tools to find out which directories are > subvolumes/snapshots Well, there are, but these are the _real_ tools, you know. subv1 is a subvolume snap1 is it's snapshot $ stat subv1 snap1 File: `subv1' Size: 0 Blocks: 0 IO Block: 4096 directory Device: 1ch/28d Inode: 256 Links: 1 Access: (0700/drwx------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2011-10-02 19:12:04.493885220 +0200 Modify: 2011-10-02 19:12:04.493885220 +0200 Change: 2011-10-02 19:12:04.493885220 +0200 Birth: - File: `snap1' Size: 0 Blocks: 0 IO Block: 4096 directory Device: b1h/177d Inode: 256 Links: 1 Access: (0700/drwx------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2011-10-02 19:12:04.493885220 +0200 Modify: 2011-10-02 19:12:04.493885220 +0200 Change: 2011-10-02 19:12:04.493885220 +0200 Birth: - Common signature is "Inode: 256" and this is acutally the same test which is performed by 'btrfs subvol ...' to check whether the source dir is a subvolume, and by the kernel module as well. david -- 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
