FS#31647 - [util-linux] unhelpful error message from umount
Attached to Project:
Arch Linux
Opened by Glenn (grepfor) - Saturday, 22 September 2012, 15:11 GMT
Last edited by Dave Reisner (falconindy) - Friday, 27 September 2013, 13:44 GMT
Opened by Glenn (grepfor) - Saturday, 22 September 2012, 15:11 GMT
Last edited by Dave Reisner (falconindy) - Friday, 27 September 2013, 13:44 GMT
|
Details
Brief description:
When a user attempts to umount a user-mountable filesystem which is not presently mounted, the error message emitted ("operation not permitted") is not really informative or helpful. It should simply report that the requested filesystem is not presently mounted, as it used to do. Pertinent version info: util-linux 2.21.2-5 Kernel: 3.5.3-1-ARCH #1 SMP PREEMPT How to reproduce: # # fstab line for /mnt/flash (which is not presently mounted): # $ grep /mnt/flash /etc/fstab /dev/hda1 /mnt/flash msdos noauto,user 0 0 # # As non-root user, attempt to unmount it (even though it is not mounted): # $ umount /mnt/flash umount: /mnt/flash/: umount failed: Operation not permitted # # At some time in the past, the emitted error message was more useful, # simply reporting tha the requested filesystem is not presently mounted. # Here's an example from an older system: # $ umount /mnt/xyz umount: /mnt/xyz is not mounted (according to mtab) Commentary: Obviously this problem is not a national emergency, but it would be nice if the old, more informative, behavior could be restored. |
This task depends upon
Closed by Dave Reisner (falconindy)
Friday, 27 September 2013, 13:44 GMT
Reason for closing: Fixed
Additional comments about closing: Committed upstream for inclusion in util-linux 2.24
Friday, 27 September 2013, 13:44 GMT
Reason for closing: Fixed
Additional comments about closing: Committed upstream for inclusion in util-linux 2.24
Attempting to umount a FS which is not mounted emits "operation not permitted" instead of "is not mounted". x
* The original report only concerned itself with a non-root user attempting to umount a user-mountable FS which is not in fact mounted.
* In 2.23.2, the following are observed: A root user attempting to umount a non-mounted FS gets the correct "is not mounted" message. But a non-root user gets "operation not permitted", even if the FS is optioned as user-mountable.
Don't know if this was also true in 2.22-7, but suspect it was. If so, it may explain why it was reported as fixed in 2.22-7: I may have done the check as root, having forgotten that the problem pertained only to non-root user.