mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andries.Brouwer@cwi.nl
To: Andries.Brouwer@cwi.nl, axboe@suse.de
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org,
	zzed@cyberdude.com
Subject: Re: [PROBLEM] 2.4.1 can't mount ext2 CD-ROM
Date: Sun, 18 Feb 2001 20:34:03 +0100 (MET)	[thread overview]
Message-ID: <UTC200102181934.UAA168081.aeb@vlet.cwi.nl> (raw)


    > A value of hardsect_size[] means: this is the smallest size
    > the hardware can work with. It is therefore a serious mistake
    > just to come with "a good guess". This value is used only

    You are defeating the entire purpose of having a hardware sector
    size independently from the software block size. And 2kB is a
    valid guess, apart from the drives that do 512 byte transfers too
    2kB is really the smallest transfer we can do.

: And 2kB is a valid guess

Strange. The twelve or so CD readers I have here are all
able to read 512-byte sectors. I am quite willing to believe
that hardware exists that is unable to, but it is a bad idea
to refuse to mount filesystems just because of some "good guess"
that was not so good at all.

    > to reject impossible sizes, and everywhere the kernel accepts 0
    > meaning "don't know".

[Minor correction to my previous note:
	hardsect_size[MAJOR_NR] = NULL;
is fine, putting 512 is fine as well, but putting 0 does not
work because of the get_hardsect_size() that doesnt check for 0.]

    So put 0 and sure anyone can submit I/O on the size that they want.
    Now the driver has to support padding reads, or gathering data to do
    a complete block write. This is silly. Sr should support 512b transfers
    just fine, but only because I added the necessary _hacks_ to support
    it. sd doesn't right now for instance.

Please calm down. Removing this sr_hardsizes nonsense
is a good idea today. No padding reads involved.
If you disagree, please go slowly and state very explicitly
why you think I should be unable to mount ext2 filesystems with
a block size smaller than 2048 on my SCSI CD drive.

Andries

             reply	other threads:[~2001-02-18 19:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-18 19:34 Andries.Brouwer [this message]
2001-02-18 20:49 ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2001-02-18 21:11 Andries.Brouwer
2001-02-19  1:43 ` Jens Axboe
2001-02-18 17:49 Andries.Brouwer
2001-02-18 19:16 ` Jens Axboe
2001-02-19  1:40   ` Alan Cox
2001-02-19  1:47     ` Jens Axboe
2001-02-19  2:02       ` Alan Cox
2001-02-18 14:26 Jon Forsberg

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=UTC200102181934.UAA168081.aeb@vlet.cwi.nl \
    --to=andries.brouwer@cwi.nl \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zzed@cyberdude.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®