• N
    [PATCH] md: extend md sysfs support to component devices. · 86e6ffdd
    NeilBrown 提交于
    Each device in an md array how has a corresponding
      /sys/block/mdX/md/devNN/
    directory which can contain attributes.  Currently there is only 'state' which
    summarises the state, nd 'super' which has a copy of the superblock, and
    'block' which is a symlink to the block device.
    
    Also, /sys/block/mdX/md/rdNN represents slot 'NN' in the array, and is a
    symlink to the relevant 'devNN'.  Obviously spare devices do not have a slot
    in the array, and so don't have such a symlink.
    Signed-off-by: NNeil Brown <neilb@suse.de>
    Cc: Greg KH <greg@kroah.com>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    86e6ffdd
md_k.h 9.6 KB