• Kent Overstreet's avatar
    bcachefs: Subvolumes may now be renamed · 7f76b08a
    Kent Overstreet authored
    Files within a subvolume cannot be renamed into another subvolume, but
    subvolumes themselves were intended to be.
    
    This implements subvolume renaming - we need to ensure that there's only
    a single dirent that points to a subvolume key (not multiple versions in
    different snapshots), and we need to ensure that dirent.d_parent_subol
    and inode.bi_parent_subvol are updated.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    7f76b08a
dirent.c 16.2 KB