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 "y2storage/Volume.h"
00027
00028 namespace storage
00029 {
00030 class NfsCo;
00031
00032 class Nfs : public Volume
00033 {
00034 public:
00035 Nfs( const NfsCo& d, const string& NfsDev );
00036 Nfs( const NfsCo& d, const Nfs& rhs );
00037 virtual ~Nfs();
00038 friend std::ostream& operator<< (std::ostream& s, const Nfs& l );
00039
00040 static string canonicalName( const string& dev );
00041 static bool notDeleted( const Nfs& l ) { return( !l.deleted() ); }
00042
00043 virtual void print( std::ostream& s ) const { s << *this; }
00044
00045 void getInfo( storage::NfsInfo& info ) const;
00046 bool equalContent( const Nfs& rhs ) const;
00047 void logDifference( const Nfs& d ) const;
00048
00049 string removeText( bool doing=true ) const;
00050
00051 protected:
00052 void init();
00053 Nfs& operator=( const Nfs& );
00054
00055 mutable storage::NfsInfo info;
00056 };
00057
00058 }
00059
00060 #endif