24 #ifndef STORAGE_BLK_FILESYSTEM_H
25 #define STORAGE_BLK_FILESYSTEM_H
30 #include "storage/Filesystems/Filesystem.h"
56 bool supports_label()
const;
57 unsigned int max_labelsize()
const;
59 const std::string& get_label()
const;
60 void set_label(
const std::string& label);
62 bool supports_uuid()
const;
64 const std::string& get_uuid()
const;
65 void set_uuid(
const std::string& uuid);
144 static std::vector<const BlkFilesystem*> find_by_label(
const Devicegraph* devicegraph,
145 const std::string& label);
147 static std::vector<const BlkFilesystem*> find_by_uuid(
const Devicegraph* devicegraph,
148 const std::string& uuid);
150 std::vector<const BlkDevice*> get_blk_devices()
const;
157 const Impl& get_impl()
const;
const std::string & get_mkfs_options() const
Get extra options for the filesystem mkfs command.
bool supports_shrink() const
Checks whether shrinking the filesystem is supported.
void set_content_info(const ContentInfo &content_info)
Set the ResizeInfo.
ContentInfo detect_content_info() const
Detect the content info of the filesystem.
The storage namespace.
Definition: Actiongraph.h:39
void set_tune_options(const std::string &tune_options)
Set extra options for the filesystem tune command.
Definition: FreeInfo.h:252
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
const std::string & get_tune_options() const
Get extra options for the filesystem tune command.
static std::vector< const BlkFilesystem * > get_all(const Devicegraph *devicegraph)
Get all BlkFilesystems.
void set_mkfs_options(const std::string &mkfs_options)
Set extra options for the filesystem mkfs command.
bool supports_unmounted_grow() const
Checks whether growing the filesystem while being unmounted is supported.
Definition: FreeInfo.h:198
An abstract base class for storage devices.
Definition: Device.h:82
bool supports_grow() const
Checks whether growing the filesystem is supported.
Definition: Filesystem.h:41
void set_resize_info(const ResizeInfo &resize_info)
Set the ResizeInfo.
static std::vector< BlkFilesystem * > get_all(Devicegraph *devicegraph)
Get all BlkFilesystems.
Definition: BlkFilesystem.h:43
bool supports_mounted_grow() const
Checks whether growing the filesystem while being mounted is supported.
bool supports_mounted_shrink() const
Checks whether shrinking the filesystem while being mounted is supported.
bool supports_unmounted_shrink() const
Checks whether shrinking the filesystem while being unmounted is supported.
BlkFilesystem * to_blk_filesystem(Device *device)
Converts pointer to Device to pointer to BlkFilesystem.
bool is_blk_filesystem(const Device *device)
Checks whether device points to a BlkFilesystem.