bcachefs: Check for subvolume children when deleting subvolumes
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 10 Feb 2024 02:01:04 +0000 (21:01 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:22:24 +0000 (21:22 -0400)
commit835cd3e147a9a8f8acfe7f3a405c582f04e90a33
treef83176bf70467c09faf943578cc48bcb72247299
parentb26d79147f5ffaeabbda1cad556761965d6d85fe
bcachefs: Check for subvolume children when deleting subvolumes

Recursively destroying subvolumes isn't allowed yet.

Fixes: https://github.com/koverstreet/bcachefs/issues/634
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/dirent.c
fs/bcachefs/errcode.h
fs/bcachefs/fs-common.c
fs/bcachefs/subvolume.c
fs/bcachefs/subvolume.h