23 #ifndef STORAGE_BTRFS_SUBVOLUME_H 24 #define STORAGE_BTRFS_SUBVOLUME_H 27 #include "storage/Filesystems/Mountable.h" 28 #include "storage/Devicegraph.h" 49 bool is_top_level()
const;
51 const std::string& get_path()
const;
53 bool is_nocow()
const;
54 void set_nocow(
bool nocow);
56 bool is_default_btrfs_subvolume()
const;
57 void set_default_btrfs_subvolume();
60 const Btrfs* get_btrfs()
const;
77 const Impl& get_impl()
const;
88 bool is_btrfs_subvolume(
const Device* device);
BtrfsSubvolume * to_btrfs_subvolume(Device *device)
Converts pointer to Device to pointer to BtrfsSubvolume.
Class to represent a btrfs subvolume.
Definition: BtrfsSubvolume.h:40
The master container of the libstorage.
Definition: Devicegraph.h:153
Definition: Mountable.h:89
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:75
static bool compare_by_id(const BtrfsSubvolume *lhs, const BtrfsSubvolume *rhs)
Compare (less than) two BtrfsSubvolumes by id.
The storage namespace.
Definition: Actiongraph.h:37