[Bug 1090053] Re: e4defrag -c /mountpoint does not provide expected output
There wasn't actually an *error*. E4defrag doesn't need root prives to find and print statistics. It doesn't deliberately because the people who wrote the program decided this was the right thing to do. So it's not actually hiding the error, it's just doing something weird/stupid. Which you could argue is a bug, but if so, it's more of a design issue. (It's not like it's secret; and you get the same information using filefrag.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1090053 Title: e4defrag -c /mountpoint does not provide expected output To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1090053/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1090053] Re: e4defrag -c /mountpoint does not provide expected output
``` ~ fsck -n /dev/sda2 fsck from util-linux 2.27.1 e2fsck 1.42.13 (17-May-2015) fsck.ext4: Permission denied while trying to open /dev/sda2 You must have r/o access to the filesystem or be root ~ e4defrag -c /dev/sda2 Done. ``` The user's expectation is to be informed of the reason the execution failed. Instead, e4defrag suppresses the error and returns an exit status of 0, unlike fsck, as illustrated above. This is a valid bug because the output does not indicate that there was an issue with privileges during execution. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1090053 Title: e4defrag -c /mountpoint does not provide expected output To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1090053/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1090053] Re: e4defrag -c /mountpoint does not provide expected output
Please start it under root (i.e. 'sudo e4defrag -c /') for correct behavior. ** Changed in: e2fsprogs (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1090053 Title: e4defrag -c /mountpoint does not provide expected output To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1090053/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1090053] Re: e4defrag -c /mountpoint does not provide expected output
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: e2fsprogs (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1090053 Title: e4defrag -c /mountpoint does not provide expected output To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/1090053/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs