X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fvol%2Ffssync-debug.c;h=e0fb64695f4eeff6929fb06e1a5156a29ad7844f;hp=9831883df775b791849e94fe8a299833eddd94db;hb=7f31a11d110085ae528d4555d34744c0832008b0;hpb=cfcb911e9b6170d4a3a784b06eda3955ae5d5320 diff --git a/src/vol/fssync-debug.c b/src/vol/fssync-debug.c index 9831883..e0fb646 100644 --- a/src/vol/fssync-debug.c +++ b/src/vol/fssync-debug.c @@ -333,7 +333,10 @@ common_prolog(struct cmd_syndesc * as, struct state * state) if ((ti = as->parms[COMMON_PARMS_OFFSET].items)) { /* -reason */ state->reason = atoi(ti->data); + } else { + state->reason = FSYNC_WHATEVER; } + if ((ti = as->parms[COMMON_PARMS_OFFSET+1].items)) { /* -programtype */ if (!strcmp(ti->data, "fileServer")) { programType = fileServer; @@ -1493,8 +1496,6 @@ VGCDel(struct cmd_syndesc * as, void * rock) } child = atoi(ti->data); - state.reason = FSYNC_WHATEVER; - common_prolog(as, &state); fprintf(stderr, "calling FSYNC_VCGDel\n"); code = FSYNC_VGCDel(partName, parent, child, state.reason, &res);