From 85674180ac0b414993bec634994ea51b28390306 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 6 Oct 1997 20:23:17 +0000 Subject: back out vfs lite2 till after 2.2 --- sbin/tunefs/tunefs.c | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) (limited to 'sbin/tunefs') diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index 8d92a562813..db34d979262 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tunefs.c,v 1.5 1997/10/06 15:33:59 csapuntz Exp $ */ +/* $OpenBSD: tunefs.c,v 1.6 1997/10/06 20:22:38 deraadt Exp $ */ /* $NetBSD: tunefs.c,v 1.10 1995/03/18 15:01:31 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)tunefs.c 8.2 (Berkeley) 4/19/94"; #else -static char rcsid[] = "$OpenBSD: tunefs.c,v 1.5 1997/10/06 15:33:59 csapuntz Exp $"; +static char rcsid[] = "$OpenBSD: tunefs.c,v 1.6 1997/10/06 20:22:38 deraadt Exp $"; #endif #endif /* not lint */ @@ -90,7 +90,7 @@ main(argc, argv) int argc; char *argv[]; { - char *cp, *special, *name, *action; + char *cp, *special, *name; struct stat st; int i; int Aflag = 0; @@ -190,25 +190,6 @@ again: warnx(OPTWARN, "space", "<", MINFREE); continue; - case 'n': - name = "soft updates"; - if (argc < 1) - errx(10, "-s: missing %s", name); - argc--, argv++; - if (strcmp(*argv, "enable") == 0) { - sblock.fs_flags |= FS_DOSOFTDEP; - action = "set"; - } else if (strcmp(*argv, "disable") == 0) { - sblock.fs_flags &= ~FS_DOSOFTDEP; - action = "cleared"; - } else { - errx(10, "bad %s (options are %s)", - name, "`enable' or `disable'"); - } - warnx("%s %s", name, action); - continue; - - case 'o': name = "optimization preference"; if (argc < 1) @@ -264,7 +245,6 @@ usage() "\t-d rotational delay between contiguous blocks\n" "\t-e maximum blocks per file in a cylinder group\n" "\t-m minimum percentage of free space\n" - "\t-n soft updates ('enable' or 'disable')\n" "\t-o optimization preference (`space' or `time')\n" "\t-p no change - just prints current tuneable settings\n", __progname); @@ -290,8 +270,6 @@ getsb(fs, file) void printfs() { - warnx("soft updates: (-n) %s", - (sblock.fs_flags & FS_DOSOFTDEP) ? "yes" : "no"); warnx("maximum contiguous block count: (-a) %d", sblock.fs_maxcontig); warnx("rotational delay between contiguous blocks: (-d) %d ms", -- cgit v1.2.3