27 #include "storage/Filesystems/Filesystem.h"
28 #include "storage/Devicegraph.h"
95 const std::string& path);
101 const std::string& server,
const std::string& path);
108 const Impl& get_impl()
const;
110 virtual Nfs* clone()
const override;
const std::string & get_server() const
Get the server of the Nfs.
The storage namespace.
Definition: Actiongraph.h:39
Nfs * to_nfs(Device *device)
Converts pointer to Device to pointer to Nfs.
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
Definition: Devicegraph.h:50
static std::vector< const Nfs * > get_all(const Devicegraph *devicegraph)
Get all Nfses.
bool is_nfs(const Device *device)
Checks whether device points to a Nfs.
An abstract base class for storage devices.
Definition: Device.h:82
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.
Definition: Filesystem.h:41
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.
Class to represent a NFS mount.
Definition: Nfs.h:56
static std::vector< Nfs * > get_all(Devicegraph *devicegraph)
Get all Nfses.
static Nfs * create(Devicegraph *devicegraph, const std::string &server, const std::string &path)
Create a device of type Nfs.
const std::string & get_path() const
Get the path of the Nfs.