Re: [PATCH 0/3] btrfs: allow BTRFS_IOC_SNAP_DESTROY_V2 to remove ghost subvolume
From: Qu Wenruo <hidden>
Date: 2021-08-20 05:45:38
Gentle ping? Or we don't need this feature and just let btrfs-check to repair such problem? Thanks, Qu On 2021/6/28 下午6:16, Qu Wenruo wrote:
Since we're busting ghost subvolumes, the branch is now called ghost_busters: https://github.com/adam900710/linux/tree/ghost_busters The first two patches are just cleanup found during the development. The first is a missing check for subvolid range, the missing check itself won't cause any harm, just returning -ENOENT from dentry lookup, other than the expected -EINVAL. The 2nd is a super old dead comment from the early age of btrfs. The final patch is the real work to allow patched "btrfs subvolume delete -i" to delete ghost subvolume. Tested with the image dump of previous submitted btrfs-progs patchset. Qu Wenruo (3): btrfs: return -EINVAL if some user wants to remove uuid/data_reloc tree btrfs: remove dead comment on btrfs_add_dead_root() btrfs: allow BTRFS_IOC_SNAP_DESTROY_V2 to remove ghost subvolume fs/btrfs/ioctl.c | 81 +++++++++++++++++++++++++++++++++++++++++- fs/btrfs/transaction.c | 7 ++-- 2 files changed, 84 insertions(+), 4 deletions(-)