From 90a379a876192ad0aca1ee81332f055886f8a5e8 Mon Sep 17 00:00:00 2001 From: Hugo Mills Date: Wed, 13 Aug 2014 22:18:17 +0100 Subject: 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 Signed-off-by: David Sterba --- btrfs-list.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'btrfs-list.h') 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, -- cgit v1.2.3