Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37866186
en ru br
Репозитории ALT
S:9.62-alt1
D:8.7-alt0.1
5.1: 9.33-alt1
4.1: 7.7-alt1
4.0: 7.7-alt1
3.0: 5.8-alt1
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: hdparm

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: hdparm-7.7-alt1.patch
Скачать


 Makefile  |    5 ++---
 sysconfig |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index e148e2f..11cd406 100644
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,9 @@ ifndef CC
 CC = gcc
 endif
 
-CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)
+CFLAGS := -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(RPM_OPT_FLAGS)
 
-LDFLAGS = -s
+LDFLAGS =
 INSTALL = install
 INSTALL_DATA = $(INSTALL) -m 644
 INSTALL_DIR = $(INSTALL) -m 755 -d
@@ -28,7 +28,6 @@ all: hdparm
 
 hdparm: hdparm.h $(OBJS)
 	$(CC) $(LDFLAGS) -o hdparm $(OBJS)
-	strip hdparm
  
 install: all hdparm.8
 	if [ ! -z $(DESTDIR) ]; then $(INSTALL_DIR) $(DESTDIR) ; fi
diff --git a/sysconfig b/sysconfig
new file mode 100644
index 0000000..6d75132
--- /dev/null
+++ b/sysconfig
@@ -0,0 +1,36 @@
+# These options are used to tune the hard drives -
+# read the hdparm man page for more information
+
+# Set this to 1 to enable DMA. This might cause some 
+# data corruption on certain chipset / hard drive
+# combinations. This is used with the "-d" option
+
+# USE_DMA=1
+
+# Multiple sector I/O. a feature of most modern IDE hard drives,
+# permitting the transfer of multiple sectors per I/O interrupt,
+# rather than the usual one sector per interrupt.  When this feature
+# is enabled, it typically reduces operating system overhead for disk
+# I/O by 30-50%.  On many systems, it also provides increased data
+# throughput of anywhere from 5% to 50%.  Some drives, however (most
+# notably the WD Caviar series), seem to run slower with multiple mode
+# enabled. Under rare circumstances, such failures can result in
+# massive filesystem corruption. USE WITH CAUTION AND BACKUP.
+# This is the sector count for multiple sector I/O - the "-m" option
+#
+# MULTIPLE_IO=16
+
+# (E)IDE 32-bit I/O support (to interface card)
+#
+# EIDE_32BIT=3
+
+# Enable drive read-lookahead
+#
+# LOOKAHEAD=1
+
+# Add extra parameters here if wanted
+# On reasonably new hardware, you may want to try -X66, -X67 or -X68
+# Other flags you might want to experiment with are -u1, -a and -m
+# See the hdparm manpage (man hdparm) for details and more options.
+#
+EXTRA_PARAMS=
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin