summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/volumes.c b/volumes.c
index 10fdc487..cb7adef8 100644
--- a/volumes.c
+++ b/volumes.c
@@ -239,7 +239,7 @@ int btrfs_scan_one_device(int fd, const char *path,
ret = -EIO;
goto error_brelse;
}
- devid = le64_to_cpu(disk_super->dev_item.devid);
+ devid = btrfs_stack_device_id(&disk_super->dev_item);
if (btrfs_super_flags(disk_super) & BTRFS_SUPER_FLAG_METADUMP)
*total_devs = 1;
else