24 #ifndef STORAGE_MOUNTABLE_H 25 #define STORAGE_MOUNTABLE_H 30 #include "storage/Devices/Device.h" 31 #include "storage/Utils/Swig.h" 42 UNKNOWN, AUTO, REISERFS, EXT2, EXT3, EXT4, BTRFS, VFAT, XFS, JFS, HFS, NTFS,
43 SWAP, HFSPLUS, NFS, NFS4, TMPFS, ISO9660, UDF, NILFS2, MINIX, NTFS3G
47 std::string get_fs_type_name(FsType fs_type);
84 std::string get_mount_by_name(
MountByType mount_by_type);
93 static std::vector<Mountable*> get_all(
Devicegraph* devicegraph);
94 static std::vector<const Mountable*> get_all(
const Devicegraph* devicegraph);
142 void set_mount_by(
MountByType mount_by) ST_DEPRECATED;
144 const std::vector<std::string>& get_mount_opts()
const ST_DEPRECATED;
145 void set_mount_opts(
const std::vector<std::string>& mount_opts) ST_DEPRECATED;
147 const std::vector<std::string>& get_fstab_options()
const ST_DEPRECATED;
148 void set_fstab_options(
const std::vector<std::string>& mount_opts) ST_DEPRECATED;
155 const Impl& get_impl()
const;
164 bool is_mountable(
const Device* device);
One of the links in /dev/disk/by-id.
bool has_filesystem() const
Checks whether the mountable has a filesystem.
Filesystem * get_filesystem()
Return the filesystem of the mountable.
MountPoint * create_mount_point(const std::string &path)
Create a new mount point for the mountable with path.
bool has_mount_point() const
Checks whether the mountable has a mount point.
The master container of the libstorage.
Definition: Devicegraph.h:153
Definition: Mountable.h:89
Class to represent a mount point.
Definition: MountPoint.h:48
MountPoint * get_mount_point()
Returns the mount point of the mountable.
One of the links in /dev/disk/by-path.
An abstract base class of storage devices, and a vertex in the Devicegraph.
Definition: Device.h:75
Definition: Filesystem.h:40
The storage namespace.
Definition: Actiongraph.h:37
The kernel device name or a link in /dev (but not in /dev/disk).
Mountable * to_mountable(Device *device)
Converts pointer to Device to pointer to Mountable.
void remove_mount_point()
Removes the mount point from the mountable.
MountByType
The key by which the mount program identifies a mountable.
Definition: Mountable.h:54