Announcement

Collapse
No announcement yet.

Misleading error message if not root. Seems like a bug.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • oshunluvr
    replied
    The line is: "WARNING: cannot read default subvolume id: Operation not permitted"

    That reads to me like there is something wrong with the default subvolume. There is not.

    IMO, the only meaningful and correct error message would at least have to include "Permission denied"

    Leave a comment:


  • Snowhog
    replied
    Originally posted by oshunluvr View Post
    Operation not permitted
    Is not this still telling?

    Leave a comment:


  • Misleading error message if not root. Seems like a bug.

    This morning I received this error when trying to delete a subvolume:
    Code:
    stuart@office:/subvol$ btrfs su de -c @Kubuntu2004/
    WARNING: cannot read default subvolume id: Operation not permitted
    Delete subvolume (commit): '/subvol/@Kubuntu2004'
    ERROR: Could not destroy subvolume/snapshot: Operation not permitted
    WARNING: deletion failed with EPERM, send may be in progress
    If you look carefully, you can see the actual error is I left out "sudo" at the beginning of the command.

    I have an alias for "sudo btrfs" so when I'm working with btrfs subvolumes on the command line, I need only type "bt" but I mistakenly typed "btrfs".

    This seems bug-ish to me because the error message in no way points to the actual error. It should read:

    "btrfs: failed to delete subvolume @Kubuntu2004': Permission denied"

    like almost every other program that requires root level access does.

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X