5/20/2020 · The mount option -o user_subvol_rm_allowed will continue to allow non-empty subvolume delete from a non-sudoer. Forget scanned devices. You can now un-register devices previously added by a device scan. A new ioctl BTRFS_IOC_FORGET_DEV frees the previously scanned devices that are unmounted. $ btrfs device scan $ btrfs device scan –forget, The body of the if statement checks to see if it’s regular user who’s the owner of the subvolume’s inode and the USER_SUBVOL_RM_ALLOWED BTRFS option is enable it continues executing the handler. If they don’t have either the ioctl handler exits with an error.
2/20/2017 · user_subvol_rm_allowed: Allow subvolumes to be deleted by their respective owner. Otherwise, only the root user can do that. The deafult is on.
btrfs .mount_options: string: btrfs driver: user_subvol_rm_allowed : storage_ btrfs _mount_options: Mount options for block devices: ceph.cluster_name: string: ceph driver: ceph: storage_driver_ceph: Name of the ceph cluster in which to create new storage pools. ceph.osd.force_reuse: bool: ceph driver: false: storage_ceph_force_osd_reuse, I’ve already mounted the btrfs with -o user_subvol_rm_allowed so users can remove read/write snapshots. I need it to augment otherwise brillant SnapBtr.py , so non-root users can operate it. permissions btrfs snapshot, Btrfs : Subvolumes and snapshots [LWN.net], Btrfs : Subvolumes and snapshots [LWN.net], btrfs : topics about the BTRFS filesystem (mount options …
Storage pools | LXD, 1/6/2014 · ` user_subvol_rm_allowed ` to your fstab. You can also mount a subvolume by path, rather than just by ID too, with `mount -o subvol=$path $device $mountpoint`. Another handy feature is read-only snapshots, so you can keep your backups from being tampered with. ~$ btrfs sub cre foo Create subvolume ‘./foo’ ~$ cd foo ~/foo$ echo hello >file ~/foo$ cd ..
if you will use btrfs subvolumes for lxc, you need add the option user_subvol_rm_allowed in your /etc/fstab. Example extracted from one fstab file: UUID=XXXXXXXXXXXXXXXXXXXXXX / btrfs subvol=@,user_subvol_rm_allowed,defaults 0 0. the option will permit that you can remove subvol without be root, only normal user.