static int VnQuery(struct cmd_syndesc * as, void * rock);
static void print_vol_stats_general(VolPkgStats * stats);
-static void print_vol_stats_viceP(struct DiskPartitionStats * stats);
+static void print_vol_stats_viceP(struct DiskPartitionStats64 * stats);
static void print_vol_stats_hash(struct VolumeHashChainStats * stats);
#ifdef AFS_DEMAND_ATTACH_FS
static void print_vol_stats_hdr(struct volume_hdr_LRU_stats * stats);
printf("\tid = %u\n", v.id);
printf("\tname = '%s'\n", v.name);
- printf("\tinUse = %d\n", v.inUse);
+ if (v.inUse != 0) {
+ printf("\tinUse = %d (%s)\n", v.inUse, program_type_to_string(v.inUse));
+ } else {
+ printf("\tinUse = %d (no)\n", v.inUse);
+ }
printf("\tinService = %d\n", v.inService);
printf("\tblessed = %d\n", v.blessed);
printf("\tneedsSalvaged = %d\n", v.needsSalvaged);
#ifdef AFS_DEMAND_ATTACH_FS
struct volume_hdr_LRU_stats * hdr_stats;
#endif
- struct DiskPartitionStats * vicep_stats;
+ struct DiskPartitionStats64 * vicep_stats;
} sres;
sres.ptr = res_buf;
}
static void
-print_vol_stats_viceP(struct DiskPartitionStats * stats)
+print_vol_stats_viceP(struct DiskPartitionStats64 * stats)
{
- printf("DiskPartitionStats = {\n");
- printf("\tfree = %d\n", stats->free);
- printf("\tminFree = %d\n", stats->minFree);
- printf("\ttotalUsable = %d\n", stats->totalUsable);
- printf("\tf_files = %d\n", stats->f_files);
+ printf("DiskPartitionStats64 = {\n");
+ printf("\tfree = %lld\n", stats->free);
+ printf("\tminFree = %lld\n", stats->minFree);
+ printf("\ttotalUsable = %lld\n", stats->totalUsable);
+ printf("\tf_files = %lld\n", stats->f_files);
#ifdef AFS_DEMAND_ATTACH_FS
printf("\tvol_list_len = %d\n", stats->vol_list_len);
#endif