)]}'
{
  "log": [
    {
      "commit": "5a0e3ad6af8660be21ca98a971cd00f331318c05",
      "tree": "5bfb7be11a03176a87296a43ac6647975c00a1d1",
      "parents": [
        "ed391f4ebf8f701d3566423ce8f17e614cde9806"
      ],
      "author": {
        "name": "Tejun Heo",
        "email": "tj@kernel.org",
        "time": "Wed Mar 24 17:04:11 2010 +0900"
      },
      "committer": {
        "name": "Tejun Heo",
        "email": "tj@kernel.org",
        "time": "Tue Mar 30 22:02:32 2010 +0900"
      },
      "message": "include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h\n\npercpu.h is included by sched.h and module.h and thus ends up being\nincluded when building most .c files.  percpu.h includes slab.h which\nin turn includes gfp.h making everything defined by the two files\nuniversally available and complicating inclusion dependencies.\n\npercpu.h -\u003e slab.h dependency is about to be removed.  Prepare for\nthis change by updating users of gfp and slab facilities include those\nheaders directly instead of assuming availability.  As this conversion\nneeds to touch large number of source files, the following script is\nused as the basis of conversion.\n\n  http://userweb.kernel.org/~tj/misc/slabh-sweep.py\n\nThe script does the followings.\n\n* Scan files for gfp and slab usages and update includes such that\n  only the necessary includes are there.  ie. if only gfp is used,\n  gfp.h, if slab is used, slab.h.\n\n* When the script inserts a new include, it looks at the include\n  blocks and try to put the new include such that its order conforms\n  to its surrounding.  It\u0027s put in the include block which contains\n  core kernel includes, in the same order that the rest are ordered -\n  alphabetical, Christmas tree, rev-Xmas-tree or at the end if there\n  doesn\u0027t seem to be any matching order.\n\n* If the script can\u0027t find a place to put a new include (mostly\n  because the file doesn\u0027t have fitting include block), it prints out\n  an error message indicating which .h file needs to be added to the\n  file.\n\nThe conversion was done in the following steps.\n\n1. The initial automatic conversion of all .c files updated slightly\n   over 4000 files, deleting around 700 includes and adding ~480 gfp.h\n   and ~3000 slab.h inclusions.  The script emitted errors for ~400\n   files.\n\n2. Each error was manually checked.  Some didn\u0027t need the inclusion,\n   some needed manual addition while adding it to implementation .h or\n   embedding .c file was more appropriate for others.  This step added\n   inclusions to around 150 files.\n\n3. The script was run again and the output was compared to the edits\n   from #2 to make sure no file was left behind.\n\n4. Several build tests were done and a couple of problems were fixed.\n   e.g. lib/decompress_*.c used malloc/free() wrappers around slab\n   APIs requiring slab.h to be added manually.\n\n5. The script was run on all .h files but without automatically\n   editing them as sprinkling gfp.h and slab.h inclusions around .h\n   files could easily lead to inclusion dependency hell.  Most gfp.h\n   inclusion directives were ignored as stuff from gfp.h was usually\n   wildly available and often used in preprocessor macros.  Each\n   slab.h inclusion directive was examined and added manually as\n   necessary.\n\n6. percpu.h was updated not to include slab.h.\n\n7. Build test were done on the following configurations and failures\n   were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my\n   distributed build env didn\u0027t work with gcov compiles) and a few\n   more options had to be turned off depending on archs to make things\n   build (like ipr on powerpc/64 which failed due to missing writeq).\n\n   * x86 and x86_64 UP and SMP allmodconfig and a custom test config.\n   * powerpc and powerpc64 SMP allmodconfig\n   * sparc and sparc64 SMP allmodconfig\n   * ia64 SMP allmodconfig\n   * s390 SMP allmodconfig\n   * alpha SMP allmodconfig\n   * um on x86_64 SMP allmodconfig\n\n8. percpu.h modifications were reverted so that it could be applied as\n   a separate patch and serve as bisection point.\n\nGiven the fact that I had only a couple of failures from tests on step\n6, I\u0027m fairly confident about the coverage of this conversion patch.\nIf there is a breakage, it\u0027s likely to be something in one of the arch\nheaders which should be easily discoverable easily on most builds of\nthe specific arch.\n\nSigned-off-by: Tejun Heo \u003ctj@kernel.org\u003e\nGuess-its-ok-by: Christoph Lameter \u003ccl@linux-foundation.org\u003e\nCc: Ingo Molnar \u003cmingo@redhat.com\u003e\nCc: Lee Schermerhorn \u003cLee.Schermerhorn@hp.com\u003e\n"
    },
    {
      "commit": "9b3a6549b2602ca30f58715a0071e29f9898cae9",
      "tree": "8709822f0018f55a7e542ca9c0755d99f5226b4f",
      "parents": [
        "2d30a1f6315b8940537e8e98882c6038fbac9ba5"
      ],
      "author": {
        "name": "Julia Lawall",
        "email": "julia@diku.dk",
        "time": "Wed Mar 10 15:20:42 2010 -0800"
      },
      "committer": {
        "name": "Linus Torvalds",
        "email": "torvalds@linux-foundation.org",
        "time": "Fri Mar 12 15:52:28 2010 -0800"
      },
      "message": "drivers/scsi/ses.c: eliminate double free\n\nThe few lines below the kfree of hdr_buf may go to the label err_free\nwhich will also free hdr_buf.  The most straightforward solution seems to\nbe to just move the kfree of hdr_buf after these gotos.\n\nA simplified version of the semantic match that finds this problem is as\nfollows: (http://coccinelle.lip6.fr/)\n\n// \u003csmpl\u003e\n@r@\nidentifier E;\nexpression E1;\niterator I;\nstatement S;\n@@\n\n*kfree(E);\n... when !\u003d E \u003d E1\n    when !\u003d I(E,...) S\n    when !\u003d \u0026E\n*kfree(E);\n// \u003c/smpl\u003e\n\nSigned-off-by: Julia Lawall \u003cjulia@diku.dk\u003e\nCc: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\nCc: \u003cstable@kernel.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n"
    },
    {
      "commit": "e3deec090558d5cb5ffdc574e5560f3ed9723394",
      "tree": "c76a5e26a3e08598ada0a2de34adcdf714aa7168",
      "parents": [
        "534ef056db8a8fb6b9d50188d88ed5d1fbc66673"
      ],
      "author": {
        "name": "James Bottomley",
        "email": "James.Bottomley@suse.de",
        "time": "Tue Nov 03 12:33:07 2009 -0600"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@suse.de",
        "time": "Mon Jan 18 10:48:05 2010 -0600"
      },
      "message": "[SCSI] eliminate potential kmalloc failure in scsi_get_vpd_page()\n\nThe best way to fix this is to eliminate the intenal kmalloc() and\nmake the caller allocate the required amount of storage.\n\nSigned-off-by: James Bottomley \u003cJames.Bottomley@suse.de\u003e\n"
    },
    {
      "commit": "21fab1d0595eacf781705ec3509012a28f298245",
      "tree": "825d307407b1705d79dc72f5e50a1bd339f7e356",
      "parents": [
        "43d8eb9cfd0aea93be32181c64e18191b69c211c"
      ],
      "author": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Sat Aug 01 00:43:59 2009 +0000"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@suse.de",
        "time": "Sat Aug 22 17:52:14 2009 -0500"
      },
      "message": "[SCSI] ses: update enclosure data on hot add\n\nNow that hot add works correctly, if a new device is added, we\u0027re still\noperating on stale enclosure data, so fix that by updating the enclosure\ndiagnostic pages when we get notified of a device hot add\n\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@suse.de\u003e\n"
    },
    {
      "commit": "43d8eb9cfd0aea93be32181c64e18191b69c211c",
      "tree": "76725fe2ea080cb26c7503dbab8226181de1aa04",
      "parents": [
        "163f52b6cf3a639df6a72c7937e0eb88b20f1ef3"
      ],
      "author": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Sat Aug 01 00:41:22 2009 +0000"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@suse.de",
        "time": "Sat Aug 22 17:52:13 2009 -0500"
      },
      "message": "[SCSI] ses: add support for enclosure component hot removal\n\nRight at the moment, hot removal of a device within an enclosure does\nnothing (because the intf_remove only copes with enclosure removal not\nwith component removal). Fix this by adding a function to remove the\ncomponent.  Also needed to fix the prototype of\nenclosure_remove_device, since we know the device we\u0027ve removed but\nnot the internal component number\n\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@suse.de\u003e\n"
    },
    {
      "commit": "163f52b6cf3a639df6a72c7937e0eb88b20f1ef3",
      "tree": "68991096e7ff15e31db28fb0d7bf2e87b1bd01c2",
      "parents": [
        "0124ca9d8ee58b3cd028a23cef2fe225fcfee3b8"
      ],
      "author": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Sat Aug 01 00:39:36 2009 +0000"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@suse.de",
        "time": "Sat Aug 22 17:52:13 2009 -0500"
      },
      "message": "[SCSI] ses: fix hotplug with multiple devices and expanders\n\nIn a situation either with expanders or with multiple enclosure\ndevices, hot add doesn\u0027t always work.  This is because we try to find\na single enclosure device attached to the host.  Fix this by looping\nover all enclosure devices attached to the host and also by making the\nfind loop recognise that the enclosure devices may be expander remote\n(i.e. not parented by the host).\n\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@suse.de\u003e\n"
    },
    {
      "commit": "e0aae1a53133f0d7833c8f358a0ccc7055fc5b28",
      "tree": "e0021895bdc382cc8489f529eb9baefcf9890a43",
      "parents": [
        "ebef264bd90abb8bcafe29e5ba5492da4f7d4492"
      ],
      "author": {
        "name": "Adrian Bunk",
        "email": "bunk@kernel.org",
        "time": "Wed Mar 04 12:06:05 2009 -0800"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Fri Apr 03 10:17:01 2009 -0500"
      },
      "message": "[SCSI] ses: #if 0 the unused ses_match_host()\n\nSigned-off-by: Adrian Bunk \u003cbunk@kernel.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    },
    {
      "commit": "b3f1f9aa082b2ab86dec4db3d8b1566af345387e",
      "tree": "9b02c81b2633002cb0503fc31c66e47c6345648a",
      "parents": [
        "3442f802a8169a0c18d411d95f0e71b9205ed607"
      ],
      "author": {
        "name": "Roel Kluin",
        "email": "roel.kluin@gmail.com",
        "time": "Tue Feb 17 16:59:24 2009 +0100"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Thu Mar 12 12:58:14 2009 -0500"
      },
      "message": "[SCSI] ses: code_set \u003d\u003d 1 is tested twice\n\nSigned-off-by: Roel Kluin \u003croel.kluin@gmail.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    },
    {
      "commit": "40c3460f3cad1672f22baadcdbe20b9b3200cc20",
      "tree": "24c7d3114f7637a8930581ed79c305068b36c4ee",
      "parents": [
        "881a256d84e658d14ca1c162fe56e9cbbb1cdd49"
      ],
      "author": {
        "name": "Matthew Wilcox",
        "email": "matthew@wil.cx",
        "time": "Wed Dec 31 12:11:17 2008 -0700"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Thu Mar 12 12:57:54 2009 -0500"
      },
      "message": "[SCSI] ses: Use new scsi VPD helper\n\nSES had its own code to retrieve VPD from devices; convert it to use the\nnew scsi_get_vpd_page helper.\n\nSigned-off-by: Matthew Wilcox \u003cwilly@linux.intel.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    },
    {
      "commit": "71610f55fa4db63dbf5385929a47c9fb2451f332",
      "tree": "b816672eef25e1436111e6c78053612bd22fb016",
      "parents": [
        "b58602a4bac012b5f4fc12fe6b46ab237b610d5d"
      ],
      "author": {
        "name": "Kay Sievers",
        "email": "kay.sievers@vrfy.org",
        "time": "Wed Dec 03 22:41:36 2008 +0100"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Fri Jan 02 10:22:16 2009 -0600"
      },
      "message": "[SCSI] struct device - replace bus_id with dev_name(), dev_set_name()\n\n[jejb: limit ioctl to returning 20 characters to avoid overrun\n       on long device names and add a few more conversions]\nSigned-off-by: Kay Sievers \u003ckay.sievers@vrfy.org\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@suse.de\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    },
    {
      "commit": "f4f4e47e4af6b02dd1c425b931c65d0165356e33",
      "tree": "1bca97ce56703d7a101674cf6bf0d28576cf7201",
      "parents": [
        "a528ab7a324f1dbb3598ae0ecd238ab7dd974294"
      ],
      "author": {
        "name": "FUJITA Tomonori",
        "email": "fujita.tomonori@lab.ntt.co.jp",
        "time": "Thu Dec 04 14:24:39 2008 +0900"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Mon Dec 29 11:24:24 2008 -0600"
      },
      "message": "[SCSI] add residual argument to scsi_execute and scsi_execute_req\n\nscsi_execute() and scsi_execute_req() discard the residual length\ninformation. Some callers need it. This adds residual argument\n(optional) to scsi_execute and scsi_execute_req.\n\nSigned-off-by: FUJITA Tomonori \u003cfujita.tomonori@lab.ntt.co.jp\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    },
    {
      "commit": "671a99c8eb2f1dde08ac5538d8cd912047c61ddf",
      "tree": "b02cba45dbe7a69a7c9c24aa815bd3e82fde7725",
      "parents": [
        "ad337591f4fd20de6a0ca03d6715267a5c1d2b16"
      ],
      "author": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Tue Jul 29 11:38:25 2008 -0500"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Wed Jul 30 10:21:56 2008 -0500"
      },
      "message": "[SCSI] ses: fix VPD inquiry overrun\n\nThere are a few kerneloops.org reports like this one:\n\nhttp://www.kerneloops.org/search.php?search\u003dses_match_to_enclosure\n\nThat seem to imply we\u0027re running off the end of the VPD inquiry data\n(although at 512 bytes, it should be long enough for just about\nanything).  we should be using correctly sized buffers anyway, so put\nthose in and hope this oops goes away.\n\nCc: Stable Tree \u003cstable@kernel.org\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    },
    {
      "commit": "c95e62ce8905aab62fed224eaaa9b8558a0ef652",
      "tree": "4cf1637e91495becc0bba2adc866bc8fed01c284",
      "parents": [
        "62786b9e81a2dbe9c073a2ade52d33a2627d6d85"
      ],
      "author": {
        "name": "Matthew Wilcox",
        "email": "matthew@wil.cx",
        "time": "Mon Jun 23 09:14:31 2008 -0600"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Tue Jun 24 12:02:27 2008 -0500"
      },
      "message": "[SCSI] ses: Fix timeout\n\nTimeouts are measured in jiffies, not in seconds.\n\nSigned-off-by: Matthew Wilcox \u003cwilly@linux.intel.com\u003e\nCc: Stable Tree \u003cstable@kernel.org\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    },
    {
      "commit": "ee959b00c335d7780136c5abda37809191fe52c3",
      "tree": "7775f3b274fd8caf5e7e5154fea89e96f2babd94",
      "parents": [
        "56d110e852b0b1c85ad6c9bfe1cb4473ceb16402"
      ],
      "author": {
        "name": "Tony Jones",
        "email": "tonyj@suse.de",
        "time": "Fri Feb 22 00:13:36 2008 +0100"
      },
      "committer": {
        "name": "Greg Kroah-Hartman",
        "email": "gregkh@suse.de",
        "time": "Sat Apr 19 19:10:33 2008 -0700"
      },
      "message": "SCSI: convert struct class_device to struct device\n\nIt\u0027s big, but there doesn\u0027t seem to be a way to split it up smaller...\n\nSigned-off-by: Tony Jones \u003ctonyj@suse.de\u003e\nSigned-off-by: Kay Sievers \u003ckay.sievers@vrfy.org\u003e\nCc: Roland Dreier \u003crolandd@cisco.com\u003e\nCc: Sean Hefty \u003csean.hefty@intel.com\u003e\nCc: Hal Rosenstock \u003chal.rosenstock@gmail.com\u003e\nCc: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@suse.de\u003e\n\n"
    },
    {
      "commit": "691b4773aa556d0975dbc25c93e6c8b839dad325",
      "tree": "a74b3d7c43ac2e8026fac59c0084ae3041076e1c",
      "parents": [
        "1309d4e68497184d2fd87e892ddf14076c2bda98"
      ],
      "author": {
        "name": "Yinghai Lu",
        "email": "Yinghai.Lu@Sun.COM",
        "time": "Wed Feb 13 16:25:16 2008 -0800"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Mon Feb 18 08:57:15 2008 -0600"
      },
      "message": "[SCSI] ses: fix data corruption\n\none system: initrd get courrupted:\n\nRAMDISK: Compressed image found at block 0\nRAMDISK: incomplete write (-28 !\u003d 2048) 134217728\ncrc error\nVFS: Mounted root (ext2 filesystem).\nFreeing unused kernel memory: 388k freed\ninit_special_inode: bogus i_mode (177777)\nWarning: unable to open an initial console.\ninit_special_inode: bogus i_mode (177777)\ninit_special_inode: bogus i_mode (177777)\nKernel panic - not syncing: No init found.  Try passing init\u003d option to kernel.\n\nbisected to\ncommit 9927c68864e9c39cc317b4f559309ba29e642168\nAuthor: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\nDate:   Sun Feb 3 15:48:56 2008 -0600\n\n    [SCSI] ses: add new Enclosure ULD\n\nchanges:\n1. change char to unsigned char to avoid type change later.\n2. preserve len for page1\n3. need to move desc_ptr even the entry is not enclosure_component_device/raid.\n   so keep desc_ptr on right position\n4. record page7 len, and double check if desc_ptr out of boundary before touch.\n5. fix typo in subenclosure checking: should use hdr_buf instead.\n\n[jejb: style fixes]\n\nSigned-off-by: Yinghai Lu \u003cyinghai.lu@sun.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    },
    {
      "commit": "7c46c20aef185c3782d28c5111dcf1df88bbab32",
      "tree": "0ecd0412d0493305d14f7fb702fc2e944ba13eed",
      "parents": [
        "95f6fb578970c9dbfcaa436ff98d2f3c6bdea953"
      ],
      "author": {
        "name": "Yinghai Lu",
        "email": "yinghai.lu@sun.com",
        "time": "Sun Feb 10 23:25:25 2008 -0800"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Mon Feb 11 11:00:48 2008 -0600"
      },
      "message": "[SCSI] ses: fix memory leaks\n\nfix leaking with scomp leaking when failing. Also free page10 on\ndriver removal and remove one extra space.\n\nSigned-off-by: Yinghai Lu \u003cyinghai.lu@sun.com\u003e\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    },
    {
      "commit": "9927c68864e9c39cc317b4f559309ba29e642168",
      "tree": "f2144329d6a41051b88e48fbfd056085d28a78b3",
      "parents": [
        "d569d5bb3fd96d2907acaddd7c4ea5cb07d02ab8"
      ],
      "author": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Sun Feb 03 15:48:56 2008 -0600"
      },
      "committer": {
        "name": "James Bottomley",
        "email": "James.Bottomley@HansenPartnership.com",
        "time": "Thu Feb 07 18:04:10 2008 -0600"
      },
      "message": "[SCSI] ses: add new Enclosure ULD\n\nThis adds support to SCSI for enclosure services devices. It also makes\nuse of the enclosure services added in an earlier patch to display the\nenclosure topology in sysfs.\n\nAt the moment, the enclosures are SAS specific, but if anyone actually\nhas a non-SAS enclosure that follows the SES-2 standard, we can add that\nas well.\n\nOn my Vitesse based system, the enclosures show up like this:\n\nsparkweed:~# ls -l /sys/class/enclosure/0\\:0\\:1\\:0/\ntotal 0\n-r--r--r-- 1 root root 4096 2008-02-03 15:44 components\nlrwxrwxrwx 1 root root    0 2008-02-03 15:44 device -\u003e ../../../devices/pci0000:01/0000:01:02.0/host0/port-0:0/expander-0:0/port-0:0:12/end_device-0:0:12/target0:0:1/0:0:1:0\ndrwxr-xr-x 2 root root    0 2008-02-03 15:44 SLOT 000\ndrwxr-xr-x 2 root root    0 2008-02-03 15:44 SLOT 001\ndrwxr-xr-x 2 root root    0 2008-02-03 15:44 SLOT 002\ndrwxr-xr-x 2 root root    0 2008-02-03 15:44 SLOT 003\ndrwxr-xr-x 2 root root    0 2008-02-03 15:44 SLOT 004\ndrwxr-xr-x 2 root root    0 2008-02-03 15:44 SLOT 005\nlrwxrwxrwx 1 root root    0 2008-02-03 15:44 subsystem -\u003e ../../enclosure\n--w------- 1 root root 4096 2008-02-03 15:44 uevent\n\nAnd the individual occupied slots like this:\n\nsparkweed:~# ls -l /sys/class/enclosure/0\\:0\\:1\\:0/SLOT\\ 001/\ntotal 0\n-rw-r--r-- 1 root root 4096 2008-02-03 15:45 active\nlrwxrwxrwx 1 root root    0 2008-02-03 15:45 device -\u003e ../../../../devices/pci0000:01/0000:01:02.0/host0/port-0:0/expander-0:0/port-0:0:11/end_device-0:0:11/target0:0:0/0:0:0:0\n-rw-r--r-- 1 root root 4096 2008-02-03 15:45 fault\n-rw-r--r-- 1 root root 4096 2008-02-03 15:45 locate\n-rw-r--r-- 1 root root 4096 2008-02-03 15:45 status\nlrwxrwxrwx 1 root root    0 2008-02-03 15:45 subsystem -\u003e ../../../enclosure_component\n-r--r--r-- 1 root root 4096 2008-02-03 15:45 type\n--w------- 1 root root 4096 2008-02-03 15:45 uevent\n\nYou can flash the various blinky lights by echoing to the fault and locate files.\n\n\u003eFrom the device\u0027s point of view, you can see it has an enclosure like this:\n\nsparkweed:~# ls /sys/class/scsi_disk/0\\:0\\:0\\:0/device/\nblock:sda                     generic        queue_depth          state\nbsg:0:0:0:0                   iocounterbits  queue_type           subsystem\nbus                           iodone_cnt     rescan               timeout\ndelete                        ioerr_cnt      rev                  type\ndevice_blocked                iorequest_cnt  scsi_device:0:0:0:0  uevent\ndriver                        modalias       scsi_disk:0:0:0:0    vendor\nenclosure_component:SLOT 001  model          scsi_generic:sg0\nevt_media_change              power          scsi_level\n\nNote the enclosure_component:SLOT 001 which shows where in the enclosure\nthis device fits.\n\nThe astute will notice that I\u0027m using SCSI VPD Inquiries to identify the\ndevices.  This, unfortunately, won\u0027t work for SATA devices unless we do\nsome really nasty hacking about on the SAT because the only think that\nknows the SAS addresses for SATA devices is libsas, not libata where the\nSAT resides.\n\nSigned-off-by: James Bottomley \u003cJames.Bottomley@HansenPartnership.com\u003e\n"
    }
  ]
}
