23 #ifndef STORAGE_LUKS_H 24 #define STORAGE_LUKS_H 27 #include "storage/Devices/Encryption.h" 70 void set_uuid(
const std::string& uuid);
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);
static Luks * create(Devicegraph *devicegraph, const std::string &dm_table_name)
Create a device of type Luks.
Luks * to_luks(Device *device)
Converts pointer to Device to pointer to Luks.
static void reset_activation_infos()
The library keeps track of whether the activation of a specific LUKS device was canceled and of the p...
void set_uuid(const std::string &uuid)
Set the LUKS UUID.
const std::string & get_uuid() const
Get the LUKS UUID.
const std::string & get_label() const
Get the LUKS label.
An encryption layer on a blk device.
Definition: Encryption.h:54
The main container of the libstorage-ng.
Definition: Devicegraph.h:169
void set_label(const std::string &label)
Set the LUKS label.
An abstract base class for storage devices.
Definition: Device.h:81
static std::vector< Luks * > get_all(Devicegraph *devicegraph)
Get all Lukses.
void set_format_options_v2(const std::vector< std::string > &format_options_v2)
Set extra options for luks format call.
const std::vector< std::string > & get_format_options_v2() const
Get extra options for luks format call.
An LUKS encryption layer on a block device.
Definition: Luks.h:38
bool is_luks(const Device *device)
Checks whether device points to a Luks.
The storage namespace.
Definition: Actiongraph.h:39