mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-15 13:42:36 +00:00
show additional info if btrfs subvolume deletion fails (issue #315)
Unprivileged users require "-o user_subvol_rm_allowed" mount option for btrfs. Make the INFO level message to ERROR to make it clear, which now says following; [caglar@qop:~] lxc-destroy -n rubik lxc_container: Is the rootfs mounted with -o user_subvol_rm_allowed? lxc_container: Error destroying rootfs for rubik Destroying rubik failed Signed-off-by: S.Çağlar Onur <caglar@10ur.org> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
61c237221d
commit
cf03f973a8
@ -1552,7 +1552,7 @@ static int btrfs_do_destroy_subvol(const char *path)
|
||||
ret = ioctl(fd, BTRFS_IOC_SNAP_DESTROY, &args);
|
||||
INFO("btrfs: snapshot destroy ioctl returned %d for %s", ret, path);
|
||||
if (ret < 0 && errno == EPERM)
|
||||
INFO("Is the rootfs mounted with -o user_subvol_rm_allowed?");
|
||||
ERROR("Is the rootfs mounted with -o user_subvol_rm_allowed?");
|
||||
|
||||
free(newfull);
|
||||
close(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user