Re: Utility to list /dev/nodes serno's

2010-08-19 Thread Antonio Huete Jimenez
Hi Here you have the approach. I'll commit today if it's okay. http://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/shortlog/refs/heads/dev2serno Cheers, Antonio Huete 2010/8/12 Aggelos Economopoulos ao...@cc.ece.ntua.gr: On 08/12/2010 10:30 AM, Dylan Reinhold wrote: On 08/06/2010 01:27 PM,

Re: Utility to list /dev/nodes serno's

2010-08-19 Thread Sascha Wildner
On 8/12/2010 14:52, Aggelos Economopoulos wrote: That is a suboptimal approach. It should be trivial to export serno via udev as Alex suggested and just as trivial to parse that (and more) info from a userspace utility using libdevattr. It is generic and extendable. Just try it :) Umm, guys.

Re: Utility to list /dev/nodes serno's

2010-08-12 Thread Dylan Reinhold
On 08/06/2010 01:27 PM, Matthew Dillon wrote: :Hi people, : :is there a way to easily list all disks and their associated serno's ? :Something like 'blkid' utility of Linux, if you happen to know it. :I could happily hack something like that, if we lack it. : : :Cheers, :Stathis There

Re: Utility to list /dev/nodes serno's

2010-08-12 Thread Antonio Huete Jimenez
K, I'm grabbing this submit. Cheers, Antonio Huete 2010/8/12 Dylan Reinhold dy...@ocnetworking.com: On 08/06/2010 01:27 PM, Matthew Dillon wrote: :Hi people, : :is there a way to easily list all disks and their associated serno's ? :Something like 'blkid' utility of Linux, if you happen to

Re: Utility to list /dev/nodes serno's

2010-08-12 Thread Aggelos Economopoulos
On 08/12/2010 10:30 AM, Dylan Reinhold wrote: On 08/06/2010 01:27 PM, Matthew Dillon wrote: :Hi people, : :is there a way to easily list all disks and their associated serno's ? :Something like 'blkid' utility of Linux, if you happen to know it. :I could happily hack something like that, if

Utility to list /dev/nodes serno's

2010-08-06 Thread Stathis Kamperis
Hi people, is there a way to easily list all disks and their associated serno's ? Something like 'blkid' utility of Linux, if you happen to know it. I could happily hack something like that, if we lack it. Cheers, Stathis

Re: Utility to list /dev/nodes serno's

2010-08-06 Thread Matthew Dillon
:Hi people, : :is there a way to easily list all disks and their associated serno's ? :Something like 'blkid' utility of Linux, if you happen to know it. :I could happily hack something like that, if we lack it. : : :Cheers, :Stathis There isn't, and that would be cool. It is fairly easy to

Re: Utility to list /dev/nodes serno's

2010-08-06 Thread Alex Hornung
For whatever it's worth it would also be possible to use libdevattr, which offers a fairly easy way to query for all disk devices and get additional information such as serial number, device path, disk type (optical, floppy, raid, ...). This approach might require that the serial number is added