PERFORCE change 79661 for review
Robert Watson
rwatson at FreeBSD.org
Wed Jul 6 15:56:21 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=79661
Change 79661 by rwatson at rwatson_zoo on 2005/07/06 15:55:46
Likely fix for nmount(1) use in mounting UFS.
Submitted by: Suleiman Souhlal <souhlal at FreeBSD.org>
Affected files ...
.. //depot/projects/trustedbsd/sebsd/sbin/mount_ufs/mount_ufs.c#2 edit
Differences ...
==== //depot/projects/trustedbsd/sebsd/sbin/mount_ufs/mount_ufs.c#2 (text+ko) ====
@@ -72,12 +72,12 @@
struct iovec *iov;
int iovlen;
struct export_args export;
- int ch, i, mntflags, opts, ufs_flags;
+ int ch, i, mntflags, opts;
char *dev, *dir, mntpath[MAXPATHLEN];
char *cs_disk, *cs_local;
int verbose;
- i = mntflags = opts = ufs_flags = verbose = 0;
+ i = mntflags = opts = verbose = 0;
cs_disk = cs_local = NULL;
while ((ch = getopt(argc, argv, "o:v")) != -1)
switch (ch) {
@@ -119,7 +119,6 @@
build_iovec(&iov, &iovlen, "fstype", "ufs", -1);
build_iovec(&iov, &iovlen, "fspath", mntpath, -1);
build_iovec(&iov, &iovlen, "from", dev, -1);
- build_iovec(&iov, &iovlen, "flags", &ufs_flags, sizeof ufs_flags);
build_iovec(&iov, &iovlen, "export", &export, sizeof export);
if (nmount(iov, iovlen, mntflags) < 0)
err(1, "%s", dev);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list