mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-24 12:07:54 +00:00
btrfs-progs: fix comments in cmd_filesystem_show
I had to go back to find what BTRFS_ARG_REG is, add a comment for that. And, search_umounted_fs_uuids() is also to find the seed device, so bring the related comment above it. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
830422fa7e
commit
edd57bf494
@ -754,6 +754,7 @@ static int cmd_filesystem_show(const struct cmd_struct *cmd,
|
|||||||
devs_only:
|
devs_only:
|
||||||
if (type == BTRFS_ARG_REG) {
|
if (type == BTRFS_ARG_REG) {
|
||||||
/*
|
/*
|
||||||
|
* Given input (search) is regular file.
|
||||||
* We don't close the fs_info because it will free the device,
|
* We don't close the fs_info because it will free the device,
|
||||||
* this is not a long-running process so it's fine
|
* this is not a long-running process so it's fine
|
||||||
*/
|
*/
|
||||||
@ -770,16 +771,17 @@ devs_only:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The seed/sprout mappings are not detected yet, do mapping build for
|
||||||
|
* all umounted filesystems. But first, copy all unmounted UUIDs only
|
||||||
|
* to all_uuids.
|
||||||
|
*/
|
||||||
ret = search_umounted_fs_uuids(&all_uuids, search, &found);
|
ret = search_umounted_fs_uuids(&all_uuids, search, &found);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
error("searching target device returned error %d", ret);
|
error("searching target device returned error %d", ret);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* The seed/sprout mapping are not detected yet,
|
|
||||||
* do mapping build for all umounted fs
|
|
||||||
*/
|
|
||||||
ret = map_seed_devices(&all_uuids);
|
ret = map_seed_devices(&all_uuids);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
error("mapping seed devices returned error %d", ret);
|
error("mapping seed devices returned error %d", ret);
|
||||||
|
Loading…
Reference in New Issue
Block a user