• Kent Overstreet's avatar
    bcachefs: Fix creating snapshot with implict source · 7aebaabf
    Kent Overstreet authored
    When creating a snapshot without specifying the source subvolume, we use
    the subvolume containing the new snapshot.
    
    Previously, this worked if the directory containing the new snapshot was
    the subvolume root - but we were using the incorrect helper, and got a
    subvolume ID of 0 when the parent directory wasn't the root of the
    subvolume, causing an emergency read-only.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    7aebaabf
fs-ioctl.c 12.5 KB