Project

General

Profile

Bug #4845

rm(u)mount don't always print mount/unmount errors

Added by Andrew Stormont over 5 years ago. Updated over 5 years ago.

Status:
In Progress
Priority:
Normal
Category:
-
Start date:
2014-05-04
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

The rmmount or rmumount commands print out an error message unless the device they're trying to mount/unmount is already mounted/unmounted. An exit status of 1 is always returned on error.

History

#1

Updated by Andrew Stormont over 5 years ago

  • Subject changed from rm(u)mount suppressed already mounted/unmounted errors to rm(u)mount suppresses already mounted/unmounted errors
#2

Updated by Andrew Stormont over 5 years ago

Both commands also fail to catch cases where the inserted media contains no mountable volumes.

#3

Updated by Andrew Stormont over 5 years ago

  • Subject changed from rm(u)mount suppresses already mounted/unmounted errors to rm(u)mount don't always print mount/unmount errors
#4

Updated by Andrew Stormont over 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Andrew Stormont
#6

Updated by Andrew Stormont over 5 years ago

Example errors now displayed after changset:

Already mounted:

mount of /dev/dsk/c3t0d0s2 failed: Device /dev/dsk/c3t0d0s2 is already mounted.

Already unmounted:

unmount of /dev/dsk/c3t0d0s2 failed: According to HAL, the volume is not mounted

No mountable partition on disk:

no volumes on '/dev/dsk/c3t0d0s2' to mount

No disc in drive:

no volumes in 'cdrom' to mount

#7

Updated by Andrew Stormont over 5 years ago

The webrev has now been updated so it only issues a single error for devices that are missing volumes:

cannot mount device 'cdrom' with no volumes

Same location as before: http://cr.illumos.org/~webrev/andy_js/4845

Also available in: Atom PDF