From: Jens Axboe <axboe@suse.de>
To: "Joseph N. Hall" <joseph@5sigma.com>
Cc: linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@transmeta.com>
Subject: Re: 4.7GB DVD-RAM geometry wrong?
Date: Wed, 15 Aug 2001 13:17:33 +0200 [thread overview]
Message-ID: <20010815131733.I545@suse.de> (raw)
In-Reply-To: <20010815111030Z271139-761+1405@vger.kernel.org>
In-Reply-To: <20010815111030Z271139-761+1405@vger.kernel.org>
[-- Attachment #1: Type: text/plain, Size: 634 bytes --]
On Wed, Aug 15 2001, Joseph N. Hall wrote:
> I don't know if I'm doing this the right way or not. I did spend an hour
> or three googling for "linux dvd-ram" and the like, and all I came up with
> was a bunch of 2.2-specific stuff, until I found a usenet posting that
> said in effect "you can write to /dev/scd0". So I gave that a try
> and it worked. Sort of.
>
> I have a Panasonic DVD-RAM, LF-D201 (SCSI 4.7/9.4GB). I put in a
> 4.7GB type II cartridge (that's a single-sided disk), did 'mkfs
> /dev/scd0' and then mounted it, and ... I have a 2.2GB disk!
Attached patch should fix it, Linus please apply.
--
Jens Axboe
[-- Attachment #2: sr_cap-1 --]
[-- Type: text/plain, Size: 371 bytes --]
--- /opt/kernel/linux-2.4.9-pre4/drivers/scsi/sr_ioctl.c Thu Jul 5 20:28:17 2001
+++ drivers/scsi/sr_ioctl.c Wed Aug 15 13:15:21 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, (long *) arg);
case BLKROSET:
case BLKROGET:
case BLKRASET:
next prev parent reply other threads:[~2001-08-15 11:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-15 11:10 4.7GB DVD-RAM geometry wrong? Joseph N. Hall
2001-08-15 11:17 ` Jens Axboe [this message]
2001-08-15 14:34 ` Hisaaki Shibata
2001-08-16 2:44 ` Hisaaki Shibata
2001-08-16 6:50 ` Jens Axboe
2001-08-16 7:53 ` Hisaaki Shibata
2001-08-16 8:10 ` Jens Axboe
2001-08-16 14:23 ` Hisaaki Shibata
2001-08-16 16:26 ` Hisaaki Shibata
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=20010815131733.I545@suse.de \
--to=axboe@suse.de \
--cc=joseph@5sigma.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.