+ if (i >= 10 && sblock.fs_optim == FS_OPTSPACE)
+ fprintf(stdout, "should optimize %s",
+ "for time with minfree >= 10%\n");
+ if (i < 10 && sblock.fs_optim == FS_OPTTIME)
+ fprintf(stdout, "should optimize %s",
+ "for space with minfree < 10%\n");
+ continue;
+
+ case 'o':
+ name = "optimization preference";
+ if (argc < 1)
+ fatal("-o: missing %s", name);
+ argc--, argv++;
+ chg[FS_OPTSPACE] = "space";
+ chg[FS_OPTTIME] = "time";
+ if (strcmp(*argv, chg[FS_OPTSPACE]) == 0)
+ i = FS_OPTSPACE;
+ else if (strcmp(*argv, chg[FS_OPTTIME]) == 0)
+ i = FS_OPTTIME;
+ else
+ fatal("%s: bad %s (options are `space' or `time')",
+ *argv, name);
+ if (sblock.fs_optim == i) {
+ fprintf(stdout,
+ "%s remains unchanged as %s\n",
+ name, chg[i]);
+ continue;
+ }
+ fprintf(stdout,
+ "%s changes from %s to %s\n",
+ name, chg[sblock.fs_optim], chg[i]);
+ sblock.fs_optim = i;
+ if (sblock.fs_minfree >= 10 && i == FS_OPTSPACE)
+ fprintf(stdout, "should optimize %s",
+ "for time with minfree >= 10%\n");
+ if (sblock.fs_minfree < 10 && i == FS_OPTTIME)
+ fprintf(stdout, "should optimize %s",
+ "for space with minfree < 10%\n");