Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2006 19:49:21 +0400
From:      Anton Yuzhaninov <citrin@citrin.ru>
To:        freebsd-stable@freebsd.org
Subject:   mount_mfs
Message-ID:  <1084886706.20060523194921@citrin.ru>

next in thread | raw e-mail | index | archive | help

This is a cryptographically signed message in MIME format.

------------BA1111181F4426B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hello,

How create memory disk from /etc/fstab in FreeBSD 6 without soft-updates?
As I can see it impossible.

flag -S not allowed in compatibility mode, but by default disk created
with soft-updates turned on.

I see to ways to fix this problem:

1. In compatibility mode turn off soft-updates

--- mdmfs.c.orig        Tue May 23 19:38:26 2006
+++ mdmfs.c     Tue May 23 19:43:42 2006
@@ -133,6 +133,7 @@
                        if (compat)
                                usage();
                        compat =3D true;
+                       softdep =3D false;
                        break;
                case 'c':
                        argappend(&newfs_arg, "-c %s", optarg);

2. In compatibility mode allow -S option

--- mdmfs.c.orig        Tue May 23 19:38:26 2006
+++ mdmfs.c     Tue May 23 19:45:02 2006
@@ -205,8 +205,6 @@
                        free(set);
                        break;
                case 'S':
-                       if (compat)
-                               usage();
                        softdep =3D false;
                        break;
                case 's':

--=20
 WBR,
 Anton Yuzhaninov.

P. S. Benchmark show that memory disk mounted in async mode work
up to 30% faster when soft-updates turned off

------------BA1111181F4426B--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1084886706.20060523194921>