Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2006 20:49:44 +0400 (MSD)
From:      Anton Yuzhaninov <citrin@rambler-co.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/98860: mount_mfs don't allow create md without softupdates
Message-ID:  <20060612164944.61672575EBF@hius.citrin.ru>
Resent-Message-ID: <200606121650.k5CGoDiZ027365@freefall.freebsd.org>

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


>Number:         98860
>Category:       bin
>Synopsis:       mount_mfs don't allow create md without softupdates
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 12 16:50:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Anton Yuzhaninov
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hius.citrin.ru 6.1-RELEASE FreeBSD 6.1-RELEASE #4: Wed May 24 10:37:01 MSD 2006 root@hius.citrin.ru:/data/usr/obj/data/usr/src/sys/NK i386

>Description:
	When mdmfs run with name mount_mfs it work in compatibility mode.
	flag -S not allowed in compatibility mode, but by default disk created
 with soft-updates turned on.
>How-To-Repeat:
	Try to create memory disk with soft-updates turned off from /etc/fstab.
>Fix:

I see to ways to fix this problem:

1. In compatibility mode turn off soft-updates
(In FreeBSD 4.X mount_mfs by default turn soft-updates off).

--- 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':
>Release-Note:
>Audit-Trail:
>Unformatted:



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