aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorBoris Popov <bp@FreeBSD.org>2001-03-14 12:05:01 +0000
committerBoris Popov <bp@FreeBSD.org>2001-03-14 12:05:01 +0000
commit8278d7c1b3379aa91f7f42b2d08ee210cfc9aa7c (patch)
tree8e7675081febd90105c45a2b9e788289c8e4e785 /sbin
parent43b8e05b0a5bfb042851d78af6464b6ec954575c (diff)
downloadsrc-8278d7c1b3379aa91f7f42b2d08ee210cfc9aa7c.tar.gz
src-8278d7c1b3379aa91f7f42b2d08ee210cfc9aa7c.zip
MFC: Provide userland interface for broken Joilet disks.
Approved by: jkh
Notes
Notes: svn path=/stable/4/; revision=74249
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_cd9660/mount_cd9660.88
-rw-r--r--sbin/mount_cd9660/mount_cd9660.c6
2 files changed, 12 insertions, 2 deletions
diff --git a/sbin/mount_cd9660/mount_cd9660.8 b/sbin/mount_cd9660/mount_cd9660.8
index 4e2a6f827f85..ef98b63197d6 100644
--- a/sbin/mount_cd9660/mount_cd9660.8
+++ b/sbin/mount_cd9660/mount_cd9660.8
@@ -44,7 +44,7 @@
.Nd mount an ISO-9660 filesystem
.Sh SYNOPSIS
.Nm
-.Op Fl egjrv
+.Op Fl begjrv
.Op Fl o Ar options
.Op Fl s Ar startsector
.Ar special | node
@@ -61,6 +61,9 @@ at boot time.
.Pp
The options are as follows:
.Bl -tag -width indent
+.It Fl b
+Relax checking for Supplementary Volume Descriptor Flags field
+which is set to a wrong value on some Joliet formatted disks.
.It Fl e
Enable the use of extended attributes.
.It Fl g
@@ -92,6 +95,9 @@ Same as
.It rrip
Same as
.Fl r .
+.It strictjoliet
+Same as
+.Fl b .
.El
.It Fl r
Do not use any Rockridge extensions included in the filesystem.
diff --git a/sbin/mount_cd9660/mount_cd9660.c b/sbin/mount_cd9660/mount_cd9660.c
index 9face8293afe..3ea3d39dd0d5 100644
--- a/sbin/mount_cd9660/mount_cd9660.c
+++ b/sbin/mount_cd9660/mount_cd9660.c
@@ -75,6 +75,7 @@ struct mntopt mopts[] = {
{ "gens", 0, ISOFSMNT_GENS, 1 },
{ "rrip", 1, ISOFSMNT_NORRIP, 1 },
{ "joliet", 1, ISOFSMNT_NOJOLIET, 1 },
+ { "strictjoliet", 1, ISOFSMNT_BROKENJOLIET, 1 },
{ NULL }
};
@@ -93,8 +94,11 @@ main(int argc, char **argv)
mntflags = opts = verbose = 0;
memset(&args, 0, sizeof args);
args.ssector = -1;
- while ((ch = getopt(argc, argv, "egjo:rs:v")) != -1)
+ while ((ch = getopt(argc, argv, "begjo:rs:v")) != -1)
switch (ch) {
+ case 'b':
+ opts |= ISOFSMNT_BROKENJOLIET;
+ break;
case 'e':
opts |= ISOFSMNT_EXTATT;
break;