[Drbd-dev] [drbd][PATCH 2/2] drbdsetup: sh-status should use _pdsk in all cases
Federico Simoncelli
fsimonce at redhat.com
Tue Sep 13 10:49:00 CEST 2011
Either the resource is StandAlone/Diskless or not we should report
the peer disk status using the same label (_pdsk).
---
user/drbdsetup.c | 2 +-
user/legacy/drbdsetup.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/user/drbdsetup.c b/user/drbdsetup.c
index ac0618d..81ee13a 100644
--- a/user/drbdsetup.c
+++ b/user/drbdsetup.c
@@ -1808,7 +1808,7 @@ static int sh_status_scmd(struct drbd_cmd *cm __attribute((unused)),
printf("%s_role=\n", _P);
printf("%s_peer=\n", _P);
printf("%s_disk=\n", _P);
- printf("%s_pdisk=\n", _P);
+ printf("%s_pdsk=\n", _P);
printf("%s_flags_susp=\n", _P);
printf("%s_flags_aftr_isp=\n", _P);
printf("%s_flags_peer_isp=\n", _P);
diff --git a/user/legacy/drbdsetup.c b/user/legacy/drbdsetup.c
index 3492d0c..c04c0fa 100644
--- a/user/legacy/drbdsetup.c
+++ b/user/legacy/drbdsetup.c
@@ -1653,7 +1653,7 @@ static int sh_status_scmd(struct drbd_cmd *cm __attribute((unused)),
printf("%s_role=\n", _P);
printf("%s_peer=\n", _P);
printf("%s_disk=\n", _P);
- printf("%s_pdisk=\n", _P);
+ printf("%s_pdsk=\n", _P);
printf("%s_flags_susp=\n", _P);
printf("%s_flags_aftr_isp=\n", _P);
printf("%s_flags_peer_isp=\n", _P);
--
1.7.1
More information about the drbd-dev
mailing list