[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTikBhsUirA5B-7FiUZPJ7dj4elZVcnVl3l3_TzXY@mail.gmail.com>
Date: Thu, 22 Jul 2010 16:00:43 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: david@...g.hm
Cc: Marcelo Tosatti <mtosatti@...hat.com>,
Stephen Hemminger <shemminger@...tta.com>,
linux-kernel@...r.kernel.org
Subject: Re: [RFC] floppy: use single threaded workqueue
On Thu, Jul 22, 2010 at 3:22 PM, <david@...g.hm> wrote:
>
> I don't use floopies much anymore, but I've got a fair number of machines
> around that have floppy drives (purchased across about 6 years with from a
> couple vendors and a variety of motherboards)
>
> If someone can go to the effort of documenting what testing you want done I
> may be able to do it.
It doesn't really need to be all that extensive. The "interesting"
operations tend to be (apart from just reading and writing data, of
course):
- formatting a floppy (it's special, and historically relatively
often broke without people noticing for a while)
- the floppy format auto-detection
- floppy disk change detection
so just formatting floppies to a couple of different formats (ie do
you possibly have DD and HD floppies?), mkfs them and write something
to them, and then moving them to another machine and checking that
reading the data off them through the auto-detected formats (/dev/fd0)
works and gives the right results (just sha1sum the files).
The disk change detect can be a bit hard to see. It's unreliable with
some media, so iirc we always flush caches after the last close (we
didn't use to do that, and the disk change detection needed to just be
reliable - and you could test that the disk change logic worked by
just timing a read of the media and seeing if it came out of the
cache). I think for floppies, the thing to see is if format detection
works correctly when you switch between formats. Perhaps also the
read-only marker (ie switch the floppy between read-only and
read-write, and see that the status of the floppy is correctly
noticed: you should get a nice error if you try to write a read-only
floppy, rather than getting IO errors).
I can't think of anything else relevant.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists