v4: Removed a patch: [PATCH 2/6 v3] common/rc: _destroy_loop_device confirm arg1 is set Fixed patch 4/6 in v3. (Ref to the patch 3/5 in v4). Added received RB. v3: Split changes into smaller discrete patches. Add a helper function to check if the temp-fsid is supported. Check for the second failure only when the temp-fsid is not supported. v2: Patch 1/2 has been added, which performs the cleanup of the local variables and the _clean_up() function. Patch 2/2 in v2 restores the code where it tests clone-device that it does not mount if the temp-fsid feature is not present in the kernel. Fixes btrfs/219 bug when temp-fsid is supported in the kernel. Anand Jain (5): common/rc: _fs_sysfs_dname fetch fsid using btrfs tool common/btrfs: add helper _has_btrfs_sysfs_feature_attr btrfs/219: fix _cleanup() to successful release the loop-device btrfs/219: cloned-device mount capability update btrfs/219: add to the auto group common/btrfs | 12 ++++++++ common/rc | 5 +++- tests/btrfs/219 | 74 ++++++++++++++++++++++++++++--------------------- 3 files changed, 59 insertions(+), 32 deletions(-) -- 2.31.1