Richard W.M. Jones
7786d56db8
launch: Add add_drive 'label' option.
...
New API: list-disk-labels
Allow the user to pass an optional disk label when adding a drive.
This is passed through to qemu / libvirt using the disk serial field,
and from there to the appliance which exposes it through udev,
creating a special alias of the device /dev/disk/guestfs/<label>.
Partitions are named /dev/disk/guestfs/<label><partnum>.
virtio-blk and virtio-scsi limit the serial field to 20 bytes. We
further limit the name to maximum 20 ASCII characters in [a-zA-Z].
list-devices and list-partitions are not changed: these calls still
return raw block device names. However a new call, list-disk-labels,
returns a hash table allowing callers to map between disk labels, and
block device and partition names.
This commit also includes a test.
2012-10-08 20:04:47 +01:00
..
2012-08-30 20:57:07 +01:00
2012-07-18 09:05:32 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-09-03 17:45:14 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-03-14 19:30:46 +00:00
2009-03-03 08:58:37 +00:00
2012-08-30 20:57:07 +01:00
2012-09-17 10:07:31 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-10-08 20:04:47 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2011-11-08 14:43:07 +00:00
2012-08-30 20:57:07 +01:00
2012-07-19 16:11:47 +01:00
2012-09-24 16:40:46 +01:00
2012-03-14 19:30:46 +00:00
2012-09-17 16:25:53 +01:00
2012-08-17 16:08:14 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-03-08 14:30:10 +00:00
2012-08-02 14:05:54 +01:00
2012-08-30 20:57:07 +01:00
2012-09-28 15:09:51 +01:00
2012-10-03 08:55:24 +01:00
2012-03-14 19:30:46 +00:00
2012-03-14 19:30:46 +00:00
2012-08-29 17:08:01 +01:00
2009-11-26 11:52:44 +00:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-01-21 21:31:50 +00:00
2011-11-08 14:43:07 +00:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-09-17 13:37:06 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-10-07 11:55:01 +01:00
2012-08-30 20:57:07 +01:00
2012-09-15 12:35:59 +01:00
2012-02-01 15:09:09 +00:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2011-11-08 14:43:07 +00:00
2012-09-24 09:46:24 +01:00
2012-03-13 08:23:56 +00:00
2012-07-17 14:37:03 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00
2012-02-01 15:09:09 +00:00
2012-09-15 12:35:59 +01:00
2011-11-08 14:43:07 +00:00
2012-08-17 16:08:13 +01:00
2011-11-08 14:43:07 +00:00
2012-03-14 19:30:46 +00:00
2012-08-30 20:57:07 +01:00
2012-07-02 21:13:21 +01:00
2012-08-30 20:57:07 +01:00
2012-03-14 19:30:46 +00:00
2011-11-08 14:43:07 +00:00
2012-03-14 19:30:46 +00:00
2011-12-08 11:39:58 +00:00
2012-07-30 15:16:45 +01:00
2012-03-14 19:30:46 +00:00
2012-08-17 16:08:13 +01:00
2012-09-15 13:19:12 +01:00
2012-08-30 20:57:07 +01:00
2012-08-30 20:57:07 +01:00