mount_mfs

Anton Yuzhaninov citrin at citrin.ru
Tue May 23 08:49:24 PDT 2006


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 = true;
+                       softdep = 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 = false;
                        break;
                case 's':

-- 
 WBR,
 Anton Yuzhaninov.

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


More information about the freebsd-stable mailing list