Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/tunefs Disable (unifdef for now) tunefs -n <disable|ena...



details:   https://anonhg.NetBSD.org/src/rev/e06081b294ac
branches:  trunk
changeset: 487961:e06081b294ac
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Thu Jun 15 22:37:17 2000 +0000

description:
Disable (unifdef for now) tunefs -n <disable|enable>, this is done via
a mount option now.

diffstat:

 sbin/tunefs/tunefs.8 |  34 +++++++++++++++++-----------------
 sbin/tunefs/tunefs.c |  15 ++++++++++++---
 2 files changed, 29 insertions(+), 20 deletions(-)

diffs (122 lines):

diff -r 4ed52131be64 -r e06081b294ac sbin/tunefs/tunefs.8
--- a/sbin/tunefs/tunefs.8      Thu Jun 15 22:36:46 2000 +0000
+++ b/sbin/tunefs/tunefs.8      Thu Jun 15 22:37:17 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: tunefs.8,v 1.19 2000/04/27 21:34:27 nathanw Exp $
+.\"    $NetBSD: tunefs.8,v 1.20 2000/06/15 22:37:17 fvdl Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -47,7 +47,7 @@
 .Op Fl e Ar maxbpg
 .Op Fl m Ar minfree
 .Bk -words
-.Op Fl n Ar soft_dependency_enabling
+.\" .Op Fl n Ar soft_dependency_enabling
 .Op Fl o Ar optimize_preference
 .Ek
 .Op Fl t Ar trackskew
@@ -119,21 +119,21 @@
 Note that if the value is raised above the current usage level,
 users will be unable to allocate files until enough files have
 been deleted to get under the higher threshold.
-.It Fl n Ar soft_dependency_enabling
-The soft dependency code allows most filesystem I/O to be done
-asynchronously by reordering dependant writes to ensure that the
-on-disk metadata is self-consistent even when updates are deferred. 
-Additionally, metadata updates are aggregated, reducing the total 
-number of writes performed.
-Use of this facility does not require any changes to the filesystem,
-so it can be enabled or disabled any time that the filesystem is unmounted.
-This experimental facility is turned off by default.
-It is turned on by using
-.Fl n
-enable;
-it is turned off by using
-.Fl n
-disable.
+.\" .It Fl n Ar soft_dependency_enabling
+.\" The soft dependency code allows most filesystem I/O to be done
+.\" asynchronously by reordering dependant writes to ensure that the
+.\" on-disk metadata is self-consistent even when updates are deferred. 
+.\" Additionally, metadata updates are aggregated, reducing the total 
+.\" number of writes performed.
+.\" Use of this facility does not require any changes to the filesystem,
+.\" so it can be enabled or disabled any time that the filesystem is unmounted.
+.\" This experimental facility is turned off by default.
+.\" It is turned on by using
+.\" .Fl n
+.\" enable;
+.\" it is turned off by using
+.\" .Fl n
+.\" disable.
 .It Fl o Ar optimize_preference
 The file system can either try to minimize the time spent
 allocating blocks, or it can attempt to minimize the space
diff -r 4ed52131be64 -r e06081b294ac sbin/tunefs/tunefs.c
--- a/sbin/tunefs/tunefs.c      Thu Jun 15 22:36:46 2000 +0000
+++ b/sbin/tunefs/tunefs.c      Thu Jun 15 22:37:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tunefs.c,v 1.19 1999/11/15 19:22:22 fvdl Exp $ */
+/*     $NetBSD: tunefs.c,v 1.20 2000/06/15 22:37:17 fvdl Exp $ */
 
 /*
  * Copyright (c) 1983, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)tunefs.c   8.3 (Berkeley) 5/3/95";
 #else
-__RCSID("$NetBSD: tunefs.c,v 1.19 1999/11/15 19:22:22 fvdl Exp $");
+__RCSID("$NetBSD: tunefs.c,v 1.20 2000/06/15 22:37:17 fvdl Exp $");
 #endif
 #endif /* not lint */
 
@@ -94,7 +94,10 @@
        int argc;
        char *argv[];
 {
-       char *cp, *name, *action;
+       char *cp, *name;
+#ifdef TUNEFS_SOFTDEP
+       char *action;
+#endif
        const char *special;
        struct stat st;
        int i;
@@ -197,6 +200,7 @@
                                    sblock.fs_optim == FS_OPTTIME)
                                        warnx(OPTWARN, "space", "<", MINFREE);
                                continue;
+#ifdef TUNEFS_SOFTDEP
                        case 'n':
                                name = "soft dependencies";
                                if (argc < 1)
@@ -214,6 +218,7 @@
                                }
                                warnx("%s %s", name, action);
                                continue;
+#endif
 
                        case 'o':
                                name = "optimization preference";
@@ -275,8 +280,10 @@
                    sblock.fs_maxbpg);
                fprintf(stdout, "\tminimum percentage of free space %d%%\n",
                    sblock.fs_minfree);
+#ifdef TUNEFS_SOFTDEP
                fprintf(stdout, "\tsoft dependencies: %s\n",
                    (sblock.fs_flags & FS_DOSOFTDEP) ? "on" : "off");
+#endif
                fprintf(stdout, "\toptimization preference: %s\n",
                    chg[sblock.fs_optim]);
                fprintf(stdout, "\ttrack skew %d sectors\n",
@@ -310,7 +317,9 @@
        fprintf(stderr, "\t-e maximum blocks per file in a cylinder group\n");
        fprintf(stderr, "\t-m minimum percentage of free space\n");
        fprintf(stderr, "\t-o optimization preference (`space' or `time')\n");
+#ifdef TUNEFS_SOFTDEP
        fprintf(stderr, "\t-n soft dependencies (`enable' or `disable')\n");
+#endif
        fprintf(stderr, "\t-t track skew in sectors\n");
        exit(2);
 }



Home | Main Index | Thread Index | Old Index