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:70
void set_type(DasdType type)
Set the DASD type.
static Dasd * create(Devicegraph *devicegraph, const std::string &name, unsigned long long size)
Create a device of type Dasd.
static std::vector< const Dasd * > get_all(const Devicegraph *devicegraph)
Get all Dasds.
DasdFormat get_format() const
Get the DASD format.
void set_bus_id(std::string bus_id)
Set the bus ID of the DASD.
static Dasd * create(Devicegraph *devicegraph, const std::string &name)
Create a device of type Dasd.
static const Dasd * find_by_name(const Devicegraph *devicegraph, const std::string &name)
Find a Dasd by its name.
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.
bool is_rotational() const
Return whether the DASD is of rotational or non-rotational type.
static std::vector< Dasd * > get_all(Devicegraph *devicegraph)
Get all Dasds.
void set_format(DasdFormat format)
Set the DASD format.
DasdType get_type() const
Get the DASD type.
static Dasd * create(Devicegraph *devicegraph, const std::string &name, const Region ®ion)
Create a device of type Dasd.
An abstract base class for storage devices.
Definition: Device.h:82
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
Definition: Partitionable.h:40
A start/length pair with a block size.
Definition: Region.h:85
The storage namespace.
Definition: Actiongraph.h:39
std::string get_dasd_type_name(DasdType dasd_type)
Convert the DASD type dasd_type to a string.
DasdFormat
The layout with which the ECKD DASD was formatted.
Definition: Dasd.h:45
std::string get_dasd_format_name(DasdFormat dasd_format)
Convert the DASD format dasd_format to a string.
Dasd * to_dasd(Device *device)
Converts pointer to Device to pointer to Dasd.
bool is_dasd(const Device *device)
Checks whether device points to a Dasd.
DasdType
The DASD type.
Definition: Dasd.h:37