From mark@whistle.com  Tue Dec  5 20:22:28 2000
Return-Path: <mark@whistle.com>
Received: from whistle.com (s205m131.whistle.com [207.76.205.131])
	by hub.freebsd.org (Postfix) with ESMTP id 900B537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Dec 2000 20:22:28 -0800 (PST)
Received: (from smap@localhost)
	by whistle.com (8.10.0/8.10.0) id eB64MSc16052
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 5 Dec 2000 20:22:28 -0800 (PST)
Received: from shark.whistle.com( 207.76.205.40) by whistle.com via smap (V2.0)
	id xma016047; Tue, 5 Dec 2000 20:22:18 -0800
Received: (from mark@localhost)
	by shark.whistle.com (8.11.1/8.11.0) id eB64MIM15756;
	Tue, 5 Dec 2000 20:22:18 -0800 (PST)
	(envelope-from mark)
Message-Id: <200012060422.eB64MIM15756@shark.whistle.com>
Date: Tue, 5 Dec 2000 20:22:18 -0800 (PST)
From: Mark Peek <mark@whistle.com>
Reply-To: mark@whistle.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Some "valid" Joliet discs cannot be read in Joliet format
X-Send-Pr-Version: 3.2

>Number:         23315
>Category:       kern
>Synopsis:       Some "valid" Joliet discs cannot be read in Joliet format
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 05 20:30:01 PST 2000
>Closed-Date:    Thu Apr 5 03:38:49 PDT 2001
>Last-Modified:  Thu Apr 05 03:40:27 PDT 2001
>Originator:     Mark Peek
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Whistle Communications, Inc.
>Environment:
>Description:
A PC game disc (Unreal Tournament) will not be detected as a proper
Joliet format disc on FreeBSD although it will show up as Joliet on
Windows and Linux systems.

>How-To-Repeat:
Try mounting the above disc on a FreeBSD 4.2 system.

>Fix:
The problem appears to be due to the way the disc is formatted with
the Supplementary Volume Descriptor Flags field not being set to 0
to indicate a properly formatted Unicode SVD. However, since the disc
can be read on Windows platforms, it would make sense to provide the
same level of compatibilty.

Various fixes could be made:
1. Remove the check altogether
2. Make the check a warning
3. Provide a mount option to allow these broken discs.

The patch for #1 is included below. It's simple and provides the
compatibility needed for reading these Joliet discs. Also, if the
old behavior is required, there is already a mount option to disable
the Joliet format and revert back to ISO 9660 filenames.

Index: cd9660_vfsops.c
===================================================================
RCS file: /cvs/cvs/freebsd/src/sys/isofs/cd9660/cd9660_vfsops.c,v
retrieving revision 1.80
diff -c -5 -r1.80 cd9660_vfsops.c
*** cd9660_vfsops.c	2000/10/09 17:31:36	1.80
--- cd9660_vfsops.c	2000/12/06 02:13:14
***************
*** 354,366 ****
  						joliet_level = 1;
  					if (bcmp(sup->escape, "%/C", 3) == 0)
  						joliet_level = 2;
  					if (bcmp(sup->escape, "%/E", 3) == 0)
  						joliet_level = 3;
- 
- 					if (isonum_711 (sup->flags) & 1)
- 						joliet_level = 0;
  				}
  			}
  			break;
  
  		case ISO_VD_END:
--- 354,363 ----

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bp 
State-Changed-When: Thu Apr 5 03:38:49 PDT 2001 
State-Changed-Why:  
Thanks, brought into -current and -stable in somewhat different way. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23315 
>Unformatted:
 
