diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-08-28 04:00:52 -0400 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-08-28 04:44:05 -0400 |
commit | f23a5c468e959f86df89e2a4e8aa9160eca532f8 (patch) | |
tree | 9af42fe1783d6c550f0764bb9df84d6a6e730341 /java/examples | |
parent | c2ac512f12cc87d27d04f69cb70b2c5e4c4a9bc5 (diff) | |
download | libguestfs-f23a5c468e959f86df89e2a4e8aa9160eca532f8.tar.gz libguestfs-f23a5c468e959f86df89e2a4e8aa9160eca532f8.tar.xz libguestfs-f23a5c468e959f86df89e2a4e8aa9160eca532f8.zip |
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
Diffstat (limited to 'java/examples')
0 files changed, 0 insertions, 0 deletions