Subject: bin/1379: mount still uses ufs & not ffs
To: None <gnats-bugs@NetBSD.ORG>
From: None <abs@mono.mono.org>
List: netbsd-bugs
Date: 08/18/1995 14:58:50
>Number:         1379
>Category:       bin
>Synopsis:       mount still uses ufs & not ffs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 18 10:20:02 1995
>Last-Modified:
>Originator:     David Brownlee
>Organization:
Monochrome
>Release:        Aug 14th 1995
>Environment:
sparc, 1.0A, current
System: NetBSD gluon.city.ac.uk 1.0A NetBSD 1.0A (GLUON) #1: monoadm@gluon.city.ac.uk:/mono/u1/NetBSD/src/sys/arch/sparc/compile/GLUON sparc

>Description:
	mount still defaults to using ufs & not ffs.
>How-To-Repeat:
	build a -current i386 distribution floppy & then have real problems
	when it wants to run mount_ufs, but only mount_ffs is on the disk :(
>Fix:

*** mount.c.orig        Tue Aug 15 17:02:00 1995
--- mount.c     Tue Aug 15 17:02:09 1995
***************
*** 110,116 ****
  
        all = forceall = init_flags = 0;
        options = NULL;
!       vfstype = "ufs";
        while ((ch = getopt(argc, argv, "Aadfo:rwt:uv")) != EOF)
                switch (ch) {
                case 'A':
--- 110,116 ----
  
        all = forceall = init_flags = 0;
        options = NULL;
!       vfstype = "ffs";
        while ((ch = getopt(argc, argv, "Aadfo:rwt:uv")) != EOF)
                switch (ch) {
                case 'A':
***************
*** 544,552 ****
  
        (void)fprintf(stderr,
                "usage: mount %s %s\n       mount %s\n       mount %s\n",
!               "[-dfruvw] [-o options] [-t ufs | external_type]",
                        "special node",
!               "[-adfruvw] [-t ufs | external_type]",
                "[-dfruvw] special | node");
        exit(1);
  }
--- 544,552 ----
  
        (void)fprintf(stderr,
                "usage: mount %s %s\n       mount %s\n       mount %s\n",
!               "[-dfruvw] [-o options] [-t ffs | external_type]",
                        "special node",
!               "[-adfruvw] [-t ffs | external_type]",
                "[-dfruvw] special | node");
        exit(1);
  }
>Audit-Trail:
>Unformatted: