Files
libguestfs/daemon
Richard W.M. Jones f23a5c468e Modified API: mkswap now takes optional arguments.
Add optional label and uuid arguments, and deprecate mkswap-L and
mkswap-U.

This also adds a call to udev_settle after creating the swap device.
This is an attempt to workaround the following problem seen in Koji
and Rawhide:

libguestfs: trace: mkswap_L "swapit" "/dev/sda1"
libguestfs: send_to_daemon: 72 bytes: 00 00 00 44 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 83 | 00 00 00 00 | ...
guestfsd: main_loop: proc 210 (part_disk) took 2.28 seconds
guestfsd: main_loop: new request, len 0x44
mkswap -f -L swapit /dev/sda1
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 83 | 00 00 00 01 | 00 12 37 cf | ...
libguestfs: trace: mkswap_L = 0
libguestfs: trace: swapon_label "swapit"
libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 ae | 00 00 00 00 | ...
guestfsd: main_loop: proc 131 (mkswap_L) took 0.77 seconds
guestfsd: main_loop: new request, len 0x34
swapon -L swapit
swapon: cannot find the device for swapit
guestfsd: error: swapit: swapon: cannot find the device for swapit
libguestfs: recv_from_daemon: 100 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 ae | 00 00 00 01 | 00 12 37 d0 | ...
libguestfs: trace: swapon_label = -1 (error)
swapon_label: swapit: swapon: cannot find the device for swapit
test_swapon_label_0 FAILED
2012-08-28 04:44:05 -04:00
..
2012-07-18 09:05:32 +01:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2012-01-18 22:05:02 +00:00
2012-05-22 13:50:19 +01:00
2012-07-02 16:42:17 +01:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2012-01-18 22:05:02 +00:00
2012-02-08 14:35:55 +00:00
2011-11-08 14:43:07 +00:00
2012-01-18 22:05:02 +00:00
2011-11-08 14:43:07 +00:00
2012-03-20 18:50:24 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2012-03-13 08:23:56 +00:00
2012-08-11 09:28:58 +01:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2012-07-30 15:16:45 +01:00
2012-08-21 10:19:01 +01:00
2011-11-08 14:43:07 +00:00