The dryrun mode of operation for 'vos syncvldb' and 'vos syncserv'
does not currently show the "status after" portion of its output, so
they don't really show what the commands will do. Change them so
"status after" is shown for -dryrun when sync'ing servers or
partitions, and count changes towards the count at the end.
Change-Id: I6cc20c28a989925a1262570b286fdd7d290c0a9a
Reviewed-on: http://gerrit.openafs.org/2666
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
ERROR_EXIT(code);
}
}
- if (modentry)
- *modentry = modified;
} else if (pass == 2) {
code =
ubik_VL_ReleaseLock(cstruct, 0, rwvolid, RWVOL,
}
}
- if (verbose && doit) {
+ if (modified && modentry) {
+ *modentry = 1;
+ }
+
+ if (verbose) {
fprintf(STDOUT, "-- status after --\n");
if (modified)
EnumerateEntry(&entry);
ERROR_EXIT(code);
}
}
- if (modified)
- *modified = 1;
islocked = 0;
}
- if (verbose && doit) {
+ if (modified && modentry) {
+ *modified = 1;
+ }
+
+ if (verbose) {
fprintf(STDOUT, "-- status after --\n");
if (delentry)
fprintf(STDOUT, "\n**entry deleted**\n");