Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jul 2005 21:26:36 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 79865 for review
Message-ID:  <200507092126.j69LQak7095771@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=79865

Change 79865 by rwatson@rwatson_zoo on 2005/07/09 21:25:36

	Don't use internal UFS mount support, prefer mount_ufs(8), which
	uses nmount(2).
	
	Pass -l 'label' down to the real mount implementation if it was
	passed to mount(8).

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sbin/mount/mount.c#10 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/sbin/mount/mount.c#10 (text+ko) ====

@@ -449,6 +449,10 @@
 	mangle(optbuf, &argc, argv);
 	argv[argc++] = spec;
 	argv[argc++] = name;
+	if (ltext != NULL) {
+		argv[argc++] = "-l";
+		argv[argc++] = ltext;
+	}
 	argv[argc] = NULL;
 
 	if (debug) {
@@ -465,9 +469,6 @@
 		free(optbuf);
 		return (1);
 	case 0:					/* Child. */
-		if (strcmp(vfstype, "ufs") == 0)
-			exit(mount_ufs(argc, (char * const *) argv, ltext));
-
 		/* Go find an executable. */
 		execvP(execname, _PATH_SYSPATH, (char * const *)argv);
 		if (errno == ENOENT) {



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