Author: kmachalkova Date: Thu Jul 24 14:04:03 2008 New Revision: 49391 URL: http://svn.opensuse.org/viewcvs/yast?rev=49391&view=rev Log: Test for swap partition (according to ResizePartDlg) Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/Partitions.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/Partitions.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/modules/Partitions.ycp?rev=49391&r1=49390&r2=49391&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/modules/Partitions.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/modules/Partitions.ycp Thu Jul 24 14:04:03 2008 @@ -288,6 +288,11 @@ return( fsid==fsid_extended || fsid==fsid_extended_win ); } +global define boolean IsSwapPartition( integer fsid ) + ``{ + return( !IsDosWinNtPartition() || fsid==fsid_swap ); + } + global define integer SwapSizeMb( integer slot_size ) ``{ integer swap_size = 0; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org