The default is C<both>.
-=item B<-vhashsize <I<size>>
-
-The log(2) number of of volume hash buckets. Default is 8 (i.e., by
-default, there are 2^8 = 256 volume hash buckets). The minimum that can
-be specified is 6 (64 hash buckets). In OpenAFS 1.5.77 and earlier, the
-maximum that can be specified is 14 (16384 buckets). After 1.5.77, the
-maximum that can be specified is 28 (268435456 buckets).
-
=item B<-vlrudisable>
This option completely disables the VLRU mechanism, which means volumes will
Changing the location of the log file from the command line may result
in undesirable interactions with tools such as B<bos>.
+=item B<-vhashsize <I<size>>
+
+The log(2) of the number of volume hash buckets. Default is 8 (i.e., by
+default, there are 2^8 = 256 volume hash buckets). The minimum that can
+be specified is 6 (64 hash buckets). In OpenAFS 1.5.77 and earlier, the
+maximum that can be specified is 14 (16384 buckets). After 1.5.77, the
+maximum that can be specified is 28 (268435456 buckets).
+
=item B<-config> <I<configuration directory>>
Set the location of the configuration directory used to configure this
cmd_AddParmAtOffset(opts, OPT_vhandle_initial_cachesize,
"-vhandle-initial-cachesize", CMD_SINGLE,
CMD_OPTIONAL, "# fds reserved for cache IO");
+ cmd_AddParmAtOffset(opts, OPT_vhashsize, "-vhashsize",
+ CMD_SINGLE, CMD_OPTIONAL,
+ "log(2) of # of volume hash buckets");
#ifdef AFS_DEMAND_ATTACH_FS
/* dafs options */
"disable state restore during startup");
cmd_AddParmAtOffset(opts, OPT_fs_state_verify, "-fs-state-verify",
CMD_SINGLE, CMD_OPTIONAL, "none|save|restore|both");
- cmd_AddParmAtOffset(opts, OPT_vhashsize, "-vhashsize",
- CMD_SINGLE, CMD_OPTIONAL,
- "log(2) of # of volume hash buckets");
cmd_AddParmAtOffset(opts, OPT_vlrudisable, "-vlrudisable",
CMD_FLAG, CMD_OPTIONAL, "disable VLRU functionality");
cmd_AddParmAtOffset(opts, OPT_vlruthresh, "-vlruthresh",
return -1;
}
}
+ if (cmd_OptionAsInt(opts, OPT_vhashsize, &optval) == 0) {
+ if (VSetVolHashSize(optval)) {
+ fprintf(stderr, "specified -vhashsize (%d) is invalid or out "
+ "of range\n", optval);
+ return -1;
+ }
+ }
#ifdef AFS_DEMAND_ATTACH_FS
if (cmd_OptionPresent(opts, OPT_fs_state_dont_save))
return -1;
}
}
- if (cmd_OptionAsInt(opts, OPT_vhashsize, &optval) == 0) {
- if (VSetVolHashSize(optval)) {
- fprintf(stderr, "specified -vhashsize (%d) is invalid or out "
- "of range\n", optval);
- return -1;
- }
- }
if (cmd_OptionPresent(opts, OPT_vlrudisable))
VLRU_SetOptions(VLRU_SET_ENABLED, 0);
if (cmd_OptionAsInt(opts, OPT_vlruthresh, &optval) == 0)
int locktype, int nonblock);
extern void VLockFileUnlock(struct VLockFile *lf, afs_uint32 offset);
+extern int VSetVolHashSize(int logsize);
+
#ifdef AFS_DEMAND_ATTACH_FS
extern Volume *VPreAttachVolumeByName(Error * ec, char *partition, char *name);
extern Volume *VPreAttachVolumeByName_r(Error * ec, char *partition, char *name);
extern void VPrintExtendedCacheStats(int flags);
extern void VPrintExtendedCacheStats_r(int flags);
extern void VLRU_SetOptions(int option, afs_uint32 val);
-extern int VSetVolHashSize(int logsize);
extern int VRequestSalvage_r(Error * ec, Volume * vp, int reason, int flags);
extern int VUpdateSalvagePriority_r(Volume * vp);
extern int VRegisterVolOp_r(Volume * vp, FSSYNC_VolOp_info * vopinfo);