luks_close


Description:

[ Version ( deprecated = true , since = "1.5.1" ) ]
public bool luks_close (string device) throws Error

Warning: luks_close is deprecated.

close a LUKS device

Note:

In new code, use cryptsetup_close instead

This closes a LUKS device that was created earlier by luks_open or luks_open_ro. The device parameter must be the name of the LUKS mapping device (ie. /dev/mapper/mapname) and *not* the name of the underlying block device.

This function depends on the feature "luks". See also feature_available .

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error