From b650106e301ecefe2f5c8f4a34081af1f5f74901 Mon Sep 17 00:00:00 2001 From: Mark Vitale Date: Tue, 4 Sep 2012 09:06:44 -0400 Subject: [PATCH] vos: convertROtoRW incorrect warning when RO not in VLDB vos convertROtoRW will issue an incorrect warning about a partition mismatch if the RO to convert is not in the VLDB. Only check the partition if the RO is in the VLDB. Change-Id: Ib2726bc5bf6697898ad26dc1d817143da3286ba3 Reviewed-on: http://gerrit.openafs.org/8036 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- src/volser/vos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/volser/vos.c b/src/volser/vos.c index 89b5bd801..6d2c0b23a 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -5584,7 +5584,7 @@ ConvertRO(struct cmd_syndesc *as, void *arock) if (!roserver) { fprintf(STDERR, "Warning: RO volume didn't exist in vldb!\n"); } - if (ropartition != partition) { + if (roserver && (ropartition != partition)) { fprintf(STDERR, "Warning: RO volume should be in partition %d instead of %d (vldb)\n", ropartition, partition); -- 2.39.5