00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef NFS_H
00024 #define NFS_H
00025
00026 #include "storage/Volume.h"
00027
00028 namespace storage
00029 {
00030 class NfsCo;
00031
00032 class Nfs : public Volume
00033 {
00034 public:
00035
00036 Nfs(const NfsCo& c, const string& NfsDev, bool nfs4);
00037 Nfs(const NfsCo& c, const Nfs& v);
00038 virtual ~Nfs();
00039
00040 friend std::ostream& operator<< (std::ostream& s, const Nfs& l );
00041
00042 static string canonicalName( const string& dev );
00043 static bool notDeleted( const Nfs& l ) { return( !l.deleted() ); }
00044
00045 virtual void print( std::ostream& s ) const { s << *this; }
00046
00047 void getInfo( storage::NfsInfo& info ) const;
00048 bool equalContent( const Nfs& rhs ) const;
00049
00050 void logDifference(std::ostream& log, const Nfs& rhs) const;
00051
00052 Text removeText(bool doing) const;
00053
00054 protected:
00055
00056 mutable storage::NfsInfo info;
00057
00058 private:
00059
00060 Nfs(const Nfs&);
00061 Nfs& operator=(const Nfs&);
00062
00063 };
00064
00065 }
00066
00067 #endif