From: Jon Burgess <mplayer@jburgess.uklinux.net>
To: linux-fsdevel@vger.kernel.org
Subject: [PATCH] Remove iso9660 check for sbsector < 660Mb
Date: Wed, 03 Dec 2003 18:59:56 +0000 [thread overview]
Message-ID: <3FCE32AC.4060306@jburgess.uklinux.net> (raw)
The iso9660 filesystem code checks that the "sbsector" option is
positioned within the first 660Mb of the disk.
Today the iso9660 filesystem is used on DVD's which are much bigger than
660Mb and this check prevents the sbsector option being used to specify
the location of the superblock of multisession DVD's.
With this check removed I can mount the second session on a DVD-R by
specifying the sbsector, even though the firmware on that drive returns
bogus data for the TOC.
If an invalid large sector number is entered then a "request beyond end
of device" error is reported elsewhere in the block code, but appears to
do no damage.
Thanks,
Jon
--- linux-2.6.0-test11/fs/isofs/inode.c-orig Tue Oct 14 18:00:18 2003
+++ linux-2.6.0-test11/fs/isofs/inode.c Wed Dec 3 18:48:00 2003
@@ -447,10 +447,7 @@
case Opt_sb:
if (match_int(&args[0], &option))
return 0;
- n = option;
- if (n > 660 * 512)
- return 0;
- popt->sbsector = n;
+ popt->sbsector = option;
break;
case Opt_check_r:
popt->check = 'r';
reply other threads:[~2003-12-03 19:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FCE32AC.4060306@jburgess.uklinux.net \
--to=mplayer@jburgess.uklinux.net \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox