24 #ifndef STORAGE_DASD_H 25 #define STORAGE_DASD_H 28 #include "storage/Devices/Partitionable.h" 91 unsigned long long size);
179 const Impl& get_impl()
const;
181 virtual Dasd* clone()
const override;
A physical DASD device.
Definition: Dasd.h:69
void set_bus_id(std::string bus_id)
Set the bus ID of the DASD.
DasdType
The DASD type.
Definition: Dasd.h:37
static Dasd * find_by_name(Devicegraph *devicegraph, const std::string &name)
Find a Dasd by its name.
std::string get_bus_id() const
Get the bus ID of the DASD.
A start/length pair with a block size.
Definition: Region.h:73
void set_type(DasdType type)
Set the DASD type.
The main container of the libstorage-ng.
Definition: Devicegraph.h:169
Dasd * to_dasd(Device *device)
Converts pointer to Device to pointer to Dasd.
std::string get_dasd_type_name(DasdType dasd_type)
Convert the DASD type dasd_type to a string.
DasdType get_type() const
Get the DASD type.
static Dasd * create(Devicegraph *devicegraph, const std::string &name)
Create a device of type Dasd.
DasdFormat
The layout with which the ECKD DASD was formatted.
Definition: Dasd.h:45
void set_format(DasdFormat format)
Set the DASD format.
bool is_dasd(const Device *device)
Checks whether device points to a Dasd.
bool is_rotational() const
Return whether the DASD is of rotational or non-rotational type.
An abstract base class for storage devices.
Definition: Device.h:81
static std::vector< Dasd * > get_all(Devicegraph *devicegraph)
Get all Dasds.
Definition: Partitionable.h:39
std::string get_dasd_format_name(DasdFormat dasd_format)
Convert the DASD format dasd_format to a string.
The storage namespace.
Definition: Actiongraph.h:38
DasdFormat get_format() const
Get the DASD format.