Re: /sys/block vs. /sys/class/block

From: Stephen Rothwell (sfr_at_canb.auug.org.au)
Date: 12/22/04

  • Next message: manjunathg.kondaiah_at_wipro.com: "Query on module dependency handling in IrDA network drivers"
    Date:	Wed, 22 Dec 2004 15:34:49 +1100
    To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    
    
    

    On Tue, 21 Dec 2004 08:07:50 +0100 Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
    >
    > > Because /sys/block happened before /sys/class did. Al Viro converted
    > > the block layer before I got the struct class stuff working properly
    > > during 2.5.
    > >
    > > And yes, I would like to convert the block layer to use the class stuff,
    > > but for right now, I can't as class devices don't allow
    > > sub-classes-devices, and getting to that work is _way_ down on my list
    > > of things to do.
    >
    > but can't we at least artificially move it down to /sys/class anyway for
    > the sake of a sane userland API ?

    Can I then make the obvious suggestion: add a symlink in /sys/class
    linking to /sys/block and then reverse the symink once the above work has
    been done and /sys/class/block has been created?

    Or is that too gross? :-)

    -- 
    Cheers,
    Stephen Rothwell                    sfr@canb.auug.org.au
    http://www.canb.auug.org.au/~sfr/
    
    

    -
    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: manjunathg.kondaiah_at_wipro.com: "Query on module dependency handling in IrDA network drivers"

    Relevant Pages

    • Re: [RFC] /proc/ide/hdx/settings with ide-default pseudo-driver is a 2.6/2.7 show-stopper
      ... because I can't rely on sane behaviour if I remove queues etc, ... I keep the queue around so that to the block layer nothing disappears ... and is freed up causing race issues but to the IDE layer the right stuff ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Kernel 2.6 size increase
      ... and so a useful thing for linux to support. ... > As has been pointed out, there's things like the block layer that aren't ... and I'm all for attacking the low-hanging-fruit first. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: /sys/block vs. /sys/class/block
      ... > for no apparent reason. ... the block layer before I got the struct class stuff working properly ... And yes, I would like to convert the block layer to use the class stuff, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] 9/8 Backport recent 2.6 IDE updates to 2.4.x
      ... Any particular reason the baby was ... > tossed out with the proverbial bathwater? ... The 2.4 block layer has a 32bit block limit so if it does they'll have ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: /sys/block vs. /sys/class/block
      ... >> for no apparent reason. ... > the block layer before I got the struct class stuff working properly ... > And yes, I would like to convert the block layer to use the class stuff, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)