Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs ignore the softdep flags when mounting and there...



details:   https://anonhg.NetBSD.org/src/rev/ee351638e22f
branches:  trunk
changeset: 487965:ee351638e22f
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jun 16 00:30:15 2000 +0000

description:
ignore the softdep flags when mounting and there's no softdep in the kernel.

diffstat:

 sys/ufs/ffs/ffs_vfsops.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 3d470026777f -r ee351638e22f sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Fri Jun 16 00:20:23 2000 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Fri Jun 16 00:30:15 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.65 2000/06/15 22:35:37 fvdl Exp $     */
+/*     $NetBSD: ffs_vfsops.c,v 1.66 2000/06/16 00:30:15 matt Exp $     */
 
 /*
  * Copyright (c) 1989, 1991, 1993, 1994
@@ -39,6 +39,7 @@
 #include "opt_ffs.h"
 #include "opt_quota.h"
 #include "opt_compat_netbsd.h"
+#include "opt_softdep.h"
 #endif
 
 #include <sys/param.h>
@@ -182,6 +183,11 @@
        error = copyin(data, (caddr_t)&args, sizeof (struct ufs_args));
        if (error)
                return (error);
+
+#if !defined(SOFTDEP)
+       mp->mnt_flags &= ~MNT_SOFTDEP;
+#endif
+
        /*
         * If updating, check whether changing from read-only to
         * read/write; if there is no device name, that's all we do.
@@ -225,7 +231,7 @@
                        if (error == 0 && ffs_cgupdate(ump, MNT_WAIT) == 0)
                                fs->fs_flags &= ~FS_DOSOFTDEP;
                                (void) ffs_sbupdate(ump, MNT_WAIT);
-#else
+#elif defined(SOFTDEP)
                        mp->mnt_flag |= MNT_SOFTDEP;
 #endif
                }



Home | Main Index | Thread Index | Old Index