Project

General

Profile

Actions

Bug #4846

open

HAL partition names don't match real partition names

Added by Andrew Stormont over 9 years ago. Updated over 9 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:
External Bug:

Description

For some reason that I cannot grok HAL is rewriting partition names for devices. The name /dev/dsk/c5t0d0p1 becomes /dev/dsk/c50d0p0:1. This is a problem because all utilities that are backed by HAL (such as rmmount and rmformat) require names to be formatted this way or they won't work (returning a silly error like "device not found"). It's a seemingly unnecessary change which just makes things inconsistent.

Actions #2

Updated by Andrew Stormont over 9 years ago

Updated webrev: http://cr.illumos.org/~webrev/andy_js/4846-3/

Example output of eject -l before the changes:

andy@openindiana:~$ eject -l
/dev/dsk/c5t0d0p0:1  rmdisk,rmdisk0,UNTITLED,/media/UNTITLED
/dev/dsk/c3t0d0s2    cdrom,cdrom0,cd,cd0,sr,sr0

And after the changes:

andy@openindiana:~$ eject -l
/dev/dsk/c5t0d0p1    rmdisk,rmdisk0,UNTITLED,/media/UNTITLED
/dev/dsk/c3t0d0s2    cdrom,cdrom0,cd,cd0,sr,sr0

I think this is better because the device names are now consistent across tools that are backed by HAL (like eject, rmformat, rmmount and rmumount) and tools which are not (such as fdisk and gparted).

Actions

Also available in: Atom PDF