fix for ide-scsi crash
From [email protected] Tue Jan 20 08:33:03 2004
> This patch seems to solve all my 2.6 ide-scsi problems.
I've applied the fix part of it and pushed it out.
Good.
If Andries wants to
re-send the whitespace fixes, I can apply those too, but I hate applying patches like this where the whitespace fixes hide the real fix.
Yes, it seems we presently have no good mechanism / policy here. Patches are noise. If some kernel version works and another doesnt, one has to look at the diffs. Whitespace-only diffs are bad,
I would never submit them. They also needlessly invalidate existing patches.
On the other hand, nice, readable kernel sources are important. I used to polish the immediate neighbourhood of an actual change. If that is undesirable, what would you prefer?
Quoted 4 lines
Andrew, you can drop the atapi-mo-support patches from -mm if you like. That patch only works with 2048 byte sector discs, while the ide-scsi/sd solution also works with 512 and 1024 byte sector discs.
I'd really like the ATA cdrom driver to handle different sector sizes properly. There really is no excuse for a block device driver to hardcode its blocksize if it can avoid it.
Yes, it is very easy to change that.
And another thing that is very easy is to move partitioning away from the individual block devices. It was part of the stuff I did last year. Hope to try again for 2.7.
And then there is the read-only part that must be removed.
Those are three reasons why ide-cd today doesnt work so well with optical disks. But I am not sure it is desirable to make ide-cd work with them. The source would be littered with ifs - all this toc stuff is inappropriate for disks.
Andries
Quoted 1 line · On Tue, 20 Jan 2004 [email protected] wrote:
And then there is the read-only part that must be removed.
Not a problem for ide-cd, it already supports writing for DVD-RAM, and in -mm also packet writing.
Signature · 2 lines
Ciao, Pascal
Quoted 6 lines · Pascal Schmidt
Quoted 1 line · On Tue, 20 Jan 2004 [email protected] wrote:
And then there is the read-only part that must be removed.
Not a problem for ide-cd, it already supports writing for DVD-RAM, and in -mm also packet writing.
Packet writing isn't in -mm, it's mt rainier writing.
Signature · 1 line
Jens Axboe
Quoted 9 lines · On Tue, 20 Jan 2004 [email protected] wrote:
If Andries wants to
re-send the whitespace fixes, I can apply those too, but I hate applying patches like this where the whitespace fixes hide the real fix.Yes, it seems we presently have no good mechanism / policy here. Patches are noise. If some kernel version works and another doesnt, one has to look at the diffs. Whitespace-only diffs are bad,
I would never submit them. They also needlessly invalidate existing patches.
Whitespace-only diffs can be very useful. In particular, they are common when somebody starts working on a piece of code without a maintainer, and the old code was terminally broken wrt whitespace. Happens quite often in the driver world.
So I don't have any real issues with applying whitespace-only patches, and I much prefer them to patches that mix whitespace and bugfixes. In particular, if the whitespace fixes are preparation for some other cleanup, it's usually a good idea.
(I agree that if the whitespace fix is just random, it's usually not worth it).
Linus
Quoted 4 lines · [email protected] writes:
Yes, it seems we presently have no good mechanism / policy here. Patches are noise. If some kernel version works and another doesnt, one has to look at the diffs. Whitespace-only diffs are bad,
I would never submit them. They also needlessly invalidate existing patches.
When one version of a source file works and another doesn't, diff -b' or diff -w' usually does a good job of ignoring whitespace changes.
Signature · 3 lines
<[email protected]> <[email protected]> <[email protected]> <[email protected]> Stanford Ph.D. Candidate - MSU Alumnus - Debian Maintainer - GNU Developer www.benpfaff.org