Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Nov 2009 17:28:51 +0100
From:      =?ISO-8859-1?Q?Marius_N=FCnnerich?= <marius@nuenneri.ch>
To:        "James R. Van Artsdalen" <freebsd-geom@jrv.org>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: help adding device serial numbers to /dev namespace?
Message-ID:  <b649e5e0911280828s4f5607cfq4283b314ed4fbce8@mail.gmail.com>
In-Reply-To: <4B106C51.7070905@jrv.org>
References:  <4B106C51.7070905@jrv.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 28, 2009 at 01:18, James R. Van Artsdalen
<freebsd-geom@jrv.org> wrote:
> Can anyone give me suggestions on how to implement putting disk driver
> serial numbers in the /dev namespace, much as UFS ID's are put there now?
>
> I want to propose adding the disk drive's hardware serial number, i.e.,
> for this
>
> # camcontrol identify ada0
> pass0: <ST3750640AS 3.AAJ> ATA/ATAPI-7 SATA 1.x device
> pass0: 150.000MB/s transfers
>
> protocol =A0 =A0 =A0 =A0 =A0 =A0 =A0ATA/ATAPI-7 SATA 1.x
> device model =A0 =A0 =A0 =A0 =A0ST3750640AS
> firmware revision =A0 =A0 3.AAJ
> serial number =A0 =A0 =A0 =A0 3QD0NWQT
> ...
>
> I would add a name like /dev/serialnum/3QD0NWQT. =A0This differs from the
> current name schemes I know of in that it describes the whole disk and
> not any particular partition or region, and no on-disk storage is needed.
>
> I think this needs to be done in GEOM, as a result of disk_create() and
> using d_ident, but I'm getting lost and need some guidance to do an
> example patch to "formally" propose the idea.
>
> The immediate use today is for ZFS.

If I remember correctly ivoras@ already proposed a patch like this.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b649e5e0911280828s4f5607cfq4283b314ed4fbce8>