Add a mount time option which slightly relaxes checks for valid Joilet

extensions.

PR:		kern/23315
Reviewed by:	adrian
This commit is contained in:
Boris Popov 2001-03-11 10:05:08 +00:00
parent 6fb77fef4d
commit c35e8e54cd
4 changed files with 6 additions and 2 deletions

View file

@ -52,3 +52,4 @@ struct iso_args {
#define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */
#define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */
#define ISOFSMNT_NOJOLIET 0x00000008 /* disable Joliet Ext.*/
#define ISOFSMNT_BROKENJOLIET 0x00000010/* allow broken Joliet disks */

View file

@ -355,7 +355,8 @@ iso_mountfs(devvp, mp, p, argp)
if (bcmp(sup->escape, "%/E", 3) == 0)
joliet_level = 3;
if (isonum_711 (sup->flags) & 1)
if ((isonum_711 (sup->flags) & 1) &&
(argp->flags & ISOFSMNT_BROKENJOLIET) == 0)
joliet_level = 0;
}
}

View file

@ -52,3 +52,4 @@ struct iso_args {
#define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */
#define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */
#define ISOFSMNT_NOJOLIET 0x00000008 /* disable Joliet Ext.*/
#define ISOFSMNT_BROKENJOLIET 0x00000010/* allow broken Joliet disks */

View file

@ -355,7 +355,8 @@ iso_mountfs(devvp, mp, p, argp)
if (bcmp(sup->escape, "%/E", 3) == 0)
joliet_level = 3;
if (isonum_711 (sup->flags) & 1)
if ((isonum_711 (sup->flags) & 1) &&
(argp->flags & ISOFSMNT_BROKENJOLIET) == 0)
joliet_level = 0;
}
}