27 #include "storage/Filesystems/Filesystem.h" 28 #include "storage/Devicegraph.h" 64 static Nfs*
create(
Devicegraph* devicegraph,
const std::string& server,
const std::string& path);
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_path() const
Get the path of the Nfs.
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.
Nfs * to_nfs(Device *device)
Converts pointer to Device to pointer to Nfs.
The main container of the libstorage-ng.
Definition: Devicegraph.h:169
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.
An abstract base class for storage devices.
Definition: Device.h:81
Class to represent a NFS mount.
Definition: Nfs.h:55
Definition: Devicegraph.h:49
const std::string & get_server() const
Get the server of the Nfs.
Definition: Filesystem.h:40
The storage namespace.
Definition: Actiongraph.h:38
bool is_nfs(const Device *device)
Checks whether device points to a Nfs.