linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Wilkens <robw@optonline.net>
To: J Sloan <joe@tmsusa.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [OT] Noise on lkml (was Re: Nvidia and its choice to read the	GPL "differently")
Date: Sat, 11 Jan 2003 22:18:04 -0500	[thread overview]
Message-ID: <1042341484.1033.119.camel@RobsPC.RobertWilkens.com> (raw)
In-Reply-To: <3E20C899.8090204@tmsusa.com>

On Sat, 2003-01-11 at 20:44, J Sloan wrote:
> I won't even begin to put together a point by
> point correction, it's all too tedious, and it's
> possible that you are here just to annoy and
> wear down the developers anyway -

I've only written a total of maybe 5-6 messages to the list, and maybe 4
of them were off topic because of a previous off-topic message by
somebody else (such as yours).  I don't see how "i" am specifically
designed to wear down developers, though I'll apologize for any comments
I made earlier about the simplicity of kernel development:  I should
comment that it was kernel development I was doing (professionally) when
I had my first two mental breakdowns, so it should be no surprise to
discover that despite the fact that superficially it seemed like easy
work at the time, it can be a stress inducing kind of work which is
somewhat tedious in nature (trying to get various hardware to work just
right, or reversing bit/byte orders for various platforms or that sort
of thing).  

> Please start sending in patches or discussing
> kernel code, or even doing testing - if not, you
> might wish to seek out a different forum for
> your messages, where you might find a more
> receptive audience - I'll refrain from making
> specific suggestions at this time.

I fixed a bug in my kernel (2.4.20), and here's the unified diff with
the hack I put in place, it's not a fix because I don't know enough
about the floppy driver to fix it the right way--- it's called a hack. 
I'm sure if I looked at the problem longer I could fix it right, but it
looks like in 2.5.56 the floppy driver has been rewritten somewhat, but
the problem, I believe, is still there and reproducable (code to
reproduce it is below).

<---Begin--->

--- floppy.c.orig	2003-01-07 21:51:49.000000000 -0500
+++ floppy.c	2003-01-10 15:54:56.000000000 -0500
@@ -3874,7 +3874,7 @@
 		UCLEARF(FD_DISK_CHANGED);
 		if (cf)
 			UDRS->generation++;
-		if (NO_GEOM){
+		if (/*NO_GEOM*/1){
 			/* auto-sensing */
 			int size = floppy_blocksizes[MINOR(dev)];
 			if (!size)


<---End--->

Please note that the above error fixes the following test case.  IF you
have no floppy in the A: drive and run the following test.c code
repeatedly you will find you get different results every time you run
it.  I left the commented sections in the code to illustrate that it
only happens with fd0u1440 as opposed to fd0.

<---Begin--->
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>

#define O_LARGEFILE	0100000

 main()
{	
	int fd,bits;

/*	fd=open("/dev/fd0",O_WRONLY|O_CREAT|O_TRUNC);*/

	/*fd=open("/dev/fd0",O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE);*/
	fd=open("/dev/fd0u1440",O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE);
	
	printf ("fd=%d\n",fd);
	perror("error was: ");
}
<---End--->

Note that O_LARGEFILE isn't meaningful, it was put there because I was
imitating a system call that I saw the "dd" command making when doing an
"strace" (System Call Trace) do when it was failing.

This is a silly and trivial bug, but someone reported it.  Until I get
some acknowledgement of any kind on my first kernel patch submittal, it
seems silly to submit more, even if the acknowledgement is someone
telling me "try to fix it the right way so it doesn't break anything
else" which may involve adding a few more lines of code.

-Rob


  reply	other threads:[~2003-01-12  3:11 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-10 15:29 Nvidia and its choice to read the GPL "differently" Larry Sendlosky
2003-01-11  1:58 ` Rob Wilkens
2003-01-11  2:07   ` Larry McVoy
2003-01-11  2:13     ` Rob Wilkens
2003-01-11  2:17       ` Larry McVoy
2003-01-11  2:38         ` Rob Wilkens
2003-01-11  2:41           ` Larry McVoy
2003-01-11  2:46             ` Rob Wilkens
2003-01-11 21:44           ` Kurt Garloff
2003-01-11 21:53             ` Rob Wilkens
2003-01-11 22:16               ` Chief Gadgeteer
2003-01-11 22:26               ` Kurt Garloff
2003-01-11 23:23                 ` Rob Wilkens
2003-01-12  3:33                   ` Mark Mielke
2003-01-12  3:43                     ` Rob Wilkens
2003-01-12  4:19                     ` David Schwartz
2003-01-13 13:51                       ` Richard B. Johnson
2003-01-12  4:00                   ` Valdis.Kletnieks
2003-01-12  4:04                     ` Rob Wilkens
2003-01-12  7:47                     ` Chuck Wolber
2003-01-12 14:42                       ` Intel And Kenrel Programming (was: Nvidia is a great company) Rob Wilkens
2003-01-12 16:45                         ` Alan Cox
2003-01-12 16:58                           ` Rob Wilkens
2003-01-12 17:54                             ` Alan Cox
2003-01-12 19:30                               ` Intel And Kenrel Programming Samuli Suonpaa
2003-01-12 19:46                           ` Intel And Kenrel Programming (was: Nvidia is a great company) Valdis.Kletnieks
2003-01-11 22:36               ` Nvidia and its choice to read the GPL "differently" Vojtech Pavlik
2003-01-11 22:57                 ` Rob Wilkens
2003-01-12  1:06                   ` The GPL, the kernel, and everything else Ryan Anderson
2003-01-12  4:15                     ` Rob Wilkens
2003-01-12  4:21                       ` David Lang
2003-01-12  4:55                         ` Rob Wilkens
2003-01-12  5:10                           ` David Lang
2003-01-12  5:45                             ` Rob Wilkens
2003-01-12  5:12                           ` Stephen Satchell
2003-01-16 16:28                       ` Mark H. Wood
2003-01-16 16:41                         ` venom
2003-01-16 18:22                         ` John Alvord
2003-01-12 11:13                   ` Nvidia and its choice to read the GPL "differently" Andrew McGregor
2003-01-12  1:44               ` [OT] Noise on lkml (was Re: Nvidia and its choice to read the GPL "differently") J Sloan
2003-01-12  3:18                 ` Rob Wilkens [this message]
2003-01-12  4:08                   ` Scott Murray
2003-01-11  3:26     ` Nvidia and its choice to read the GPL "differently" Alan Cox
2003-01-11  2:54       ` Larry McVoy
2003-01-11  2:58         ` Rob Wilkens
2003-01-11  3:11           ` Zwane Mwaikambo
2003-01-11  3:14             ` Rob Wilkens
2003-01-11  3:16           ` John Adams
2003-01-11  3:35             ` Rob Wilkens
2003-01-11  3:48               ` Hans Sgier
2003-01-11  3:55                 ` Rob Wilkens
2003-01-11  4:41               ` J Sloan
2003-01-11  4:44                 ` Rob Wilkens
2003-01-11  5:09                   ` Andre Hedrick
2003-01-11  5:12                   ` OT: Renaming the kernel??!?!?!? (Was Re: Nvidia and its choice to read the GPL "differently") Brian Davids
2003-01-11 15:57                   ` Nvidia and its choice to read the GPL "differently" Tom Sightler
2003-01-11  3:27           ` Brian Tinsley
     [not found]             ` <1042256385.1259.106.camel@RobsPC.RobertWilkens.com>
2003-01-11  4:16               ` Brian Tinsley
2003-01-11  3:52           ` yodaiken
2003-01-11  4:05             ` Rob Wilkens
2003-01-11  5:45               ` Martin J. Bligh
2003-01-11  6:01           ` Tomas Szepe
2003-01-11 15:03             ` Rob Wilkens
2003-01-11 19:41               ` Andre Hedrick
2003-01-11 21:18                 ` Rob Wilkens
2003-01-11  6:32         ` Ryan Anderson
2003-01-11  2:55       ` Rob Wilkens
2003-01-11  3:20   ` Tom Sightler
2003-01-11 19:48     ` Mark Mielke

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=1042341484.1033.119.camel@RobsPC.RobertWilkens.com \
    --to=robw@optonline.net \
    --cc=joe@tmsusa.com \
    --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;
as well as URLs for NNTP newsgroup(s).