diff --git a/Documentation/btrfs-subvolume.rst b/Documentation/btrfs-subvolume.rst index ec8e088b..33598b9b 100644 --- a/Documentation/btrfs-subvolume.rst +++ b/Documentation/btrfs-subvolume.rst @@ -79,6 +79,9 @@ delete [options] [ [...]], delete -i|--subvolid crash. Use one of the *--commit* options to wait until the operation is safely stored on the device. + Deleting subvolume needs sufficient permissions, by default the owner + cannot delete it unless it's enabled by a mount option + *user_subvol_rm_allowed*, or deletion is run as root. The default subvolume (see ``btrfs subvolume set-default``) cannot be deleted and returns error (EPERM) and this is logged to the system log. A subvolume that's currently involved in send (see ``btrfs send``) also cannot be deleted until the diff --git a/cmds/subvolume.c b/cmds/subvolume.c index 0cc1abd2..adbac908 100644 --- a/cmds/subvolume.c +++ b/cmds/subvolume.c @@ -423,7 +423,7 @@ again: error_btrfs_util(err); if (saved_errno == EPERM) - warning("deletion failed with EPERM, send may be in progress"); + warning("deletion failed with EPERM, you don't have permissions or send may be in progress"); ret = 1; goto out; }