Project

General

Profile

Actions

Bug #4845

open

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

Added by Andrew Stormont about 8 years ago. Updated about 8 years ago.

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

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

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.

Actions #1

Updated by Andrew Stormont about 8 years ago

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

Updated by Andrew Stormont about 8 years ago

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

Actions #3

Updated by Andrew Stormont about 8 years ago

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

Updated by Andrew Stormont about 8 years ago

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

Updated by Andrew Stormont about 8 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

Actions #7

Updated by Andrew Stormont about 8 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

Actions

Also available in: Atom PDF