Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    Please Read Me

    #2
    Originally posted by oshunluvr View Post
    Operation not permitted
    Is not this still telling?
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      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"

      Please Read Me

      Comment

      Working...
      X