27#include "storage/Devices/Encryption.h"
112 const Impl& get_impl()
const;
114 virtual Luks* clone()
const override;
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
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.
static std::vector< Luks * > get_all(Devicegraph *devicegraph)
Get all Lukses.
static std::vector< const Luks * > get_all(const Devicegraph *devicegraph)
Get all Lukses.
void set_format_options(const std::string &format_options)
Set extra options for luks format call.
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.
const std::string & get_format_options() const
Get extra options for luks format call.
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.