27#include "storage/Devices/Encryption.h"
86 const std::string& get_format_options() const ST_DEPRECATED;
87 void set_format_options(const std::
string& format_options) ST_DEPRECATED;
116 const Impl& get_impl() const;
118 virtual
Luks* clone() const override;
119 virtual std::unique_ptr<
Device> clone_v2() const override;
122 ST_NO_SWIG
Luks(std::unique_ptr<
Device::Impl>&& impl);
An abstract base class for storage devices.
Definition Device.h:82
The main container of the libstorage-ng.
Definition Devicegraph.h:170
An encryption layer on a blk device.
Definition Encryption.h:55
An LUKS encryption layer on a block device.
Definition Luks.h:39
void set_format_options_v2(const std::vector< std::string > &format_options_v2)
Set extra options for luks format call.
static Luks * create(Devicegraph *devicegraph, const std::string &dm_table_name)
Create a device of type Luks.
const std::string & get_label() const
Get the LUKS label.
const std::vector< std::string > & get_format_options_v2() const
Get extra options for luks format call.
static std::vector< Luks * > get_all(Devicegraph *devicegraph)
Get all Lukses.
static std::vector< const Luks * > get_all(const Devicegraph *devicegraph)
Get all Lukses.
static void reset_activation_infos()
The library keeps track of whether the activation of a specific LUKS device was canceled and of the p...
const std::string & get_uuid() const
Get the LUKS UUID.
void set_uuid(const std::string &uuid)
Set the LUKS UUID.
void set_label(const std::string &label)
Set the LUKS label.
The storage namespace.
Definition Actiongraph.h:40
Luks * to_luks(Device *device)
Converts pointer to Device to pointer to Luks.
bool is_luks(const Device *device)
Checks whether device points to a Luks.