devfs
[Top] [All Lists]

Re: Possible problem with devfs removable drives patch

To: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
Subject: Re: Possible problem with devfs removable drives patch
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Mon, 18 Feb 2002 12:22:18 -0700
Cc: "'devfs mailing list'" <devfs@xxxxxxxxxxx>, Robert.Fox@xxxxxxxxxxx
In-reply-to: <001d01c1b888$22bc3fb0$21c9ca95@xxxxxxxxxxxxxx>
References: <1014039780.22997.0.camel@foxbase> <001d01c1b888$22bc3fb0$21c9ca95@xxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
Borsenkow Andrej writes:
> Mandrake 2.4.17-18mdk based on 2.4.18-rc1
> 
> On first (?) bootup after install the following interesting message
> (error -17):
> 
> PIIX4: chipset revision 1
> PIIX4: not 100% native mode: will probe irqs later
>     ide0: BM-DMA at 0x1840-0x1847, BIOS settings: hda:pio, hdb:pio
>     ide1: BM-DMA at 0x1848-0x184f, BIOS settings: hdc:DMA, hdd:pio
> hda: LS-120 CSMO 05 UHD Floppy, ATAPI FLOPPY drive
> hdc: IBM-DTTA-371440, ATA DISK drive
> ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
> ide1 at 0x170-0x177,0x376 on irq 15
> hdc: 28229040 sectors (14453 MB) w/462KiB Cache, CHS=28005/16/63,
> UDMA(33)
> hda: No disk in drive
> hda: 123264kB, 963/8/32 CHS, 533 kBps, 512 sector size, 720 rpm
> devfs_register(disc): could not append to parent, err: -17
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Odd. This should never happen. If you look at the code for
devfs_register_disc(), you will see the very first line:
        if (dev->part[minor].de) return;

which prevents duplicate registrations. The only way I can see this
failing is if the "disc" entry for a different device is registered,
but *the parent directory names are the same*. You can test this by
putting a debugging line two lines after the call to
devfs_generate_path() thus:
        printk ("Constructed: \"%s\"", dirname + 3 + pos);

and then send me the kernel messages between the PIIX4: message and
the error message you highlighted.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

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