- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- patch for hdparm -> cciss support
Operating System - Linux
1822933
Members
3889
Online
109645
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2003 06:04 AM
03-05-2003 06:04 AM
patch for hdparm -> cciss support
I have created a patch for hdparm so that it can support the cciss driver.
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.
Please let me know what you think and if you have any suggestions.
Compaq Smart Array exposes disk like this
/dev/cciss/c0d0p1
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.
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.
[nocadmin@hispeed-ovo hdparm-5.3-cciss-patched]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p1 991928 387880 552848 42% /
/dev/cciss/c0d0p6 25515428 4512800 19685608 19% /home
none 127712 0 127712 0% /dev/shm
/dev/cciss/c0d0p2 4959856 3132004 1571832 67% /usr
/dev/cciss/c0d0p3 1983920 104360 1777152 6% /var
[nocadmin@server1 hdparm-5.3-cciss-patched]$ find /proc -name \*cciss\* 2>/dev/null
/proc/driver/cciss
/proc/driver/cciss/cciss0
[nocadmin@server1 hdparm-5.3-cciss-patched]$ more /proc/driver/cciss/cciss0
cciss0: Compaq Smart Array 5i Controller
Board ID: 0x40800e11
Firmware Version: 1.80
Memory Address: 0xd0839000
IRQ: 11
Logical drives: 1
Current Q depth: 0
Current # commands on controller 0
Max Q depth since init: 128
Max # commands on controller since init: 130
Max SG entries since init: 31
Sequential access devices: 0
cciss/c0d0: blkszQ2 nr_blocksq122560
nr_allocs 9024370
nr_frees 9024370
[nocadmin@server1 hdparm-5.3-cciss-patched]$ uname -a
Linux server1 2.4.18-3smp #1 SMP Thu Apr 18 07:27:31 EDT 2002 i686 unknown
[nocadmin@server1 hdparm-5.3-cciss-patched]$ more /etc/issue
Red Hat Linux release 7.3 (Valhalla)
Kernel \r on an \m
[nocadmin@server1 hdparm-5.3-cciss-patched]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[nocadmin@server1 hdparm-5.3-cciss-patched]$
[root@server1 hdparm-5.3-cciss-patched]# ./hdparm /dev/cciss/c0d0p1
/dev/cciss/c0d0p1:
readonly 0 (off)
geometry 716/255/32, sectors 048128, start 2
[root@server1 hdparm]# diff hdparm-5.3-cciss-patched/hdparm.c hdparm-5.3/hdparm.c
701,704d700
< #ifndef CCISS_MAJOR
< #define CCISS_MAJOR 104
< #endif
<
736,738d731
< #ifdef CCISS_MAJOR
< case (CCISS_MAJOR):
< #endif
[root@server1 hdparm]# diff -ruN hdparm-5.3 hdparm-5.3-cciss-patched > hdparm-5.3.diff
[root@server1 hdparm]# more hdparm-5.3.diff
diff -ruN hdparm-5.3/hdparm.c hdparm-5.3-cciss-patched/hdparm.c
--- hdparm-5.3/hdparm.c Sun Nov 24 17:52:19 2002
+++ hdparm-5.3-cciss-patched/hdparm.c Wed Feb 26 11:21:34 2003
@@ -698,6 +698,10 @@
#define VXVM_MAJOR 199
#endif
+#ifndef CCISS_MAJOR
+#define CCISS_MAJOR 104
+#endif
+
void process_dev (char *devname)
{
int fd;
@@ -729,6 +733,9 @@
#endif
case (VXVM_MAJOR):
case (LVM_BLK_MAJOR):
+#ifdef CCISS_MAJOR
+ case (CCISS_MAJOR):
+#endif
is_scsi_hd ;
break;
#ifdef XT_DISK_MAJOR
[root@server1 hdparm]#
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.
Please let me know what you think and if you have any suggestions.
Compaq Smart Array exposes disk like this
/dev/cciss/c0d0p1
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.
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.
[nocadmin@hispeed-ovo hdparm-5.3-cciss-patched]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p1 991928 387880 552848 42% /
/dev/cciss/c0d0p6 25515428 4512800 19685608 19% /home
none 127712 0 127712 0% /dev/shm
/dev/cciss/c0d0p2 4959856 3132004 1571832 67% /usr
/dev/cciss/c0d0p3 1983920 104360 1777152 6% /var
[nocadmin@server1 hdparm-5.3-cciss-patched]$ find /proc -name \*cciss\* 2>/dev/null
/proc/driver/cciss
/proc/driver/cciss/cciss0
[nocadmin@server1 hdparm-5.3-cciss-patched]$ more /proc/driver/cciss/cciss0
cciss0: Compaq Smart Array 5i Controller
Board ID: 0x40800e11
Firmware Version: 1.80
Memory Address: 0xd0839000
IRQ: 11
Logical drives: 1
Current Q depth: 0
Current # commands on controller 0
Max Q depth since init: 128
Max # commands on controller since init: 130
Max SG entries since init: 31
Sequential access devices: 0
cciss/c0d0: blkszQ2 nr_blocksq122560
nr_allocs 9024370
nr_frees 9024370
[nocadmin@server1 hdparm-5.3-cciss-patched]$ uname -a
Linux server1 2.4.18-3smp #1 SMP Thu Apr 18 07:27:31 EDT 2002 i686 unknown
[nocadmin@server1 hdparm-5.3-cciss-patched]$ more /etc/issue
Red Hat Linux release 7.3 (Valhalla)
Kernel \r on an \m
[nocadmin@server1 hdparm-5.3-cciss-patched]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[nocadmin@server1 hdparm-5.3-cciss-patched]$
[root@server1 hdparm-5.3-cciss-patched]# ./hdparm /dev/cciss/c0d0p1
/dev/cciss/c0d0p1:
readonly 0 (off)
geometry 716/255/32, sectors 048128, start 2
[root@server1 hdparm]# diff hdparm-5.3-cciss-patched/hdparm.c hdparm-5.3/hdparm.c
701,704d700
< #ifndef CCISS_MAJOR
< #define CCISS_MAJOR 104
< #endif
<
736,738d731
< #ifdef CCISS_MAJOR
< case (CCISS_MAJOR):
< #endif
[root@server1 hdparm]# diff -ruN hdparm-5.3 hdparm-5.3-cciss-patched > hdparm-5.3.diff
[root@server1 hdparm]# more hdparm-5.3.diff
diff -ruN hdparm-5.3/hdparm.c hdparm-5.3-cciss-patched/hdparm.c
--- hdparm-5.3/hdparm.c Sun Nov 24 17:52:19 2002
+++ hdparm-5.3-cciss-patched/hdparm.c Wed Feb 26 11:21:34 2003
@@ -698,6 +698,10 @@
#define VXVM_MAJOR 199
#endif
+#ifndef CCISS_MAJOR
+#define CCISS_MAJOR 104
+#endif
+
void process_dev (char *devname)
{
int fd;
@@ -729,6 +733,9 @@
#endif
case (VXVM_MAJOR):
case (LVM_BLK_MAJOR):
+#ifdef CCISS_MAJOR
+ case (CCISS_MAJOR):
+#endif
is_scsi_hd ;
break;
#ifdef XT_DISK_MAJOR
[root@server1 hdparm]#
fall down seven time stand up eight
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2003 06:31 AM
12-11-2003 06:31 AM
Re: patch for hdparm -> cciss support
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.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP