Date: Mon, 19 Dec 2005 13:56:43 +0800 (CST) From: Tai-hwa Liang <avatar@mmlab.cse.yzu.edu.tw> To: Enache Adrian <enache@rdslink.ro> Cc: freebsd-current@freebsd.org Subject: Re: mount_cd9660 broken with multi-session CDs Message-ID: <051219135457B.99603@www.mmlab.cse.yzu.edu.tw> In-Reply-To: <20051219020234.GB1253@cubatao> References: <20051219020234.GB1253@cubatao>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Dec 2005, Enache Adrian wrote: > 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); Looks good to me. Fix commited to src/sbin/mount_cd9660.c:1.33. Thanks! -- Cheers, Tai-hwa Liang
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?051219135457B.99603>