2.4.1 can't mount ext2 CD-ROM
Quoted 9 lines
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
I think most Plextor and Yamaha do, but it's not guaranteed to be supported. And it definitely won't for ATAPI with ide-scsi.
Strange. I just used ATAPI with ide-scsi as test. It works.
Did you verify that changing block size works? Just curious.
Maybe you misunderstand.
In reality no blocksize is changed.
Setting hardsect_size to 2048 means: this hardware is unable to use smaller blocks, give an error to whoever asks for something smaller.
Not setting hardsect_size at all means: I have no idea what this hardware can do. Now it is up to the user. If the user tries something the hardware cannot do, she will get EIO. Limiting the user in advance is a bad idea.
But yes, I found an old CDROM with a blocksize of 1024, which was rejected by 2.4.1 and accepted by 2.4.1 after removing al mention of sr_hardsizes from sr.c.
Quoted 4 lines
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.
I don't think you should be unable to, of course we would want to support 1kB ext2 and other file systems that want to change the block size. We are just disagreeing on how to do it. I don't think counting on being able to change the block size of a device at will always be reliable.
It is not clear to me what you mean by "changing the block size". What problems do you see?
Don't forget that 2.2 does not have sr_hardsizes, so all problems you see should be present in 2.2.
Andries
Quoted 7 lines · On Sun, Feb 18 2001, [email protected] wrote:
Quoted 2 lines
Strange. The twelve or so CD readers I have here are all able to read 512-byte sectors. I am quite willing to believe
I think most Plextor and Yamaha do, but it's not guaranteed to be supported. And it definitely won't for ATAPI with ide-scsi.
Strange. I just used ATAPI with ide-scsi as test. It works.
Yeah it works because sr does read padding on drives that can't dish out 512b sectors... This is my point.
Quoted 3 lines
Setting
hardsect_sizeto 2048 means: this hardware is unable to use smaller blocks, give an error to whoever asks for something smaller.
Which is the case for some drives. The error now occurs when ext2 forcibly tries to set the block size.
Quoted 4 lines
Not setting
hardsect_sizeat all means: I have no idea what this hardware can do. Now it is up to the user. If the user tries something the hardware cannot do, she will get EIO. Limiting the user in advance is a bad idea.
Ok agreed, just forcing 2048 is a bit harsh but it was nicer than letting sr bomb on 512b requests at the time.
Signature · 1 line
Jens Axboe