chiark / gitweb /
Add virtio-blk by-id rules based on 'serial' attribute
authorRyan Harper <ryanh@us.ibm.com>
Fri, 25 Jun 2010 13:59:23 +0000 (08:59 -0500)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 29 Jun 2010 15:22:58 +0000 (17:22 +0200)
commit2d000ed9d85eb6dd8a535e5d5e8f7a5ef52bd794
tree58ddcc6882d5885ee211afc220b5e93663bc82d7
parent8741f2defaf26aafe5ee0fd29954cfdf84ee519c
Add virtio-blk by-id rules based on 'serial' attribute

Using virtio-blk serial attributes add rules to extract drive serial numbers and
generate by-id links for the block device and partitions.

With these rules added, we now see the following symlinks in disk/by-id

% ls -al /dev/disk/by-id | grep vdb
lrwxrwxrwx. 1 root root   9 Jun  1 22:09 virtio-QM00001 -> ../../vda
lrwxrwxrwx. 1 root root  10 Jun  1 22:09 virtio-QM00001-part1 -> ../../vda1

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
rules/rules.d/60-persistent-storage.rules