Skip to content

Instantly share code, notes, and snippets.

@holmanb
Created September 27, 2021 15:19
Show Gist options
  • Save holmanb/ca79ac6df37ab2c44e75bbab5203a173 to your computer and use it in GitHub Desktop.
Save holmanb/ca79ac6df37ab2c44e75bbab5203a173 to your computer and use it in GitHub Desktop.
Problem #1: deleted snapshots consume filepath name
root@hostname-kvm:~/bcachefs-tools# /root/bcachefs-tools/bcachefs subvolume snapshot /mount/subvol_1 /mount/snapshot_1
root@hostname-kvm:~/bcachefs-tools# /root/bcachefs-tools/bcachefs subvolume delete /mount/snapshot_1/
root@hostname-kvm:~/bcachefs-tools# /root/bcachefs-tools/bcachefs subvolume snapshot -r /mount/subvol_1 /mount/snapshot_1
BCH_IOCTL_SUBVOLUME_CREATE ioctl error: File exists
Problem #2: snapshot of a deleted subvolume can't be deleted
root@hostname-kvm:~/bcachefs-tools# /root/bcachefs-tools/bcachefs subvolume create /mount/subvol_1
root@hostname-kvm:~/bcachefs-tools# /root/bcachefs-tools/bcachefs subvolume snapshot /mount/subvol_1/ /mount/snapshot_1
root@hostname-kvm:~/bcachefs-tools# rm -rf /mount/subvol_1/
root@hostname-kvm:~/bcachefs-tools# /root/bcachefs-tools/bcachefs subvolume delete /mount/snapshot_1
BCH_IOCTL_SUBVOLUME_DESTROY ioctl error: Read-only file system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment