Signed-off-by: Anand Jain <[email protected]>
---
 cmds-filesystem.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index 4d3a9a4..11d0406 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -353,6 +353,9 @@ static void print_one_uuid(struct btrfs_fs_devices 
*fs_devices,
        if (add_seen_fsid(fs_devices->fsid))
                return;
 
+       if (fs_devices->spare)
+               return;
+
        uuid_unparse(fs_devices->fsid, uuidbuf);
        device = list_entry(fs_devices->devices.next, struct btrfs_device,
                            dev_list);
@@ -610,6 +613,7 @@ static int copy_fs_devices(struct btrfs_fs_devices *dst,
        memcpy(dst->fsid, src->fsid, BTRFS_FSID_SIZE);
        INIT_LIST_HEAD(&dst->devices);
        dst->seed = NULL;
+       dst->spare = src->spare;
 
        list_for_each_entry(cur_dev, &src->devices, dev_list) {
                dev_copy = malloc(sizeof(*dev_copy));
-- 
2.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to