[ Version ( deprecated = true , since = "1.0.55" ) ]
public bool mkswap_L (string label, string device) throws Error
Warning: mkswap_L is deprecated.
create a swap partition with a label
In new code, use mkswap instead
Create a swap partition on device
with label label
.
Note that you cannot attach a swap label to a block device (eg. /dev/sda), just to a partition. This appears to be a limitation of the kernel or swap tools.
this |
A GuestfsSession object |
true on success, false on error |