v2: Add 'serial' attribute to virtio-blk devices
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | v2 Add 'serial' attribute to virtio-blk devicesdrivers/ | +28 | 0 replies | |
| 1/2 | v2 Add 'serial' attribute to virtio-blk devicesdrivers/ | +28 | 0 replies | |
| 2/2 | Remove virtio_blk VBID ioctldrivers/ | +0 | 0 replies | |
| 2/2 | Remove virtio_blk VBID ioctldrivers/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.
Signed-off-by Ryan Harper <[email protected]>