Author: aschnell Date: Thu Aug 14 10:19:00 2008 New Revision: 50060 URL: http://svn.opensuse.org/viewcvs/yast?rev=50060&view=rev Log: - backup commit Modified: branches/tmp/aschnell/snapshots/libstorage/src/LvmVg.cc branches/tmp/aschnell/snapshots/libstorage/src/StorageInterface.h Modified: branches/tmp/aschnell/snapshots/libstorage/src/LvmVg.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/snapshots/libstorage/src/LvmVg.cc?rev=50060&r1=50059&r2=50060&view=diff ============================================================================== --- branches/tmp/aschnell/snapshots/libstorage/src/LvmVg.cc (original) +++ branches/tmp/aschnell/snapshots/libstorage/src/LvmVg.cc Thu Aug 14 10:19:00 2008 @@ -571,8 +571,6 @@ int LvmVg::getLvSnapshotState(const string& name, LvmLvSnapshotStateInfo& info) { - // TODO: check if it is a snapshot - int ret = 0; y2mil("name:" << name); LvmLvIter i; @@ -590,6 +588,10 @@ { ret = LVM_LV_NOT_ON_DISK; } + if (ret == 0 && i->getOrigin().empty()) + { + ret = LVM_LV_NOT_SNAPSHOT; + } if (ret == 0) { i->getState(info); Modified: branches/tmp/aschnell/snapshots/libstorage/src/StorageInterface.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/snapshots/libstorage/src/StorageInterface.h?rev=50060&r1=50059&r2=50060&view=diff ============================================================================== --- branches/tmp/aschnell/snapshots/libstorage/src/StorageInterface.h (original) +++ branches/tmp/aschnell/snapshots/libstorage/src/StorageInterface.h Thu Aug 14 10:19:00 2008 @@ -310,7 +310,7 @@ string allocation; string dm_table; string dm_target; - string origin; // only for snapshots, otherwise empty + string origin; unsigned long long sizeK; }; @@ -568,6 +568,7 @@ LVM_LV_NO_STRIPE_SIZE = -4027, LVM_LV_UNKNOWN_ORIGIN = -4028, LVM_LV_NOT_ON_DISK = -4029, + LVM_LV_NOT_SNAPSHOT = -4030, FSTAB_ENTRY_NOT_FOUND = -5000, FSTAB_CHANGE_PREFIX_IMPOSSIBLE = -5001, -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org