From owner-freebsd-bugs@FreeBSD.ORG Sun Apr 2 11:50:19 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0061016A42A for ; Sun, 2 Apr 2006 11:50:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EE5243D49 for ; Sun, 2 Apr 2006 11:50:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k32BoIOt019868 for ; Sun, 2 Apr 2006 11:50:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k32BoIkj019867; Sun, 2 Apr 2006 11:50:18 GMT (envelope-from gnats) Resent-Date: Sun, 2 Apr 2006 11:50:18 GMT Resent-Message-Id: <200604021150.k32BoIkj019867@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pete Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9556816A400 for ; Sun, 2 Apr 2006 11:40:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CBB543D4C for ; Sun, 2 Apr 2006 11:40:20 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k32BeJ6B031207 for ; Sun, 2 Apr 2006 11:40:19 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k32BeJj8031206; Sun, 2 Apr 2006 11:40:19 GMT (envelope-from nobody) Message-Id: <200604021140.k32BeJj8031206@www.freebsd.org> Date: Sun, 2 Apr 2006 11:40:19 GMT From: Pete To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/95222: File sections on ISO9660 level 3 CDs ignored X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 11:50:19 -0000 >Number: 95222 >Category: kern >Synopsis: File sections on ISO9660 level 3 CDs ignored >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 02 11:50:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Pete >Release: 6.0 >Organization: >Environment: N/A >Description: The current cd9660 implementation does not support "file sections" (a feature allowing portions of a file to be reused), even though this is required for Level 3 compliant implementations. Windows users sometimes creates such CDs, but since they are rather uncommon, I believe it only happens if they tweak their burner settings. Windows has supported Level 3, "Joliet level 3", for a decade or so. >How-To-Repeat: 1, Burn a known file in multiple sections (Roxio's software for Windows appears to be able to do this) 2, Mount CD in FreeBSD 3, Copy the known file, and notice that although it appears to succeed, only a portion of the file is copied. (Also, file sizes in listings are wrong.) >Fix: Ideally: Properly implement file sections. AFAICT, none of the BSDs have it implemented, but it's supported by Linux, see for example: http://www.linux-m32r.org/lxr/http/source/fs/isofs/inode.c This requires significant work, and some potential problems in implementing this for NetBSD were discussed at: http://groups.google.com/group/fa.netbsd.current-users/ browse_frm/thread/c917600103080381 In the meantime, it shouldn't be too difficult to add warnings when attempting to read a multi-section file. One could also warn at mount time -- the only difference between level 2 and level 3 is that the latter allows for multi-section files -- but the drawback of this is that level 3 doesn't require multi-sections, so a warning might unnecessarily scare the user. Please note that mounting the CD without Joliet extensions doesn't make the files readable. >Release-Note: >Audit-Trail: >Unformatted: