24#ifndef STORAGE_BLK_FILESYSTEM_H
25#define STORAGE_BLK_FILESYSTEM_H
30#include "storage/Filesystems/Filesystem.h"
42 class BlkFilesystem :
public Filesystem
180 const std::string& label);
186 const std::string& uuid);
203 const Impl& get_impl()
const;
207 BlkFilesystem(Impl* impl);
An abstract Block Device.
Definition BlkDevice.h:49
Definition BlkFilesystem.h:43
bool supports_tune_options() const
Checks whether the filesystem supports tune options.
std::vector< BlkDevice * > get_blk_devices()
Get underlying blk devices of the blk filesystem.
ContentInfo detect_content_info() const
Detect the content info of the filesystem.
void set_label(const std::string &label)
Set the filesystem label.
void set_uuid(const std::string &uuid)
Set the filesystem UUID.
void set_tune_options(const std::string &tune_options)
Set extra options for the filesystem tune command.
const std::string & get_mkfs_options() const
Get extra options for the filesystem mkfs command.
static std::vector< BlkFilesystem * > get_all(Devicegraph *devicegraph)
Get all BlkFilesystems.
std::vector< const BlkDevice * > get_blk_devices() const
Get underlying blk devices of the blk filesystem.
static std::vector< const BlkFilesystem * > get_all(const Devicegraph *devicegraph)
Get all BlkFilesystems.
bool supports_shrink() const
Checks whether shrinking the filesystem is supported.
bool supports_mounted_grow() const
Checks whether growing the filesystem while being mounted is supported.
bool supports_grow() const
Checks whether growing the filesystem is supported.
bool supports_mounted_shrink() const
Checks whether shrinking the filesystem while being mounted is supported.
bool supports_unmounted_grow() const
Checks whether growing the filesystem while being unmounted is supported.
const std::string & get_label() const
Get the filesystem label.
void set_content_info(const ContentInfo &content_info)
Set the ResizeInfo.
bool supports_label() const
Return whether the filesystem supports a label.
static std::vector< const BlkFilesystem * > find_by_label(const Devicegraph *devicegraph, const std::string &label)
Find filesystems by label.
unsigned int max_labelsize() const
Return the maximal allowed filesystem label length.
const std::string & get_uuid() const
Get the filesystem UUID.
static std::vector< const BlkFilesystem * > find_by_uuid(const Devicegraph *devicegraph, const std::string &uuid)
Find filesystems by UUID.
bool supports_unmounted_shrink() const
Checks whether shrinking the filesystem while being unmounted is supported.
void set_mkfs_options(const std::string &mkfs_options)
Set extra options for the filesystem mkfs command.
bool supports_uuid() const
Return whether the filesystem supports a UUID.
const std::string & get_tune_options() const
Get extra options for the filesystem tune command.
void set_resize_info(const ResizeInfo &resize_info)
Set the ResizeInfo.
Definition FreeInfo.h:301
An abstract base class for storage devices.
Definition Device.h:82
The main container of the libstorage-ng.
Definition Devicegraph.h:170
Definition FreeInfo.h:198
The storage namespace.
Definition Actiongraph.h:40
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.