All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: ide-floppy.c vs devfs
@ 2001-11-26 10:04 Borsenkow Andrej
  2001-11-26 17:44 ` Paul Bristow
  0 siblings, 1 reply; 6+ messages in thread
From: Borsenkow Andrej @ 2001-11-26 10:04 UTC (permalink / raw)
  To: rgooch, paul; +Cc: linux-kernel

>> Try the devfs test version that I just uploaded to 
>> 
>> http://paulbristow.net/linux/idefloppy.html 
>> 
>> This is early days, and I'm not sure what the best approach is... 
>> 
>> Feedback is greatly appreaciated. 
>

On this page you mention that Mandrake includes this patch, but your
driver (link on the above patch) differs from Mandrake one. In patch I
sent to Mandrake I just fake drive capacity in case
CAPACITY_NO_CARTRIDGE is returned.

>
> I haven't had time to look at this closely, but I question why you're 
> trying to prevent grok_partitions() from doing it's thing. There's 
> supposed to be a flag set for removable media which ensures media 
> revalidation on scanning the parent directory or looking up an entry. 
> I'd rather see that mechanism fixed. 

Currently grok_partitions() silently ignores any media with size == 0,
irrespectively of whether removable is set or not. It means that *no*
entries for drive (either disc or part?) are created at all and there is
nothing that later on triggers revalidation.

I still believe grok_partitions() should create disc node for removables
even if current capacity == 0 (that for removable just means there is no
media inserted). Then it would work the way you describe and faking
drive capacity for empty drives could be removed (IIRC it happens for
other removables like SCSI disks as well).


-andrej

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-11-28 18:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-26 10:04 ide-floppy.c vs devfs Borsenkow Andrej
2001-11-26 17:44 ` Paul Bristow
2001-11-27 12:34   ` Borsenkow Andrej
2001-11-27 17:47     ` Paul Bristow
2001-11-27 20:38       ` Mike Fedyk
2001-11-28 18:36         ` [PATCH] ide-floppy real devfs support for testing Paul Bristow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.