public inbox for linux-kernel@vger.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; 11+ 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] 11+ messages in thread
* Re: ide-floppy.c vs devfs
@ 2001-11-12  6:48 Borsenkow Andrej
  0 siblings, 0 replies; 11+ messages in thread
From: Borsenkow Andrej @ 2001-11-12  6:48 UTC (permalink / raw)
  To: howarth; +Cc: linux-kernel, kernel

The fix for it is included in current Mandrake cooker. As I already
said, I do not like it (the fix is to pretend we have media when we have
none) but it is the only possible way given current partition layer
design it seems.

I would prefer that partition layer registered .../disc for removable
media irrespectively of whether media is inserted or not, but well ...
it's up to other people to decide.

-andrej

Sorry, replying off web archive.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* ide-floppy.c vs devfs
@ 2001-11-11  4:39 Jack Howarth
  2001-11-23  5:13 ` Richard Gooch
  2001-11-25 22:07 ` Paul Bristow
  0 siblings, 2 replies; 11+ messages in thread
From: Jack Howarth @ 2001-11-11  4:39 UTC (permalink / raw)
  To: linux-kernel

Paul,
   Is ide-floppy supposed to be devfs friendly? I ask
because on Linux 2.4.15-pre2 (and previous kernels)
on the Powermac (Debian ppc sid) I find that the
ide-floppy driver only creates device for my ide 
zip if a zip disk is inserted at boot time. Otherwise
the /dev/ide/host1/bus0/target1/lun0 directory doesn't
contain a device node for the zip whereas the ide-cdrom
driver creates a /dev/ide/host1/bus0/target0/lun0/cd
fine without a cdrom disk inserted at boot time. I find
that the only way I can get the zip device created at
boot time without media inserted is to use ide-scsi 
emulation and turn off ide-floppy when I configure the
kernel. Is this issue a known problem and does it
exist for other arches than powerpc (Powermac)? Thanks
in advance for any advice.
                      Jack
------------------------------------------------------------------------------
Jack W. Howarth, Ph.D.                                    231 Albert Sabin Way
NMR Facility Director                              Cincinnati, Ohio 45267-0524
Dept. of Molecular Genetics                              phone: (513) 558-4420
Univ. of Cincinnati College of Medicine                    fax: (513) 558-8474

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

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

Thread overview: 11+ 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
  -- strict thread matches above, loose matches on Subject: below --
2001-11-12  6:48 ide-floppy.c vs devfs Borsenkow Andrej
2001-11-11  4:39 Jack Howarth
2001-11-23  5:13 ` Richard Gooch
2001-11-25 22:07 ` Paul Bristow
2001-11-25 22:31   ` Richard Gooch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox