Skip to content

v2: Add 'serial' attribute to virtio-blk devices

Ryan Harper kvm qemu-devel virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2v2 Add 'serial' attribute to virtio-blk devicesdrivers/block/virtio_blk.c+28 -00 replies
1/2v2 Add 'serial' attribute to virtio-blk devicesdrivers/block/virtio_blk.c+28 -00 replies
2/2Remove virtio_blk VBID ioctldrivers/block/virtio_blk.c+0 -100 replies
2/2Remove virtio_blk VBID ioctldrivers/block/virtio_blk.c+0 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] v2: Add 'serial' attribute to virtio-blk devices

Using Rusty's suggestion I've respun the patch removing the special copy function. I've tested this patch in a guest kernel with and without qemu supplying serial numbers for the block devices and it's working as expected. When qemu supplies serial numbers, the correct value is supplied to /sys/block/vdX/serial and can be used by udev for generating disk/by-id paths (without separate utility). When running without serial number support the path still exists in sysfs but produces no output.