From owner-freebsd-current@FreeBSD.ORG Mon Dec 19 02:02:32 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6024416A41F for ; Mon, 19 Dec 2005 02:02:31 +0000 (GMT) (envelope-from enache@rdslink.ro) Received: from smtp.rdslink.ro (smtp.rdslink.ro [193.231.236.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F26843D67 for ; Mon, 19 Dec 2005 02:02:30 +0000 (GMT) (envelope-from enache@rdslink.ro) Received: (qmail 4914 invoked from network); 19 Dec 2005 02:02:29 -0000 X-Mail-Scanner: Scanned by qSheff 1.0 (http://www.enderunix.org/qsheff/) Received: from unknown (HELO localhost.my.domain) (86.125.101.38) by smtp.rdslink.ro with SMTP; 19 Dec 2005 02:02:29 -0000 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.13.4/8.13.4) with ESMTP id jBJ22YJ3001315 for ; Mon, 19 Dec 2005 04:02:34 +0200 (EET) (envelope-from enache@rdslink.ro) Received: (from adi@localhost) by localhost.my.domain (8.13.4/8.13.3/Submit) id jBJ22YvE001314 for freebsd-current@freebsd.org; Mon, 19 Dec 2005 04:02:34 +0200 (EET) (envelope-from enache@rdslink.ro) X-Authentication-Warning: localhost.my.domain: adi set sender to enache@rdslink.ro using -f Date: Mon, 19 Dec 2005 04:02:34 +0200 From: Enache Adrian To: freebsd-current@freebsd.org Message-ID: <20051219020234.GB1253@cubatao> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: mount_cd9660 broken with multi-session CDs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 02:02:32 -0000 mount_cd9660 doesn't pass the correct 'ssector' option to the kernel so it's unable to mount multi-session disks. this small patch fixes it for me: --- /usr/src/sbin/mount_cd9660/mount_cd9660.c Thu Dec 15 02:01:38 2005 +++ ./mount_cd9660.c Sun Dec 18 00:07:46 2005 @@ -175,7 +175,7 @@ build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1); build_iovec(&iov, &iovlen, "from", dev, (size_t)-1); - build_iovec(&iov, &iovlen, "ssector", &ssector, sizeof ssector); + build_iovec_argf(&iov, &iovlen, "ssector", "%d", ssector); if (nmount(iov, iovlen, mntflags) < 0) err(1, "%s", dev);