[ Version ( since = "1.0.55" ) ]
public bool mkswap (string device, Mkswap? optargs) throws Error
create a swap partition
Create a Linux swap partition on device
.
The option arguments label
and uuid
allow you to set the label and/or UUID of the new swap partition.
this |
A GuestfsSession object |
optargs |
a GuestfsMkswap containing optional arguments |
true on success, false on error |