devfs
[Top] [All Lists]

Re: Removeable Media, partitions and devfs?

To: "Richard Gooch" <rgooch@xxxxxxxxxxxxxxx>, "Paul Bristow" <paul@xxxxxxxxxxxxxxx>
Subject: Re: Removeable Media, partitions and devfs?
From: "Kevin P. Fleming" <kevin@xxxxxxxxxxxxx>
Date: Sat, 8 Dec 2001 10:55:44 -0700
Cc: <Andrej.Borsenkow@xxxxxxxxxxxxxx>, <mfedyk@xxxxxxxxxxxxx>, <devfs@xxxxxxxxxxx>
Organization: LSG, Inc.
References: <3C0C9AC5.4080504@xxxxxxxxxxxxxxx><001801c17d15$758b6760$c8aaa8c0@kevin><3C0D588F.9000806@xxxxxxxxxxxxxxx><03be01c17d20$5d1b72f0$c8aaa8c0@kevin><200112050639.fB56d0a05344@xxxxxxxxxxxxxxxxxxxxxxxx><00e901c17dd2$8ccffe50$c8aaa8c0@kevin><200112060633.fB66XoZ22006@xxxxxxxxxxxxxxxxxxxxxxxx><3C0FED36.9050506@xxxxxxxxxxxxxxx> <200112070708.fB778bo09456@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
> --- check.c~ Thu Oct 11 18:25:10 2001
> +++ check.c Thu Dec  6 23:49:54 2001
> @@ -383,6 +383,8 @@
>
>   dev->part[first_minor].nr_sects = size;
>   /* No such device or no minors to use for partitions */
> + if ( !size && dev->flags && (dev->flags[drive] & GENHD_FL_REMOVABLE) )
> + devfs_register_disc (dev, first_minor);
>   if (!size || minors == 1)
>   return;
>

I'm sorry to say that this patch does not seem to work for me. I applied it
to 2.4.17-pre5, and installed the new kernel and rebooted with no media in
my ZIP 250 drive. The drive did not show in either /dev/discs or /dev/ide at
all. It _was_ found by the ide driver and ide-floppy driver (version 0.97.sv
as shipped with 2.4.17-pre5), but did not show in up the /dev heirarchy
anywhere.



<Prev in Thread] Current Thread [Next in Thread>