Re: Identifying disks by name

2011-06-23 Thread Henning Brauer
* Janjaap van Velthooven [2011-06-22 21:37]: > Just a vague idea for the moment; > > How aboot some mechanism that can do number lookups by name for disks? like... fstab? b6c15508a519d7ae.d /backup/ftp ffs rw,softdep,nodev,nosuid,noexec,noatime,noauto -- Henning Brauer, h...@bsws.de, henn...@

Re: Identifying disks by name

2011-06-22 Thread Thordur Bjornsson
On Wed, Jun 22, 2011 at 09:54:07PM +0200, Janjaap van Velthooven wrote: > Thordur Bjornsson wrote and mailed: > > On Wed, Jun 22, 2011 at 09:34:55PM +0200, Janjaap van Velthooven wrote: > > > Just a vague idea for the moment; > > > > > > How aboot some mechanism that can do number lookups by name

Re: Identifying disks by name

2011-06-22 Thread roberth
On Wed, 22 Jun 2011 21:07:41 +0200 Wouter Coene wrote: > mount 1234567890abcdef.a /mnt > mount backups.a /mnt # export backups=1234567890abcdef # mount $backups.a /mnt I myself prefere to include the slice, less to remember/look up.

Re: Identifying disks by name

2011-06-22 Thread Thordur Bjornsson
On Wed, Jun 22, 2011 at 09:34:55PM +0200, Janjaap van Velthooven wrote: > On Wed, Jun 22, 2011 at 08:12:28PM +0100, Stuart Henderson wrote: > > On 2011/06/22 21:07, Wouter Coene wrote: > > > Also, this is certainly not useless if you have more than a handfull of > > > disks > > > or SAN volumes, o

Re: Identifying disks by name

2011-06-22 Thread Janjaap van Velthooven
On Wed, Jun 22, 2011 at 08:12:28PM +0100, Stuart Henderson wrote: > On 2011/06/22 21:07, Wouter Coene wrote: > > Also, this is certainly not useless if you have more than a handfull of > > disks > > or SAN volumes, or for removable media. Which of the following is more > > readable? > > > > m

Re: Identifying disks by name

2011-06-22 Thread Thordur Bjornsson
On Wed, Jun 22, 2011 at 09:07:41PM +0200, Wouter Coene wrote: > On 22 jun 2011, at 20:53, Kenneth R Westerback wrote: > > On Wed, Jun 22, 2011 at 06:48:14PM +0200, Wouter Coene wrote: > >> The patch below builds on the disk UID code to implement disk names. Disk > >> names must match [a-zA-Z0-9_]{1

Re: Identifying disks by name

2011-06-22 Thread Stuart Henderson
On 2011/06/22 21:07, Wouter Coene wrote: > > Also, this is certainly not useless if you have more than a handfull of disks > or SAN volumes, or for removable media. Which of the following is more > readable? > > mount 1234567890abcdef.a /mnt > mount backups.a /mnt mount bac00

Re: Identifying disks by name

2011-06-22 Thread Wouter Coene
On 22 jun 2011, at 20:53, Kenneth R Westerback wrote: > On Wed, Jun 22, 2011 at 06:48:14PM +0200, Wouter Coene wrote: >> The patch below builds on the disk UID code to implement disk names. Disk >> names must match [a-zA-Z0-9_]{1,10} and are stored encoded as 6 bits per >> character into the diskla

Re: Identifying disks by name

2011-06-22 Thread Kenneth R Westerback
On Wed, Jun 22, 2011 at 06:48:14PM +0200, Wouter Coene wrote: > Hi all, > > The patch below builds on the disk UID code to implement disk names. Disk > names must match [a-zA-Z0-9_]{1,10} and are stored encoded as 6 bits per > character into the disklabel UID field. With this patch, you can use di

Identifying disks by name

2011-06-22 Thread Wouter Coene
Hi all, The patch below builds on the disk UID code to implement disk names. Disk names must match [a-zA-Z0-9_]{1,10} and are stored encoded as 6 bits per character into the disklabel UID field. With this patch, you can use disk names in /etc/fstab: bootdisk.a / ffs rw 1 1 And with every