* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
* This code is derived from software contributed to Berkeley
* by Pace Willisson (pace@blitz.com). The Rock Ridge Extension
* Support code is derived from software contributed to Berkeley
* by Atsushi Murai (amurai@spec.co.jp).
* %sccs.include.redist.c%
* @(#)mount_cd9660.c 8.1 (Berkeley) %G%
static char copyright
[] =
"@(#) Copyright (c) 1992, 1993\n\
The Regents of the University of California. All rights reserved.\n";
static char sccsid
[] = "@(#)mount_cd9660.c 8.1 (Berkeley) %G%";
#define DEFAULT_ROOTUID -2
fprintf (stderr
, "usage: mount_iso bdev dir\n");
int opts
= 0, mntflags
= 0;
if (!strcmp("-F", argv
[0])) {
mntflags
|= atoi(argv
[0]);
} else if (!strcmp(argv
[0], "-norrip")) {
} else if (!strcmp(argv
[0], "-gen")) {
} else if (!strcmp(argv
[0], "-extattr")) {
} else if (!strcmp(argv
[0], "-notrans")) {
opts
|= ISOFSMNT_NOTRANS
;
args
.export
.ex_root
= DEFAULT_ROOTUID
;
if (mntflags
& MNT_RDONLY
)
args
.export
.ex_flags
= MNT_EXRDONLY
;
args
.export
.ex_flags
= 0;
if (mount (MOUNT_ISOFS
, dir
, mntflags
, &args
) < 0) {