Author: aschnell Date: Mon Oct 27 11:55:44 2008 New Revision: 52560 URL: http://svn.opensuse.org/viewcvs/yast?rev=52560&view=rev Log: - allow querying of multipath state (needed for bnc #438055) Modified: trunk/storage/VERSION trunk/storage/libstorage/src/DmmultipathCo.h trunk/storage/libstorage/src/Storage.cc trunk/storage/libstorage/src/Storage.h trunk/storage/libstorage/src/StorageInterface.h trunk/storage/package/yast2-storage.changes Modified: trunk/storage/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/VERSION?rev=52560&r1=52559&r2=52560&view=diff ============================================================================== --- trunk/storage/VERSION (original) +++ trunk/storage/VERSION Mon Oct 27 11:55:44 2008 @@ -1 +1 @@ -2.17.44 +2.17.45 Modified: trunk/storage/libstorage/src/DmmultipathCo.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/DmmultipathCo.h?rev=52560&r1=52559&r2=52560&view=diff ============================================================================== --- trunk/storage/libstorage/src/DmmultipathCo.h (original) +++ trunk/storage/libstorage/src/DmmultipathCo.h Mon Oct 27 11:55:44 2008 @@ -96,6 +96,7 @@ static string undevName( const string& name ); static void activate( bool val=true ); + static bool getActive() { return active; } static void getMultipaths( std::list<string>& l ); static bool multipathNotDeleted( const Dmmultipath&d ) { return( !d.deleted() ); } Modified: trunk/storage/libstorage/src/Storage.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Storage.cc?rev=52560&r1=52559&r2=52560&view=diff ============================================================================== --- trunk/storage/libstorage/src/Storage.cc (original) +++ trunk/storage/libstorage/src/Storage.cc Mon Oct 27 11:55:44 2008 @@ -5684,6 +5684,15 @@ } +bool +Storage::getMultipathActive() +{ + bool ret = DmmultipathCo::getActive(); + y2mil("ret:" << ret); + return ret; +} + + int Storage::addFstabEntry( const string& device, const string& mount, const string& vfs, const string& options, unsigned freq, unsigned passno ) Modified: trunk/storage/libstorage/src/Storage.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Storage.h?rev=52560&r1=52559&r2=52560&view=diff ============================================================================== --- trunk/storage/libstorage/src/Storage.h (original) +++ trunk/storage/libstorage/src/Storage.h Mon Oct 27 11:55:44 2008 @@ -463,6 +463,7 @@ void handleHald( bool stop ); void activateHld( bool val=true ); void activateMultipath( bool val=true ); + bool getMultipathActive(); void removeDmTableTo( const Volume& vol ); void removeDmTableTo( const string& device ); bool removeDmTable( const string& table ); Modified: trunk/storage/libstorage/src/StorageInterface.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/StorageInterface.h?rev=52560&r1=52559&r2=52560&view=diff ============================================================================== --- trunk/storage/libstorage/src/StorageInterface.h (original) +++ trunk/storage/libstorage/src/StorageInterface.h Mon Oct 27 11:55:44 2008 @@ -2084,6 +2084,13 @@ virtual void activateMultipath( bool val ) = 0; /** + * Query whether multipath is active or not. + * + * @return bool multipath active state + */ + virtual bool getMultipathActive() = 0; + + /** * Rescan all disks. * All currently detected objects are forgotten and a new scan * for all type of objects (disks, LVM, MD) is initiated. Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=52560&r1=52559&r2=52560&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Mon Oct 27 11:55:44 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Oct 27 11:54:55 CET 2008 - aschnell@suse.de + +- allow querying of multipath state (needed for bnc #438055) +- 2.17.45 + +------------------------------------------------------------------- Fri Oct 24 15:13:55 CEST 2008 - kmachalkova@suse.cz - Fixed handling NFS shares - use library functions if possible -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org