Author: aschnell Date: Mon Aug 18 13:59:16 2008 New Revision: 50173 URL: http://svn.opensuse.org/viewcvs/yast?rev=50173&view=rev Log: - backup commit Modified: branches/tmp/aschnell/snapshots/libstorage/src/Dm.cc branches/tmp/aschnell/snapshots/libstorage/src/StorageInterface.h Modified: branches/tmp/aschnell/snapshots/libstorage/src/Dm.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/snapshots/libstorage/src/Dm.cc?rev=50173&r1=50172&r2=50173&view=diff ============================================================================== --- branches/tmp/aschnell/snapshots/libstorage/src/Dm.cc (original) +++ branches/tmp/aschnell/snapshots/libstorage/src/Dm.cc Mon Aug 18 13:59:16 2008 @@ -95,6 +95,14 @@ y2warning( "could not find major/minor pair %s", majmin.c_str()); } + else if (target == "snapshot-origin") + { + // AFAIS snapshot-origins do not really use space. + } + else if (target == "snapshot") + { + // AFAIS think snapshots do not really use space. + } else if( target=="striped" ) { unsigned str; 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=50173&r1=50172&r2=50173&view=diff ============================================================================== --- branches/tmp/aschnell/snapshots/libstorage/src/StorageInterface.h (original) +++ branches/tmp/aschnell/snapshots/libstorage/src/StorageInterface.h Mon Aug 18 13:59:16 2008 @@ -1498,21 +1498,38 @@ unsigned long long stripeSize ) = 0; /** + * Create a LVM logical volume snapshot * + * @param vg name of volume group + * @param origin name of logical volume origin + * @param name of logical volume snapshot + * @param cowSizeK size of snapshot in kilobytes + * @param device is set to the device name of the new snapshot + * @return zero if all is ok, a negative number to indicate an error */ virtual int createLvmLvSnapshot(const string& vg, const string& origin, const string& name, unsigned long long cowSizeK, string& device) = 0; /** + * Remove a LVM logical volume snapshot * + * @param vg name of volume group + * @param device name of logical volume snapshot + * @return zero if all is ok, a negative number to indicate an error */ virtual int removeLvmLvSnapshot(const string& vg, const string& name) = 0; /** + * Get state of a LVM logical volume snapshot * + * @pre This can only be done after the snapshot has been created on disk. + * + * @param name name of snapshot + * @param info record that gets filled with snapshot special data + * @return zero if all is ok, a negative number to indicate an error */ - virtual int getLvmLvSnapshotStateInfo(const string& vg, const string& name, + virtual int getLvmLvSnapshotStateInfo(const string& vg, const string& name, LvmLvSnapshotStateInfo& info) = 0; /** -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org