[PATCH] libata transport attributes

From: Justin Cormack (justin_at_street-vision.com)
Date: 03/31/04

  • Next message: Randy.Dunlap: "Re: "Enhanced" MD code avaible for review"
    To: Jeff Garzik <jgarzik@pobox.com>, Kernel mailing list <linux-kernel@vger.kernel.org>, mort@wildopensource.com
    Date:	Wed, 31 Mar 2004 18:09:03 +0100
    
    
    

    Here is a rough patch to add libata transport attributes, along the
    lines of fibre channel and parallel scsi. I wrote it as it seemed to be
    the cleanest way of extracting ata-specific information (currently drive
    model, serial number and firmware revision) from sysfs (in
    /sys/class/libata_transport/). There are a few issues, in particular:

    1. it wont compile modular, as libata depends on scsi_transport_libata
    and vice-versa at the moment. I am not sure how you are supposed to get
    around this (and there arent any significant number of drivers in tree
    using the transport modules yet).

    2. It would be nice if the device directory in sysfs had a symlink to
    the transport attributes directory, not just the other way round.

    3. I couldnt work out what scsi_transport_template.size was the size of,
    as I couldnt see where it was used anywhere...

    patch against 2.6.5-rc3-libata1 but probably applies against most recent
    kernels.

    Justin Cormack

    
    

    -
    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: Randy.Dunlap: "Re: "Enhanced" MD code avaible for review"

    Relevant Pages

    • Re: [PATCH] libata transport attributes
      ... > Here is a rough patch to add libata transport attributes, ... > lines of fibre channel and parallel scsi. ... > using the transport modules yet). ...
      (Linux-Kernel)
    • Re: kernel.bkbits.net off the air
      ... The only difference is that we could extend the bkd itself to ... Convince me that is all wrong and I'll see about building it. ... functionality of BK, the transport, the diffs, the history, etc. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: I request inclusion of SAS Transport Layer and AIC-94xx into the kernel
      ... > be able to explain to any OS developer/engineer the scope of the transport ... Can you not have a storage engineer who is also a kernel engineer? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: RFC [patch 00/34] PID Virtualization Overview
      ... and transport it to another system where it would continue to run. ... We would have to make sure that the pids did not collide with any containers running on the target system. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [PATCH] InfiniBand: add missing break between cases
      ... This fixes a possible oops for protocols that use the RC transport. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)