|
const std::string & | get_server () const |
| Get the server of the Nfs.
|
const std::string & | get_path () const |
| Get the path of the Nfs.
|
Impl & | get_impl () |
const Impl & | get_impl () const |
virtual Nfs * | clone () const override |
| Nfs (Impl *impl) |
FsType | get_type () const |
| Get the filesystem type.
|
bool | has_space_info () const |
| Query whether the SpaceInfo was already detected or set.
|
SpaceInfo | detect_space_info () const |
| Detect the SpaceInfo.
|
void | set_space_info (const SpaceInfo &space_info) |
| Set the SpaceInfo.
|
Impl & | get_impl () |
const Impl & | get_impl () const |
bool | supports_mount () const |
| Checks whether the library supports mounting 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.
|
MountPoint * | get_mount_point () |
| Returns the mount point of the mountable.
|
const MountPoint * | get_mount_point () const |
| Returns the mount point of the mountable.
|
void | remove_mount_point () |
| Removes the mount point from the mountable.
|
bool | has_filesystem () const |
| Checks whether the mountable has a filesystem.
|
Filesystem * | get_filesystem () |
| Return the filesystem of the mountable.
|
const Filesystem * | get_filesystem () const |
| Return the filesystem of the mountable.
|
MountByType | get_mount_by () const ST_DEPRECATED |
void | set_mount_by (MountByType mount_by) ST_DEPRECATED |
const std::vector< std::string > & | get_mount_opts () const ST_DEPRECATED |
void | set_mount_opts (const std::vector< std::string > &mount_opts) ST_DEPRECATED |
const std::vector< std::string > & | get_fstab_options () const ST_DEPRECATED |
void | set_fstab_options (const std::vector< std::string > &mount_opts) ST_DEPRECATED |
Impl & | get_impl () |
const Impl & | get_impl () const |
sid_t | get_sid () const |
| Return the storage id (sid) of the device.
|
bool | operator== (const Device &rhs) const |
bool | operator!= (const Device &rhs) const |
Device * | copy_to_devicegraph (Devicegraph *devicegraph) const |
| Copies the device to the devicegraph.
|
bool | exists_in_devicegraph (const Devicegraph *devicegraph) const |
| Checks if the device exists in the devicegraph.
|
bool | exists_in_probed () const |
| Checks if the device exists in the probed devicegraph.
|
bool | exists_in_staging () const |
| Checks if the device exists in the staging devicegraph.
|
bool | exists_in_system () const |
| Checks if the device exists in the system devicegraph.
|
std::string | get_displayname () const |
ResizeInfo | detect_resize_info () const |
| Detect the resize info of the device.
|
bool | has_children () const |
size_t | num_children () const |
bool | has_parents () const |
size_t | num_parents () const |
std::vector< Device * > | get_children () |
std::vector< const Device * > | get_children () const |
std::vector< Device * > | get_children (View view) |
| Get all children of the device.
|
std::vector< const Device * > | get_children (View view) const |
| Get all children of the device.
|
std::vector< Device * > | get_parents () |
std::vector< const Device * > | get_parents () const |
std::vector< Device * > | get_parents (View view) |
| Get all parents of the device.
|
std::vector< const Device * > | get_parents (View view) const |
| Get all parents of the device.
|
std::vector< Device * > | get_siblings (bool itself) |
std::vector< const Device * > | get_siblings (bool itself) const |
std::vector< Device * > | get_descendants (bool itself) |
std::vector< const Device * > | get_descendants (bool itself) const |
std::vector< Device * > | get_descendants (bool itself, View view) |
std::vector< const Device * > | get_descendants (bool itself, View view) const |
std::vector< Device * > | get_ancestors (bool itself) |
std::vector< const Device * > | get_ancestors (bool itself) const |
std::vector< Device * > | get_leaves (bool itself) |
std::vector< const Device * > | get_leaves (bool itself) const |
std::vector< Device * > | get_roots (bool itself) |
std::vector< const Device * > | get_roots (bool itself) const |
std::vector< Holder * > | get_in_holders () |
std::vector< const Holder * > | get_in_holders () const |
std::vector< Holder * > | get_out_holders () |
std::vector< const Holder * > | get_out_holders () const |
void | remove_descendants () ST_DEPRECATED |
void | remove_descendants (View view) |
| Remove all descendants of the device.
|
const std::map< std::string, std::string > & | get_userdata () const |
| Return the userdata of the device.
|
void | set_userdata (const std::map< std::string, std::string > &userdata) |
| Set the userdata of the device.
|
std::string | get_name_sort_key () const |
| Get a sort-key based on the device name.
|
Devicegraph * | get_devicegraph () |
| Return the devicegraph the device belongs to.
|
const Devicegraph * | get_devicegraph () const |
| Return the devicegraph the device belongs to.
|
Impl & | get_impl () |
const Impl & | get_impl () const |
void | save (xmlNode *node) const ST_DEPRECATED |
|
static Nfs * | create (Devicegraph *devicegraph, const std::string &server, const std::string &path) |
| Create a device of type Nfs.
|
static Nfs * | load (Devicegraph *devicegraph, const xmlNode *node) |
static std::vector< Nfs * > | get_all (Devicegraph *devicegraph) |
| Get all Nfses.
|
static std::vector< const Nfs * > | get_all (const Devicegraph *devicegraph) |
| Get all Nfses.
|
static Nfs * | find_by_server_and_path (Devicegraph *devicegraph, const std::string &server, const std::string &path) |
| Find a Nfs by its server and path.
|
static const Nfs * | find_by_server_and_path (const Devicegraph *devicegraph, const std::string &server, const std::string &path) |
| Find a Nfs by its server and path.
|
static std::vector< Filesystem * > | get_all (Devicegraph *devicegraph) |
| Get all Filesystems.
|
static std::vector< const Filesystem * > | get_all (const Devicegraph *devicegraph) |
| Get all Filesystems.
|
static std::vector< Mountable * > | get_all (Devicegraph *devicegraph) |
| Get all Mountables.
|
static std::vector< const Mountable * > | get_all (const Devicegraph *devicegraph) |
| Get all Mountables.
|
static bool | is_valid_path (FsType fs_type, const std::string &path) |
| Checks whether the path is valid.
|
static std::vector< Device * > | get_all (Devicegraph *devicegraph) |
| Get all Devices.
|
static std::vector< const Device * > | get_all (const Devicegraph *devicegraph) |
| Get all Devices.
|
static bool | compare_by_sid (const Device *lhs, const Device *rhs) |
| Compare (less than) two Devices by sid.
|
static bool | compare_by_name (const Device *lhs, const Device *rhs) |
| Compare (less than) two Devices by name.
|
Class to represent a NFS mount.
The class does not provide functions to change the server or path since that would create a completely different filesystem. (Internally that would invalidate the SpaceInfo object which is shared across devicegraphs.)
Different NFS versions are handled entirely via mount options.
The Nfs object should always have MountPoint as child. So when deleting the MountPoint also delete the Nfs.