#undef AFS_NAMEI_ENV
#undef BITMAP_LATER
#undef FAST_RESTART
-#undef FULL_LISTVOL_SWITCH
#undef COMPLETION_H_EXISTS
#undef DEFINED_FOR_EACH_PROCESS
#undef DEFINED_PREV_TASK
[enable use of unix domain sockets for fssync])],
,
[enable_unix_sockets="yes"])
-AC_ARG_ENABLE([full-vos-listvol-switch],
- [AS_HELP_STRING([--disable-full-vos-listvol-switch],
- [disable vos full listvol switch for formatted output])],
- ,
- [enable_full_vos_listvol_switch="yes"])
AC_ARG_ENABLE([icmp-pmtu-discovery],
[AS_HELP_STRING([--enable-icmp-pmtu-discovery],
[enable path MTU discovery by decoding ICMP unreachable replies])],
exit 1
fi
-if test "$enable_full_vos_listvol_switch" = "yes"; then
- AC_DEFINE(FULL_LISTVOL_SWITCH, 1, [define if you want to want listvol switch])
-fi
-
if test "$enable_icmp_pmtu_discovery" = "yes"; then
if test "$ac_cv_setsockopt_iprecverr" = "yes"; then
AC_DEFINE(ADAPT_PMTU, 1, [define if you want to decode icmp unreachable packets to discover path mtu])
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");