bin/98860: mount_mfs don't allow create md without softupdates

Anton Yuzhaninov citrin at rambler-co.ru
Mon Jun 12 16:50:15 UTC 2006


>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 at 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:


More information about the freebsd-bugs mailing list