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