From 3829dabbbfe4299362eb01686d4eda3e89f37bd0 Mon Sep 17 00:00:00 2001 From: chenlw <874313221@qq.com> Date: Thu, 29 Sep 2016 16:46:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4volume=E5=89=8D=EF=BC=8C?= =?UTF-8?q?=E5=85=88stop=20volume=EF=BC=8C=E5=A6=82=E6=9E=9Cvolume?= =?UTF-8?q?=E6=98=AFstopped=E7=8A=B6=E6=80=81=E7=9A=84=EF=BC=8C=E5=88=99?= =?UTF-8?q?=E8=BF=94=E5=9B=9E0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/platform/glusterfs/SetVolume.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/platform/glusterfs/SetVolume.java b/src/com/platform/glusterfs/SetVolume.java index 8a361b18..6d9fc1e2 100644 --- a/src/com/platform/glusterfs/SetVolume.java +++ b/src/com/platform/glusterfs/SetVolume.java @@ -280,7 +280,7 @@ public class SetVolume { if (new VolumeInfo().getVolumeStatus(volumeName).equals("Stopped")) { log.error("3502 the volume is already stoped"); System.out.println("3502 the volume is already stoped"); - return -1; + return 0; } else { String command = "echo -e \"y\"| gluster volume stop " + volumeName; List reStrings = Constant.ganymedSSH.execCmdWaitAcquiescent(command);