From: Jens Axboe <axboe@suse.de>
To: David Johnson <dave-kernel-list@centerclick.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: DVD-RAM media detected with wrong number of blocks (2.4.7)
Date: Tue, 24 Jul 2001 10:25:26 +0200 [thread overview]
Message-ID: <20010724102526.K4221@suse.de> (raw)
In-Reply-To: <v04210101b781c827accb@[10.0.2.30]>
In-Reply-To: <v04210101b781c827accb@[10.0.2.30]>
[-- Attachment #1: Type: text/plain, Size: 609 bytes --]
On Mon, Jul 23 2001, David Johnson wrote:
> When attempting to create an ext2 partition on a dvd-ram (2.6G/5.2G)
> media the number of blocks is detected wrong causing only half of the
> disk to be usable. When creating the filesystem with mke2fs only
> 609480 2K blocks are allowed instead of 1218960 2K blocks, and I end
> up with a 1.2GB partition instead of 2.4GB one. The 1.2GB fs works
> fine, it's just a bit small :(
>
> This is with 2.4.7 using a Creative DVD-RAM drive (1216S) on an Adaptec
> 2940UW.
>
> The correct number of blocks is detected in 2.4.6
Does this work?
--
Jens Axboe
[-- Attachment #2: sr-cap-1 --]
[-- Type: text/plain, Size: 348 bytes --]
--- drivers/scsi/sr_ioctl.c~ Tue Jul 24 10:24:46 2001
+++ drivers/scsi/sr_ioctl.c Tue Jul 24 10:24:59 2001
@@ -545,7 +545,7 @@
switch (cmd) {
case BLKGETSIZE:
- return put_user(scsi_CDs[target].capacity >> 1, (long *) arg);
+ return put_user(scsi_CDs[target].capacity >> 2, (long *) arg);
case BLKROSET:
case BLKROGET:
case BLKRASET:
next prev parent reply other threads:[~2001-07-24 8:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-24 2:10 DVD-RAM media detected with wrong number of blocks (2.4.7) David Johnson
2001-07-24 8:25 ` Jens Axboe [this message]
2001-07-24 13:02 ` David Johnson
2001-07-24 13:04 ` Jens Axboe
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=20010724102526.K4221@suse.de \
--to=axboe@suse.de \
--cc=dave-kernel-list@centerclick.org \
--cc=linux-kernel@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