00001 /* 00002 * Copyright (c) [2004-2011] Novell, Inc. 00003 * 00004 * All Rights Reserved. 00005 * 00006 * This program is free software; you can redistribute it and/or modify it 00007 * under the terms of version 2 of the GNU General Public License as published 00008 * by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, but WITHOUT 00011 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00013 * more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, contact Novell, Inc. 00017 * 00018 * To contact Novell about this file by physical or electronic mail, you may 00019 * find current contact information at www.novell.com. 00020 */ 00021 00022 00023 #ifndef TMPFS_H 00024 #define TMPFS_H 00025 00026 #include "storage/Volume.h" 00027 00028 namespace storage 00029 { 00030 class TmpfsCo; 00031 class SystemInfo; 00032 00033 00034 class Tmpfs : public Volume 00035 { 00036 public: 00037 00038 Tmpfs( const TmpfsCo& d, const string& mp, bool mounted ); 00039 Tmpfs( const TmpfsCo& d, const Tmpfs& v ); 00040 Tmpfs( const TmpfsCo& d, const xmlNode* node ); 00041 virtual ~Tmpfs(); 00042 00043 Text removeText( bool doing ) const; 00044 Text mountText( bool doing ) const; 00045 00046 void saveData(xmlNode* node) const; 00047 friend std::ostream& operator<< (std::ostream& s, const Tmpfs& l ); 00048 virtual void print( std::ostream& s ) const { s << *this; } 00049 void getInfo( storage::TmpfsInfo& info ) const; 00050 bool equalContent( const Tmpfs& rhs ) const; 00051 void logDifference(std::ostream& log, const Tmpfs& rhs) const; 00052 00053 static bool notDeleted( const Tmpfs& l ) { return( !l.deleted() ); } 00054 00055 protected: 00056 mutable storage::TmpfsInfo info; // workaround for broken ycp bindings 00057 00058 private: 00059 00060 Tmpfs& operator=(const Tmpfs& v); // disallow 00061 Tmpfs(const Tmpfs&); // disallow 00062 00063 }; 00064 00065 } 00066 00067 #endif
1.5.6