getting sebsd source
Robert Watson
rwatson at FreeBSD.org
Wed Jul 6 15:34:18 GMT 2005
On Wed, 6 Jul 2005, Robert Watson wrote:
> I've attached a patch from Suleiman Souhlal that causes UFS to be
> mounted using mount_ufs(8) and nmount(2) instead of the special case in
> mount(8).
And, of course, I neglected to attach his patch. Here it is.
==== //depot/projects/trustedbsd/sebsd/sbin/mount_ufs/mount_ufs.c#1 - /zoo/rwatson/p4/projects/trustedbsd/sebsd/sbin/mount_ufs/mount_ufs.c ====
@@ -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-discuss" in the body of the message
More information about the trustedbsd-discuss
mailing list