void
VOptDefaults(ProgramType pt, VolumePackageOptions *opts)
{
- opts->nLargeVnodes = opts->nSmallVnodes = 5;
- opts->volcache = 0;
+ memset(opts, 0, sizeof(*opts));
- opts->canScheduleSalvage = 0;
- opts->canUseFSSYNC = 0;
- opts->canUseSALVSYNC = 0;
+ opts->nLargeVnodes = opts->nSmallVnodes = 5;
- opts->interrupt_rxcall = NULL;
opts->offline_timeout = -1;
opts->offline_shutdown_timeout = -1;
opts->usage_threshold = 128;
#ifdef FAST_RESTART
opts->unsafe_attach = 1;
-#else /* !FAST_RESTART */
- opts->unsafe_attach = 0;
-#endif /* !FAST_RESTART */
+#endif
switch (pt) {
case fileServer: