t = pntr->creationDate;
fprintf(STDOUT, " Creation %s",
ctime(&t));
-#ifdef FULL_LISTVOL_SWITCH
t = pntr->copyDate;
fprintf(STDOUT, " Copy %s",
ctime(&t));
if (t)
fprintf(STDOUT, " Last Access %s",
ctime(&t));
-#endif
+
t = pntr->updateDate;
if (!t)
fprintf(STDOUT, " Last Update Never\n");
t = a_xInfoP->creationDate;
fprintf(STDOUT, " Creation %s",
ctime(&t));
-#ifdef FULL_LISTVOL_SWITCH
+
t = a_xInfoP->copyDate;
fprintf(STDOUT, " Copy %s",
ctime(&t));
if (t)
fprintf(STDOUT, " Last Access %s",
ctime(&t));
-#endif
+
t = a_xInfoP->updateDate;
if (!t)
fprintf(STDOUT, " Last Update Never\n");
} /*Default listing */
} /*XDisplayFormat */
-#ifdef FULL_LISTVOL_SWITCH
/*------------------------------------------------------------------------
* PRIVATE XDisplayFormat2
*
} /*Screwed volume */
} /*Default listing */
} /*XDisplayFormat */
-#endif /*FULL_LISTVOL_SWITCH*/
-#ifdef FULL_LISTVOL_SWITCH
static void
DisplayFormat2(long server, long partition, volintInfo *pntr)
{
}
return;
}
-#endif /* FULL_LISTVOL_SWITCH */
static void
DisplayVolumes(afs_int32 server, afs_int32 part, volintInfo *pntr,
}
} /*XDisplayVolumes */
-#ifdef FULL_LISTVOL_SWITCH
+
/*------------------------------------------------------------------------
* PRIVATE XDisplayVolumes2
*
}
} /*XDisplayVolumes2 */
-#endif /* FULL_LISTVOL_SWITCH */
/* set <server> and <part> to the correct values depending on
foundserv = 1;
if (wantExtendedInfo)
XVolumeStats(xInfoP, &entry, aserver, apart, voltype);
- else
-#ifdef FULL_LISTVOL_SWITCH
- if (as->parms[2].items) {
+ else if (as->parms[2].items) {
DisplayFormat2(aserver, apart, pntr);
EnumerateEntry(&entry);
} else
-#endif /* FULL_LISTVOL_SWITCH */
VolumeStats_int(pntr, &entry, aserver, apart, voltype);
if ((voltype == BACKVOL) && !(entry.flags & BACK_EXISTS)) {
as->parms[0].items->data, pname,
(unsigned long)count);
if (wantExtendedInfo) {
-#ifdef FULL_LISTVOL_SWITCH
if (as->parms[6].items)
XDisplayVolumes2(aserver, dummyPartList.partId[i], origxInfoP,
count, int32list, fast, quiet);
else
-#endif /* FULL_LISTVOL_SWITCH */
- XDisplayVolumes(aserver, dummyPartList.partId[i], origxInfoP,
+ XDisplayVolumes(aserver, dummyPartList.partId[i], origxInfoP,
count, int32list, fast, quiet);
if (xInfoP)
free(xInfoP);
xInfoP = (volintXInfo *) 0;
} else {
-#ifdef FULL_LISTVOL_SWITCH
if (as->parms[6].items)
DisplayVolumes2(aserver, dummyPartList.partId[i], oldpntr,
count);
else
-#endif /* FULL_LISTVOL_SWITCH */
DisplayVolumes(aserver, dummyPartList.partId[i], oldpntr,
count, int32list, fast, quiet);
if (pntr)
"generate minimal information");
cmd_AddParm(ts, "-extended", CMD_FLAG, CMD_OPTIONAL,
"list extended volume fields");
-#ifdef FULL_LISTVOL_SWITCH
cmd_AddParm(ts, "-format", CMD_FLAG, CMD_OPTIONAL,
"machine readable format");
-#endif /* FULL_LISTVOL_SWITCH */
COMMONPARMS;
ts = cmd_CreateSyntax("syncvldb", SyncVldb, NULL,
cmd_AddParm(ts, "-id", CMD_SINGLE, 0, "volume name or ID");
cmd_AddParm(ts, "-extended", CMD_FLAG, CMD_OPTIONAL,
"list extended volume fields");
-#ifdef FULL_LISTVOL_SWITCH
cmd_AddParm(ts, "-format", CMD_FLAG, CMD_OPTIONAL,
"machine readable format");
-#endif /* FULL_LISTVOL_SWITCH */
COMMONPARMS;
cmd_CreateAlias(ts, "volinfo");