buglet reading /proc/ide/(cdrom)/capacity

From: Adrian Bridgett (adrian_at_smop.co.uk)
Date: 08/03/05

  • Next message: Con Kolivas: "Re: [PATCH] i386 No-Idle-Hz aka Dynamic-Ticks 3"
    Date:	Wed, 3 Aug 2005 22:15:27 +0100
    To: linux-kernel@vger.kernel.org
    
    

    Just a minor buglet I've noticed /proc/ide/hdc/cdrom (where hdc is my
    CDROM drive - Liteon 52x32x52).

    If I cat this file while inserting the CDROM the command hangs, then
    returns 304912 (fine).

    If I insert a CDROM, then wait a while (say 30 seconds), then
    it returns 304912 (also fine).

    However if I insert a CDROM, then wait until the light stops flashing
    (5 seconds) then I get: "0\n4912" like this:

    cat //proc/ide/hdc/capacity | od -c
    0000000 0 \n 4 9 1 2 \n

    I've checked with another CD and it is the first two characters being
    overwritten.

    PS: I'm not currently subscribed to the list, so please Cc me.

    Thanks,

    Adrian

    -- 
    Email: adrian@smop.co.uk  -*-  GPG key available on public key servers
    Debian GNU/Linux - the maintainable distribution   -*-  www.debian.org
    Avoid working with children, animals and Microsoft "operating" systems
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Con Kolivas: "Re: [PATCH] i386 No-Idle-Hz aka Dynamic-Ticks 3"

    Relevant Pages

    • Re: DMA problem
      ... SuSE, Debian, Mandrake, RedHat? ... > If I insert a cdrom in the drive the led doesn't go out, ... > Could someone give me an explanation of what is happening and a way to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0, cdrom still showing directories after being erased
      ... If the CDROM isn't umounted first, ... > get a directory entry even though the CDROM has been written with ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [OOPS] 2.4.22 / HPT372N
      ... > I saw something like that too - when disk was in second channel, ... > it did not crash because it did not detect anything. ... I will test with cdrom attached later today. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Cant eject a previously mounted CD?
      ... That's my cdrom. ... this is at boot and seems to be a kernel bug initiated by FAM. ... do have some gnome programs installed to test on) and the error message ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0, cdrom still showing directories after being erased
      ... > got listing of files and directories on the cdrom ... Can you really initialize the CDROM while it's mounted? ... the kernel doesn't care, cdrecord should. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)