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

From: Nick Piggin (nickpiggin_at_yahoo.com.au)
Date: 12/20/04

  • Next message: Phil Dibowitz: "Re: [linux-usb-devel] Re: RFC: [2.6 patch] let BLK_DEV_UB depend on EMBEDDED"
    Date:	Mon, 20 Dec 2004 19:16:45 +1100
    To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    
    

    Benjamin Herrenschmidt wrote:
    > I'm trying to understand why we have /sys/block instead
    > of /sys/class/block, and so far, I haven't found a single good argument
    > justifying it... It just messes up the so far logical layout of sysfs
    > for no apparent reason.
    >
    > I also didn't find where /sys/block is created, but that's maybe because
    > I didn't search too hard :) So I'm not coming up with a patch yet, but
    > unless somebody can convince me it should stay here, I'll do so soon.
    >
    > If the reason not to fix it is backward compatibility, then that would
    > really be a shame we managed already to turn the brand new sysfs into a
    > mess with no hope of fixing it... If there is really a problem there,
    > maybe we could move it and keep a compat symlink for a few kernel
    > revs... ?
    >

    Seems like that's where it belongs.

    The reason why it is in /sys/block is because it is apparently a "subsystem",
    and using decl_subsys - drivers/block/genhd.c

    Nick
    -
    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: Phil Dibowitz: "Re: [linux-usb-devel] Re: RFC: [2.6 patch] let BLK_DEV_UB depend on EMBEDDED"

    Relevant Pages

    • /sys/block vs. /sys/class/block
      ... It just messes up the so far logical layout of sysfs ... for no apparent reason. ... If the reason not to fix it is backward compatibility, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] New Time of day proposal (updated 9/2/04)
      ... although I want to put the control into sysfs. ... > overhead. ... timesource management code needs to be split off into a timesource.c, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] scsi/sata write barrier support
      ... > the disc parameters and then trigger a device rescan via sysfs (I'll ... > then reading and setting it should be exported via sysfs. ... > sorts of trouble which is why we prefer asking the device what state ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: I request inclusion of SAS Transport Layer and AIC-94xx into the kernel
      ... > Mixing types, expressing multiple lines of data, and doing fancy ... There's precedent for binary data in sysfs -- pci config space is one. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] increse MAX_NR_MEMBLKS to same as MAX_NUMNODES on NUMA
      ... the low level arch specific discontig code, ... memblks in sysfs and elsewhere would have to take that into account... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)