Re: [CFT] Patch to bsdinstall to support root-on-ZFS and GELI

From: John-Mark Gurney <jmg_at_funkthat.com>
Date: Tue, 8 Oct 2013 14:21:03 -0700
Devin Teske wrote this message on Tue, Oct 08, 2013 at 20:50 +0000:
> > 2. Why are you using camcontrol? That is guaranteed not to work on
> > non-CAM systems. You should use the GEOM ident string if you need an ID.
> 
> I imagine we could get the info from many places, and to be honest, I never
> knew about "diskinfo" until last week (but apparently it's been around since
> 5.x days).
> 
> The one place where I suspect camcontrol(8) usage is appropriate is the
> mini "disk inspector" dialog. The camcontrol inquiry output is specifically
> helpful if/when you're doing multipathing (and you need to identify which
> da# devices are duplicates of the same device -- given Serial#).
> 
> But I gather you mean for "disk description" in the device menu (for picking
> text to go along with the device name).
> 
> I'm open to using a different tool... or multiple tools. Do you think it would be
> better to just stick to one tool? or to query a few? (which ones win-out?)

diskinfo -v dumps the serial number for you under disk ident..  diskinfo
gets it from geom and most geoms properly present that info now...  or
at least probably anyones support by cam will do it automatically...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Tue Oct 08 2013 - 19:21:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC