Re: Installer disk info improvement (was - Re: querying scsi id/wwn for scsi disk)

2017-04-03 Thread Jiri B
On Sun, Apr 02, 2017 at 06:14:50PM -0400, Ted Unangst wrote: > Robert Peichaer wrote: > > Parsing dmesg output always tends to be fragile, but what about this? > > Use whatever is enclosed in <> in the dmesg output for a disk and get > > the size from disklabel. > > This looks insane. If somebody

Re: Installer disk info improvement (was - Re: querying scsi id/wwn for scsi disk)

2017-04-02 Thread Ted Unangst
Robert Peichaer wrote: > Parsing dmesg output always tends to be fragile, but what about this? > Use whatever is enclosed in <> in the dmesg output for a disk and get > the size from disklabel. This looks insane. If somebody can tell us what output they want, we can provide it in a more useful int

Re: Installer disk info improvement (was - Re: querying scsi id/wwn for scsi disk)

2017-04-02 Thread Robert Peichaer
On Thu, Mar 30, 2017 at 09:10:01AM -0400, Jiri B wrote: > > > > diff -u -p -r1.988 install.sub > > > > --- distrib/miniroot/install.sub13 Mar 2017 17:08:31 - > > > > 1.988 > > > > +++ distrib/miniroot/install.sub30 Mar 2017 10:44:01 - > > > > @@ -264,13 +264,7 @@ diski

Installer disk info improvement (was - Re: querying scsi id/wwn for scsi disk)

2017-03-30 Thread Jiri B
> > > diff -u -p -r1.988 install.sub > > > --- distrib/miniroot/install.sub 13 Mar 2017 17:08:31 - 1.988 > > > +++ distrib/miniroot/install.sub 30 Mar 2017 10:44:01 - > > > @@ -264,13 +264,7 @@ diskinfo() { > > > local _d > > > > > > for _d; do > > > - make_dev $_d > >

Re: querying scsi id/wwn for scsi disk

2017-03-30 Thread Bruno Flueckiger
On Thu, Mar 30, 2017 at 07:21:22AM -0400, Jiri B wrote: > On Thu, Mar 30, 2017 at 12:59:00PM +0200, Bruno Flueckiger wrote: > > I see your point with the installer. Default labels make the disks > > indistinguishable. The following diff prints the raw infos from dmesg > > rather than the current li

Re: querying scsi id/wwn for scsi disk

2017-03-30 Thread Jiri B
On Thu, Mar 30, 2017 at 12:59:00PM +0200, Bruno Flueckiger wrote: > I see your point with the installer. Default labels make the disks > indistinguishable. The following diff prints the raw infos from dmesg > rather than the current list of disks: > > Index: distrib/miniroot/install.sub >

Re: querying scsi id/wwn for scsi disk

2017-03-30 Thread Bruno Flueckiger
On Thu, Mar 30, 2017 at 04:53:51AM -0400, Jiri B wrote: > On Thu, Mar 30, 2017 at 10:25:18AM +0200, Bruno Flueckiger wrote: > > > how to query scsi id or wwn for a scsi disk in OpenBSD? I'd like to get > > > this > > > info and extend installer to provide more info about disks (because > > > curr

Re: querying scsi id/wwn for scsi disk

2017-03-30 Thread Jiri B
On Thu, Mar 30, 2017 at 10:25:18AM +0200, Bruno Flueckiger wrote: > > how to query scsi id or wwn for a scsi disk in OpenBSD? I'd like to get this > > info and extend installer to provide more info about disks (because > > currently > > it's imposible to distinguish between scsi disks if they are

Re: querying scsi id/wwn for scsi disk

2017-03-30 Thread Bruno Flueckiger
On Thu, Mar 30, 2017 at 04:04:51AM -0400, Jiri B wrote: > Hi, > > how to query scsi id or wwn for a scsi disk in OpenBSD? I'd like to get this > info and extend installer to provide more info about disks (because currently > it's imposible to distinguish between scsi disks if they are same size an

querying scsi id/wwn for scsi disk

2017-03-30 Thread Jiri B
Hi, how to query scsi id or wwn for a scsi disk in OpenBSD? I'd like to get this info and extend installer to provide more info about disks (because currently it's imposible to distinguish between scsi disks if they are same size and originate from same iscsi target and passed to OpenBSD via qemu-