Source-Changes-HG archive

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

[src/trunk]: src/sbin/mount Enable and document the -o softdep option.



details:   https://anonhg.NetBSD.org/src/rev/495ab7e73714
branches:  trunk
changeset: 487959:495ab7e73714
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Thu Jun 15 22:36:07 2000 +0000

description:
Enable and document the -o softdep option.

diffstat:

 sbin/mount/mntopts.h |   3 ++-
 sbin/mount/mount.8   |  14 +++++++++++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r 0ed109acc7c6 -r 495ab7e73714 sbin/mount/mntopts.h
--- a/sbin/mount/mntopts.h      Thu Jun 15 22:35:37 2000 +0000
+++ b/sbin/mount/mntopts.h      Thu Jun 15 22:36:07 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mntopts.h,v 1.8 1998/12/01 23:20:43 kenh Exp $ */
+/*     $NetBSD: mntopts.h,v 1.9 2000/06/15 22:36:07 fvdl Exp $ */
 
 /*-
  * Copyright (c) 1994
@@ -56,6 +56,7 @@
 #define MOPT_GROUPQUOTA                { "groupquota", 0, 0, 0 }
 #define MOPT_NOATIME           { "atime",      1, MNT_NOATIME, 0 }
 #define MOPT_SYMPERM           { "symperm",    0, MNT_SYMPERM, 0 }
+#define MOPT_SOFTDEP           { "softdep",    0, MNT_SOFTDEP, 0 }
 
 /* Control flags. */
 #define MOPT_FORCE             { "force",      1, MNT_FORCE, 0 }
diff -r 0ed109acc7c6 -r 495ab7e73714 sbin/mount/mount.8
--- a/sbin/mount/mount.8        Thu Jun 15 22:35:37 2000 +0000
+++ b/sbin/mount/mount.8        Thu Jun 15 22:36:07 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mount.8,v 1.25 1999/08/08 04:40:18 jdolecek Exp $
+.\"    $NetBSD: mount.8,v 1.26 2000/06/15 22:36:07 fvdl Exp $
 .\"
 .\" Copyright (c) 1980, 1989, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -169,6 +169,18 @@
 The same as
 .Fl r ;
 mount the file system read-only (even the super-user may not write it).
+.It Cm softdep
+(FFS only) Mount the filesystem using soft-dependencies. This means that
+metadata will not be written immediately, but is written in an ordered fashion
+to keep the on-disk state of the filesystem consistent. This results
+in significant speedups for file create/delete operations. This option
+will be ignored when using the
+.Fl u
+flag and a filesystem is already mounted read/write. This option has gone
+through moderate to heavy testing, but should still be used with care.
+It requires the
+.Dv SOFTDEP
+option to be enabled in the running kernel.
 .It Cm symperm
 Recognize permission of symbolic link when reading or traversing link.
 .It Cm sync



Home | Main Index | Thread Index | Old Index