mkswap_L


Description:

[ 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

Note:

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.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error