From nobody@FreeBSD.org  Mon Aug 30 08:30:39 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7A3B016A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Aug 2004 08:30:39 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6E52943D39
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Aug 2004 08:30:39 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7U8UcKr077202
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 Aug 2004 08:30:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i7U8Ucqd077201;
	Mon, 30 Aug 2004 08:30:38 GMT
	(envelope-from nobody)
Message-Id: <200408300830.i7U8Ucqd077201@www.freebsd.org>
Date: Mon, 30 Aug 2004 08:30:38 GMT
From: Matthew Thyer <thyerm@powerband.net.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: NFS version 3 export of mounted Joliet CD ROM not correct
X-Send-Pr-Version: www-2.3

>Number:         71141
>Category:       kern
>Synopsis:       NFS version 3 export of mounted Joliet CD ROM not correct
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 30 08:40:25 GMT 2004
>Closed-Date:    Mon Aug 30 14:06:16 GMT 2004
>Last-Modified:  Mon Aug 30 14:06:16 GMT 2004
>Originator:     Matthew Thyer
>Release:        5.3-BETA1
>Organization:
>Environment:
FreeBSD freebie 5.3-BETA1 FreeBSD 5.3-BETA1 #0: Sat Aug 21 08:19:34 UTC 2004     root@mack.dcsl.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
On a Solaris UNIX system (Solaris 8 or 9 will do):

> sudo /usr/sbin/mount freebie:/cdrom /mnt
> ls -l /mnt
total 0
-r-xr-xr-x   1 root     root           0 Jan  1  1970 Copyright
-r-xr-xr-x   1 root     root           0 Jan  1  1970 Solaris_9
> sudo /usr/sbin/umount /mnt
> sudo /usr/sbin/mount -o vers=2 freebie:/cdrom /mnt
> ls -l /mnt
total 17
-r--r--r--   2 root     root        7063 Nov 12  2003 Copyright
drwxr-xr-x   7 root     root        2048 Nov 21  2003 Solaris_9

Not only are the date stamps wrong, but also the file sizes and the types of the files.  Notice that the directory "Solaris_9" is coming up as a file.
>How-To-Repeat:
Mount a CD-ROM using mount_cd9660 on the FreeBSD machine.

Have it shared (read only or read write).

Try to NFS mount the shared file system onto a Solaris machine.

I suspect that the CD ROM may need to include Joliet extensions.
The CD ROM I have used in this example is Solaris 9 12/03 1 of 2.

I believe that almost any CD ROM from a commercial vendor will exhibit this problem.
>Fix:
The workaround is to mount using NFS version 2.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tjr 
State-Changed-When: Mon Aug 30 14:03:20 GMT 2004 
State-Changed-Why:  
Duplicate of kern/63446. 
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/63446 

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