diff options
| author | Shireesh Anjal <anjalshireesh@gmail.com> | 2011-08-17 01:40:23 -0700 |
|---|---|---|
| committer | Shireesh Anjal <anjalshireesh@gmail.com> | 2011-08-17 01:40:23 -0700 |
| commit | 6fbc6fcb57f43cf0dec5f18ab4a12e787749abd9 (patch) | |
| tree | 489a25144fa91462fad69c629da812fcd3e41f7c /src | |
| parent | 4a7d854018bebdf5faa8a0faa4752ff1a7318116 (diff) | |
| parent | 54e55c446d871325de23269623968a196d881fbf (diff) | |
Merge pull request #239 from Dhandapani/master
Bug 3428: Volume create option is enabled even though the number of bricks is wrong
Diffstat (limited to 'src')
| -rw-r--r-- | src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java b/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java index ba19ef10..8fa27087 100644 --- a/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java +++ b/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/dialogs/CreateVolumePage1.java @@ -409,9 +409,9 @@ public class CreateVolumePage1 extends WizardPage { VOLUME_TYPE volumeType = (VOLUME_TYPE) ((IStructuredSelection) typeComboViewer .getSelection()).getFirstElement(); - if (volumeType == VOLUME_TYPE.DISTRIBUTED_REPLICATE && diskCount % 2 != 0) { + if ((volumeType == VOLUME_TYPE.DISTRIBUTED_REPLICATE || volumeType == VOLUME_TYPE.REPLICATE ) && diskCount % 2 != 0) { setError("Mirror type volume requires bricks in multiples of two"); - } else if (volumeType == VOLUME_TYPE.DISTRIBUTED_STRIPE && diskCount % 4 != 0) { + } else if ((volumeType == VOLUME_TYPE.DISTRIBUTED_STRIPE || volumeType == VOLUME_TYPE.STRIPE) && diskCount % 4 != 0) { setError("Stripe type volume requires bricks in multiples of four"); } } |
