bcachefs: Snapshot creation, deletion
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 17 Mar 2021 03:28:43 +0000 (23:28 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:13 +0000 (17:09 -0400)
commit42d237320e9817a94f3a0a2de28156523596b086
tree23e492ebe4b8dc41afbf3fa3f1433534eccdfd4a
parenta861c7225b9e31da745c262711d625782b5d766a
bcachefs: Snapshot creation, deletion

This is the final patch in the patch series implementing snapshots.
This patch implements two new ioctls that work like creation and
deletion of directories, but fancier.

 - BCH_IOCTL_SUBVOLUME_CREATE, for creating new subvolumes and snaphots
 - BCH_IOCTL_SUBVOLUME_DESTROY, for deleting subvolumes and snapshots

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/dirent.c
fs/bcachefs/dirent.h
fs/bcachefs/fs-common.c
fs/bcachefs/fs-common.h
fs/bcachefs/fs-ioctl.c
fs/bcachefs/fs.c
fs/bcachefs/fs.h
fs/bcachefs/fsck.c
fs/bcachefs/recovery.c
fs/bcachefs/str_hash.h