r2730 - in trunk: BOOK BOOK/general/sysutils BOOK/introduction/welcome patches

randy at linuxfromscratch.org randy at linuxfromscratch.org
Thu Sep 9 22:28:07 PDT 2004


Author: randy
Date: 2004-09-09 23:28:04 -0600 (Thu, 09 Sep 2004)
New Revision: 2730

Removed:
   trunk/patches/hdparm-5.5-glibc_CVS-1.patch
Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/general/sysutils/hdparm.xml
   trunk/BOOK/introduction/welcome/changelog.xml
Log:
Updated to hdparm-5.7

Modified: trunk/BOOK/general/sysutils/hdparm.xml
===================================================================
--- trunk/BOOK/general/sysutils/hdparm.xml	2004-09-09 16:10:10 UTC (rev 2729)
+++ trunk/BOOK/general/sysutils/hdparm.xml	2004-09-10 05:28:04 UTC (rev 2730)
@@ -6,10 +6,9 @@
 
 <!ENTITY hdparm-download-http "http://www.ibiblio.org/pub/Linux/system/hardware/hdparm-&hdparm-version;.tar.gz">
 <!ENTITY hdparm-download-ftp " ">
-<!ENTITY hdparm-size "33 KB">
+<!ENTITY hdparm-size "37 KB">
 <!ENTITY hdparm-buildsize "257 KB">
 <!ENTITY hdparm-time "0.01 SBU">
-
 ]>
 
 <sect1 id="hdparm" xreflabel="hdparm-&hdparm-version;">
@@ -22,18 +21,18 @@
 
 <sect2>
 <title>Introduction to <application>hdparm</application></title>
-                                                                               
+
 <para>The <application>hdparm</application> package contains a
-utility that is useful for controlling <acronym>ATA</acronym>/<acronym>IDE
-</acronym> controllers and hard drives both to increase
+utility that is useful for controlling <acronym>ATA</acronym>/ 
+<acronym>IDE</acronym> controllers and hard drives both to increase
 performance and sometimes to increase stability.</para>
-                                                                               
+
 <warning><para>As well as being useful, incorrect usage of
 <application>hdparm</application> can destroy your information and in
 rare cases, drives. Use with caution and make sure you know what you are
 doing. If in doubt, we recommend you leave the default kernel parameters
 alone.</para></warning>
-                                                                               
+
 <sect3><title>Package information</title>
 <itemizedlist spacing='compact'>
 <listitem><para>Download (HTTP): <ulink url="&hdparm-download-http;"/></para></listitem>
@@ -42,54 +41,56 @@
 <listitem><para>Estimated Disk space required: &hdparm-buildsize;</para></listitem>
 <listitem><para>Estimated build time: &hdparm-time;</para></listitem></itemizedlist>
 </sect3>
-                                                                               
-<sect3><title>Additional downloads</title>
+
+<!-- <sect3><title>Additional downloads</title>
 <itemizedlist spacing='compact'>
 <listitem><para>Required Patch: <ulink
 url="&patch-root;/hdparm-&hdparm-version;-glibc_CVS-1.patch"/></para></listitem>
-</itemizedlist></sect3>
-                                                                               
+</itemizedlist></sect3> -->
+
 </sect2>
 
 <sect2>
 <title>Installation of <application>hdparm</application></title>
-                                                                               
-<para>First apply the required patch:</para>
-                                                                               
-<screen><userinput><command>patch -Np1 -i ../hdparm-&hdparm-version;-glibc_CVS-1.patch</command></userinput></screen>
-                                                                               
-<para>Install <application>hdparm</application> by running the following commands:</para>
-                                                                               
+
+<!-- <para>First apply the required patch:</para>
+
+<screen><userinput><command>patch -Np1 -i ../hdparm-&hdparm-version;-glibc_CVS-1.patch</command></userinput></screen> -->
+
+<para>Install <application>hdparm</application> by running the following 
+commands:</para>
+
 <screen><userinput><command>make &&
 make install</command></userinput></screen>
-                                                                               
+
 <para>Note that by default, <command>hdparm</command> is installed in
 <filename class="directory">/sbin</filename> as some systems may require it
 during the boot process before <filename class="directory">/usr</filename>
 is mounted.  If you wish to install <command>hdparm</command> under the
 <filename class="directory">/usr</filename> hierarchy, then replace the above
 commands with the following:</para>
-                                                                               
+
 <screen><userinput><command>make &&
 make binprefix=/usr install</command></userinput></screen>
-                                                                               
+
 </sect2>
 
 <sect2>
 <title>Contents</title>
-                                                                               
-<para>The <application>hdparm</application> package contains <command>hdparm</command>.</para>
-                                                                               
+
+<para>The <application>hdparm</application> package contains 
+<command>hdparm</command>.</para>
+
 </sect2>
-                                                                               
+
 <sect2><title>Description</title>
-                                                                               
+
 <sect3><title>hdparm</title>
-<para><command>hdparm</command> provides a command-line interface to various hard disk
-ioctls supported by the stock Linux
+<para><command>hdparm</command> provides a command-line interface to various 
+hard disk ioctls supported by the stock Linux
 <acronym>ATA</acronym>/<acronym>IDE</acronym> device driver
 subsystem.</para></sect3>
-                                                                               
+
 </sect2>
 
 </sect1>

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2004-09-09 16:10:10 UTC (rev 2729)
+++ trunk/BOOK/general.ent	2004-09-10 05:28:04 UTC (rev 2730)
@@ -1,4 +1,4 @@
-<!ENTITY day          "09">
+<!ENTITY day          "10">
 <!ENTITY month        "09">
 <!ENTITY year         "2004">
 <!ENTITY version      "svn-&year;&month;&day;">
@@ -101,7 +101,7 @@
 <!-- Chapter 11 -->                  
 <!ENTITY gpm-version                  "1.20.1">
 <!ENTITY fcron-version                "2.9.4">
-<!ENTITY hdparm-version               "5.5">
+<!ENTITY hdparm-version               "5.7">
 <!ENTITY which-version                "2.16">
 <!ENTITY unzip-version                "5.51">
 <!ENTITY zip-version                  "2.3">

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2004-09-09 16:10:10 UTC (rev 2729)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2004-09-10 05:28:04 UTC (rev 2730)
@@ -22,6 +22,9 @@
 
 <itemizedlist>
 
+<listitem><para>September 10th, 2004 [randy]: Updated to 
+hdparm-5.7.</para></listitem>
+
 <listitem><para>September 9th, 2004 [randy]: Updated gcc patch 
 in SVGAlib instructions.</para></listitem>
 

Deleted: trunk/patches/hdparm-5.5-glibc_CVS-1.patch
===================================================================
--- trunk/patches/hdparm-5.5-glibc_CVS-1.patch	2004-09-09 16:10:10 UTC (rev 2729)
+++ trunk/patches/hdparm-5.5-glibc_CVS-1.patch	2004-09-10 05:28:04 UTC (rev 2730)
@@ -1,70 +0,0 @@
-Submitted By: Ken Moffat <ken at kenmoffat.uklinux.net>
-Date: 2004-02-12
-Initial Package Version: 5.5
-Origin: NA
-Upstream Status: Mark Lord say he'll rename it to fsreadahead for 5.6.
-Description: fixes compilation with glibc dated after mid January 2004. 
-
-gcc-CVS from some time in January has started putting a readahead hint for
-the kernel at the end of include/fs/bits.h  Detected in testing on ppc, I
-assume other architectures will do the same.  
-
- This stops hdparm compiling because fsreadahead is changing from external
-to static..  A simple rename of the readahead variable will do, but that's
-obviously an aesthetic issue.  After mailing the maintainer, he's going to
-rename it to fsreadahead, this is my interpretation of how he'll do it.
-
- Tested, at least as far as compiling and checking that ./hdparm -a returns
-the expected value.  
-
-$LastChangedBy$
-$Date$
-
-diff -u hdparm-5.5/hdparm.c hdparm-5.5-renamed/hdparm.c
---- hdparm-5.5/hdparm.c	2004-01-27 17:01:37.000000000 +0000
-+++ hdparm-5.5-renamed/hdparm.c	2004-02-12 15:04:29.000000000 +0000
-@@ -52,7 +52,7 @@
- static int flagcount = 0, do_flush = 0, is_scsi_hd = 0, is_scsi_cd = 0, is_xt_hd = 0;
- static int do_ctimings, do_timings = 0;
- 
--static unsigned long set_readahead= 0, get_readahead= 0, readahead= 0;     
-+static unsigned long set_fsreadahead= 0, get_fsreadahead= 0, fsreadahead= 0;     
- static unsigned long set_readonly = 0, get_readonly = 0, readonly = 0;
- static unsigned long set_unmask   = 0, get_unmask   = 0, unmask   = 0;     
- static unsigned long set_mult     = 0, get_mult     = 0, mult     = 0;     
-@@ -782,10 +782,10 @@
- 	if (!quiet)
- 		printf("\n%s:\n", devname);
- 
--	if (set_readahead) {
--		if (get_readahead)
--			printf(" setting fs readahead to %ld\n", readahead);
--		if (ioctl(fd, BLKRASET, readahead)) 
-+	if (set_fsreadahead) {
-+		if (get_fsreadahead)
-+			printf(" setting fs readahead to %ld\n", fsreadahead);
-+		if (ioctl(fd, BLKRASET, fsreadahead)) 
- 			perror(" BLKRASET failed");
- 	}
- #ifdef HDIO_UNREGISTER_HWIF
-@@ -1200,7 +1200,7 @@
- 			on_off(parm);
- 		}
- 	}
--	if ((verbose && !is_scsi_hd) || get_readahead) {
-+	if ((verbose && !is_scsi_hd) || get_fsreadahead) {
- 		if (ioctl(fd, BLKRAGET, &parm))
- 			perror(" BLKRAGET failed");
- 		else {
-@@ -1827,9 +1827,9 @@
- 
- #endif /* HDIO_TRISTATE_HWIF */
- 					case 'a':
--						get_readahead = noisy;
-+						get_fsreadahead = noisy;
- 						noisy = 1;
--						GET_NUMBER(set_readahead,readahead);
-+						GET_NUMBER(set_fsreadahead,fsreadahead);
- 						break;
- 					case 'B':
- 						get_apmmode = noisy;




More information about the blfs-book mailing list