<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic patch for hdparm -&amp;gt; cciss support in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/patch-for-hdparm-gt-cciss-support/m-p/2919727#M72801</link>
    <description>I have created a patch for hdparm so that it can support the cciss driver.&lt;BR /&gt;&lt;BR /&gt;I wanted to submit it to you for review and pointers. I would like to learn about the testing process that you go through, maybe I can make my change better. I have already submitted this to Mark Lord Who is the project owner for hdparm at freshmeat.net.&lt;BR /&gt;Please let me know what you think and if you have any suggestions.&lt;BR /&gt;&lt;BR /&gt;Compaq Smart Array exposes disk like this&lt;BR /&gt;&lt;BR /&gt;/dev/cciss/c0d0p1&lt;BR /&gt;&lt;BR /&gt;For all intents and purposes I believe we can treat this as a scsi disk. As such I have altered hdparm to support it. Here are my notes.&lt;BR /&gt;&lt;BR /&gt;If you need more (for example if you have some sort of test suite I could use to test the change) please let me know.&lt;BR /&gt;&lt;BR /&gt;[nocadmin@hispeed-ovo hdparm-5.3-cciss-patched]$ df&lt;BR /&gt;Filesystem           1k-blocks      Used Available Use% Mounted on&lt;BR /&gt;/dev/cciss/c0d0p1       991928    387880    552848  42% /&lt;BR /&gt;/dev/cciss/c0d0p6     25515428   4512800  19685608  19% /home&lt;BR /&gt;none                    127712         0    127712   0% /dev/shm&lt;BR /&gt;/dev/cciss/c0d0p2      4959856   3132004   1571832  67% /usr&lt;BR /&gt;/dev/cciss/c0d0p3      1983920    104360   1777152   6% /var&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ find /proc -name \*cciss\* 2&amp;gt;/dev/null&lt;BR /&gt;/proc/driver/cciss&lt;BR /&gt;/proc/driver/cciss/cciss0&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ more /proc/driver/cciss/cciss0&lt;BR /&gt;cciss0:  Compaq Smart Array 5i Controller&lt;BR /&gt;       Board ID: 0x40800e11&lt;BR /&gt;       Firmware Version: 1.80&lt;BR /&gt;       Memory Address: 0xd0839000&lt;BR /&gt;       IRQ: 11&lt;BR /&gt;       Logical drives: 1&lt;BR /&gt;       Current Q depth: 0&lt;BR /&gt;       Current # commands on controller 0&lt;BR /&gt;       Max Q depth since init: 128&lt;BR /&gt;       Max # commands on controller since init: 130&lt;BR /&gt;       Max SG entries since init: 31&lt;BR /&gt;       Sequential access devices: 0&lt;BR /&gt;&lt;BR /&gt;cciss/c0d0: blkszQ2 nr_blocksq122560&lt;BR /&gt;nr_allocs 9024370&lt;BR /&gt;nr_frees 9024370&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ uname -a&lt;BR /&gt;Linux server1 2.4.18-3smp #1 SMP Thu Apr 18 07:27:31 EDT 2002 i686 unknown&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ more /etc/issue&lt;BR /&gt;Red Hat Linux release 7.3 (Valhalla)&lt;BR /&gt;Kernel \r on an \m&lt;BR /&gt;&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ gcc -v&lt;BR /&gt;Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs&lt;BR /&gt;gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$&lt;BR /&gt;&lt;BR /&gt;[root@server1 hdparm-5.3-cciss-patched]# ./hdparm /dev/cciss/c0d0p1&lt;BR /&gt;&lt;BR /&gt;/dev/cciss/c0d0p1:&lt;BR /&gt; readonly     0 (off)&lt;BR /&gt; geometry     716/255/32, sectors 048128, start 2&lt;BR /&gt;[root@server1 hdparm]# diff hdparm-5.3-cciss-patched/hdparm.c hdparm-5.3/hdparm.c&lt;BR /&gt;701,704d700&lt;BR /&gt;&amp;lt; #ifndef CCISS_MAJOR&lt;BR /&gt;&amp;lt; #define CCISS_MAJOR 104&lt;BR /&gt;&amp;lt; #endif&lt;BR /&gt;&amp;lt;&lt;BR /&gt;736,738d731&lt;BR /&gt;&amp;lt; #ifdef CCISS_MAJOR&lt;BR /&gt;&amp;lt;       case (CCISS_MAJOR):&lt;BR /&gt;&amp;lt; #endif&lt;BR /&gt;[root@server1 hdparm]# diff -ruN hdparm-5.3 hdparm-5.3-cciss-patched &amp;gt; hdparm-5.3.diff&lt;BR /&gt;[root@server1 hdparm]# more hdparm-5.3.diff&lt;BR /&gt;diff -ruN hdparm-5.3/hdparm.c hdparm-5.3-cciss-patched/hdparm.c&lt;BR /&gt;--- hdparm-5.3/hdparm.c Sun Nov 24 17:52:19 2002&lt;BR /&gt;+++ hdparm-5.3-cciss-patched/hdparm.c   Wed Feb 26 11:21:34 2003&lt;BR /&gt;@@ -698,6 +698,10 @@&lt;BR /&gt; #define VXVM_MAJOR 199&lt;BR /&gt; #endif&lt;BR /&gt;&lt;BR /&gt;+#ifndef CCISS_MAJOR&lt;BR /&gt;+#define CCISS_MAJOR 104&lt;BR /&gt;+#endif&lt;BR /&gt;+&lt;BR /&gt; void process_dev (char *devname)&lt;BR /&gt; {&lt;BR /&gt;        int fd;&lt;BR /&gt;@@ -729,6 +733,9 @@&lt;BR /&gt; #endif&lt;BR /&gt;        case (VXVM_MAJOR):&lt;BR /&gt;        case (LVM_BLK_MAJOR):&lt;BR /&gt;+#ifdef CCISS_MAJOR&lt;BR /&gt;+       case (CCISS_MAJOR):&lt;BR /&gt;+#endif&lt;BR /&gt;                is_scsi_hd ;&lt;BR /&gt;                break;&lt;BR /&gt; #ifdef XT_DISK_MAJOR&lt;BR /&gt;[root@server1 hdparm]#&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Mar 2003 14:04:41 GMT</pubDate>
    <dc:creator>david_69</dc:creator>
    <dc:date>2003-03-05T14:04:41Z</dc:date>
    <item>
      <title>patch for hdparm -&gt; cciss support</title>
      <link>https://community.hpe.com/t5/operating-system-linux/patch-for-hdparm-gt-cciss-support/m-p/2919727#M72801</link>
      <description>I have created a patch for hdparm so that it can support the cciss driver.&lt;BR /&gt;&lt;BR /&gt;I wanted to submit it to you for review and pointers. I would like to learn about the testing process that you go through, maybe I can make my change better. I have already submitted this to Mark Lord Who is the project owner for hdparm at freshmeat.net.&lt;BR /&gt;Please let me know what you think and if you have any suggestions.&lt;BR /&gt;&lt;BR /&gt;Compaq Smart Array exposes disk like this&lt;BR /&gt;&lt;BR /&gt;/dev/cciss/c0d0p1&lt;BR /&gt;&lt;BR /&gt;For all intents and purposes I believe we can treat this as a scsi disk. As such I have altered hdparm to support it. Here are my notes.&lt;BR /&gt;&lt;BR /&gt;If you need more (for example if you have some sort of test suite I could use to test the change) please let me know.&lt;BR /&gt;&lt;BR /&gt;[nocadmin@hispeed-ovo hdparm-5.3-cciss-patched]$ df&lt;BR /&gt;Filesystem           1k-blocks      Used Available Use% Mounted on&lt;BR /&gt;/dev/cciss/c0d0p1       991928    387880    552848  42% /&lt;BR /&gt;/dev/cciss/c0d0p6     25515428   4512800  19685608  19% /home&lt;BR /&gt;none                    127712         0    127712   0% /dev/shm&lt;BR /&gt;/dev/cciss/c0d0p2      4959856   3132004   1571832  67% /usr&lt;BR /&gt;/dev/cciss/c0d0p3      1983920    104360   1777152   6% /var&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ find /proc -name \*cciss\* 2&amp;gt;/dev/null&lt;BR /&gt;/proc/driver/cciss&lt;BR /&gt;/proc/driver/cciss/cciss0&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ more /proc/driver/cciss/cciss0&lt;BR /&gt;cciss0:  Compaq Smart Array 5i Controller&lt;BR /&gt;       Board ID: 0x40800e11&lt;BR /&gt;       Firmware Version: 1.80&lt;BR /&gt;       Memory Address: 0xd0839000&lt;BR /&gt;       IRQ: 11&lt;BR /&gt;       Logical drives: 1&lt;BR /&gt;       Current Q depth: 0&lt;BR /&gt;       Current # commands on controller 0&lt;BR /&gt;       Max Q depth since init: 128&lt;BR /&gt;       Max # commands on controller since init: 130&lt;BR /&gt;       Max SG entries since init: 31&lt;BR /&gt;       Sequential access devices: 0&lt;BR /&gt;&lt;BR /&gt;cciss/c0d0: blkszQ2 nr_blocksq122560&lt;BR /&gt;nr_allocs 9024370&lt;BR /&gt;nr_frees 9024370&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ uname -a&lt;BR /&gt;Linux server1 2.4.18-3smp #1 SMP Thu Apr 18 07:27:31 EDT 2002 i686 unknown&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ more /etc/issue&lt;BR /&gt;Red Hat Linux release 7.3 (Valhalla)&lt;BR /&gt;Kernel \r on an \m&lt;BR /&gt;&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$ gcc -v&lt;BR /&gt;Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs&lt;BR /&gt;gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)&lt;BR /&gt;[nocadmin@server1 hdparm-5.3-cciss-patched]$&lt;BR /&gt;&lt;BR /&gt;[root@server1 hdparm-5.3-cciss-patched]# ./hdparm /dev/cciss/c0d0p1&lt;BR /&gt;&lt;BR /&gt;/dev/cciss/c0d0p1:&lt;BR /&gt; readonly     0 (off)&lt;BR /&gt; geometry     716/255/32, sectors 048128, start 2&lt;BR /&gt;[root@server1 hdparm]# diff hdparm-5.3-cciss-patched/hdparm.c hdparm-5.3/hdparm.c&lt;BR /&gt;701,704d700&lt;BR /&gt;&amp;lt; #ifndef CCISS_MAJOR&lt;BR /&gt;&amp;lt; #define CCISS_MAJOR 104&lt;BR /&gt;&amp;lt; #endif&lt;BR /&gt;&amp;lt;&lt;BR /&gt;736,738d731&lt;BR /&gt;&amp;lt; #ifdef CCISS_MAJOR&lt;BR /&gt;&amp;lt;       case (CCISS_MAJOR):&lt;BR /&gt;&amp;lt; #endif&lt;BR /&gt;[root@server1 hdparm]# diff -ruN hdparm-5.3 hdparm-5.3-cciss-patched &amp;gt; hdparm-5.3.diff&lt;BR /&gt;[root@server1 hdparm]# more hdparm-5.3.diff&lt;BR /&gt;diff -ruN hdparm-5.3/hdparm.c hdparm-5.3-cciss-patched/hdparm.c&lt;BR /&gt;--- hdparm-5.3/hdparm.c Sun Nov 24 17:52:19 2002&lt;BR /&gt;+++ hdparm-5.3-cciss-patched/hdparm.c   Wed Feb 26 11:21:34 2003&lt;BR /&gt;@@ -698,6 +698,10 @@&lt;BR /&gt; #define VXVM_MAJOR 199&lt;BR /&gt; #endif&lt;BR /&gt;&lt;BR /&gt;+#ifndef CCISS_MAJOR&lt;BR /&gt;+#define CCISS_MAJOR 104&lt;BR /&gt;+#endif&lt;BR /&gt;+&lt;BR /&gt; void process_dev (char *devname)&lt;BR /&gt; {&lt;BR /&gt;        int fd;&lt;BR /&gt;@@ -729,6 +733,9 @@&lt;BR /&gt; #endif&lt;BR /&gt;        case (VXVM_MAJOR):&lt;BR /&gt;        case (LVM_BLK_MAJOR):&lt;BR /&gt;+#ifdef CCISS_MAJOR&lt;BR /&gt;+       case (CCISS_MAJOR):&lt;BR /&gt;+#endif&lt;BR /&gt;                is_scsi_hd ;&lt;BR /&gt;                break;&lt;BR /&gt; #ifdef XT_DISK_MAJOR&lt;BR /&gt;[root@server1 hdparm]#&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Mar 2003 14:04:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/patch-for-hdparm-gt-cciss-support/m-p/2919727#M72801</guid>
      <dc:creator>david_69</dc:creator>
      <dc:date>2003-03-05T14:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: patch for hdparm -&gt; cciss support</title>
      <link>https://community.hpe.com/t5/operating-system-linux/patch-for-hdparm-gt-cciss-support/m-p/2919728#M72802</link>
      <description>I'm a bit confused as to where you entered the previous code and how you patched hdparm.  I'm desperately trying to get hdparm to work with my cciss controller.  Any help that you can give would be appreciated.</description>
      <pubDate>Thu, 11 Dec 2003 14:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/patch-for-hdparm-gt-cciss-support/m-p/2919728#M72802</guid>
      <dc:creator>Eric Becker</dc:creator>
      <dc:date>2003-12-11T14:31:26Z</dc:date>
    </item>
  </channel>
</rss>

