summaryrefslogtreecommitdiff
path: root/btrfs-list.h
diff options
context:
space:
mode:
authorHugo Mills <hugo@carfax.org.uk>2014-08-13 22:18:17 +0100
committerDavid Sterba <dsterba@suse.cz>2014-09-14 13:09:52 +0200
commit90a379a876192ad0aca1ee81332f055886f8a5e8 (patch)
tree5252cb658192642a4f260e5d97b12a4660be1be5 /btrfs-list.h
parent80d81228966f4b4ba4886f42f66818e198f454ab (diff)
btrfs-progs: Add -R to list UUIDs of original received subvolume
When using send/receive, it it useful to be able to match up source subvols on the send side (as, say, for -p or -c clone sources) with their corresponding copies on the receive side. This patch adds a -R option to btrfs sub list to show the received subvolume UUID on the receive side, allowing the user to perform that matching correctly. Signed-off-by: Hugo Mills <hugo@carfax.org.uk> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'btrfs-list.h')
-rw-r--r--btrfs-list.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/btrfs-list.h b/btrfs-list.h
index 8ead9da6..ee2aea54 100644
--- a/btrfs-list.h
+++ b/btrfs-list.h
@@ -61,6 +61,7 @@ struct root_info {
u8 uuid[BTRFS_UUID_SIZE];
u8 puuid[BTRFS_UUID_SIZE];
+ u8 ruuid[BTRFS_UUID_SIZE];
/* path from the subvol we live in to this root, including the
* root's name. This is null until we do the extra lookup ioctl.
@@ -110,6 +111,7 @@ enum btrfs_list_column_enum {
BTRFS_LIST_TOP_LEVEL,
BTRFS_LIST_OTIME,
BTRFS_LIST_PUUID,
+ BTRFS_LIST_RUUID,
BTRFS_LIST_UUID,
BTRFS_LIST_PATH,
BTRFS_LIST_ALL,