Hello community, here is the log from the commit of package hdparm checked in at Fri Jun 8 02:03:57 CEST 2007. -------- --- hdparm/hdparm.changes 2007-06-01 01:10:35.000000000 +0200 +++ /mounts/work_src_done/STABLE/hdparm/hdparm.changes 2007-06-08 00:51:28.774170000 +0200 @@ -1,0 +2,6 @@ +Fri Jun 8 00:51:18 CEST 2007 - ro@suse.de + +- update to 7.5 + - beef up warnings for -s1 flag, as people seem to be ignoring them + +------------------------------------------------------------------- Old: ---- hdparm-7.4.tar.bz2 New: ---- hdparm-7.5.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hdparm.spec ++++++ --- /var/tmp/diff_new_pack.w26928/_old 2007-06-08 02:01:47.000000000 +0200 +++ /var/tmp/diff_new_pack.w26928/_new 2007-06-08 02:01:47.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package hdparm (Version 7.4) +# spec file for package hdparm (Version 7.5) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -16,7 +16,7 @@ PreReq: %insserv_prereq %fillup_prereq coreutils Provides: base:/sbin/hdparm Autoreqprov: on -Version: 7.4 +Version: 7.5 Release: 1 Summary: A Program to Get and Set Hard Disk Parameters Source: hdparm-%{version}.tar.bz2 @@ -114,6 +114,9 @@ /var/adm/fillup-templates/sysconfig.ide %changelog +* Fri Jun 08 2007 - ro@suse.de +- update to 7.5 + - beef up warnings for -s1 flag, as people seem to be ignoring them * Fri Jun 01 2007 - ro@suse.de - update to 7.4 - ignore ENOTTY response from DRIVE_CMD(NULL) ++++++ hdparm-7.4.tar.bz2 -> hdparm-7.5.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-7.4/Changelog new/hdparm-7.5/Changelog --- old/hdparm-7.4/Changelog 2007-06-01 00:11:07.000000000 +0200 +++ new/hdparm-7.5/Changelog 2007-06-06 21:51:06.000000000 +0200 @@ -1,3 +1,5 @@ +hdparm-7.5 + - beef up warnings for -s1 flag, as people seem to be ignoring them hdparm-7.4 - ignore ENOTTY response from DRIVE_CMD(NULL) - decode CFA advanced timing information diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-7.4/hdparm.8 new/hdparm-7.5/hdparm.8 --- old/hdparm-7.4/hdparm.8 2007-06-01 00:14:23.000000000 +0200 +++ new/hdparm-7.5/hdparm.8 2007-06-06 21:51:20.000000000 +0200 @@ -1,4 +1,4 @@ -.TH HDPARM 8 "June 2007" "Version 7.4" +.TH HDPARM 8 "June 2007" "Version 7.5" .SH NAME hdparm \- get/set hard disk parameters @@ -311,21 +311,28 @@ Get/set read-only flag for the device. When set, Linux disallows write operations on the device. .TP .I -R -Register an IDE interface. -.B Dangerous. +Register an IDE interface +.B (DANGEROUS). See the .B -U option for more information. .TP .I -s Enable/disable the power-on in standby feature, if supported by -the drive. If enabled, the drive is powered-up in the +the drive. +.B VERY DANGEROUS. +Do not use unless you are absolutely certain +that both the system BIOS (or firmware) and the operating system kernel +(Linux >= 2.6.22) support probing for drives that use this feature. +When enabled, the drive is powered-up in the .B standby -mode to allow the controller to sequence the spin-up of devices. +mode to allow the controller to sequence the spin-up of devices, +reducing the instantaneous current draw burden when many drives +share a power supply. Primarily for use in large RAID setups. This feature is usually disabled and the drive is powered-up in the .B active mode (see -C above). -Note that a drive may also allow to enable this feature by a jumper. +Note that a drive may also allow enabling this feature by a jumper. Some SATA drives support the control of this feature by pin 11 of the SATA power connector. In these cases, this command may be unsupported or may have no effect. @@ -408,8 +415,8 @@ provides a safe fix for the problem for use with earlier kernels. .TP .I -U -Un-register an IDE interface. -.B Dangerous. +Un-register an IDE interface +.B (DANGEROUS). The companion for the .B -R option. @@ -429,7 +436,9 @@ Display extra diagnostics from some commands. .TP .I -w -Perform a device reset (DANGEROUS). Do NOT use this option. +Perform a device reset +.B (DANGEROUS). +Do NOT use this option. It exists for unlikely situations where a reboot might otherwise be required to get a confused drive back into a useable state. .TP @@ -437,7 +446,8 @@ Get/set the IDE/SATA drive\'s write-caching feature. .TP .I -x -Tristate device for hotswap (DANGEROUS). +Tristate device for hotswap +.B (DANGEROUS). .TP .I -X Set the IDE transfer mode for newer (E)IDE/ATA drives. @@ -509,8 +519,9 @@ .TP .SH ATA Security Feature Set .PP -These switches are DANGEROUS to experiment with, and might not work with every -kernel. +These switches are +.B DANGEROUS +to experiment with, and might not work with every kernel. .B USE AT YOUR OWN RISK. .TP .I --security-help @@ -529,7 +540,8 @@ .B THIS FEATURE IS EXPERIMENTAL AND NOT WELL TESTED. USE AT YOUR OWN RISK. .TP .I --security-set-pass PWD -Lock the drive, using password PWD (Set Password) (DANGEROUS). +Lock the drive, using password PWD (Set Password) +.B (DANGEROUS). Password is given as an ASCII string and is padded with NULs to reach 32 bytes. The applicable drive password is selected with the --user-master switch and the applicable security mode with the --security-mode switch. @@ -542,13 +554,15 @@ .B THIS FEATURE IS EXPERIMENTAL AND NOT WELL TESTED. USE AT YOUR OWN RISK. .TP .I --security-erase PWD -Erase (locked) drive, using password PWD (DANGEROUS). +Erase (locked) drive, using password PWD +.B (DANGEROUS). Password is given as an ASCII string and is padded with NULs to reach 32 bytes. The applicable drive password is selected with the --user-master switch. .B THIS FEATURE IS EXPERIMENTAL AND NOT WELL TESTED. USE AT YOUR OWN RISK. .TP .I --security-erase-enhanced PWD -Enhanced erase (locked) drive, using password PWD (DANGEROUS). +Enhanced erase (locked) drive, using password PWD +.B (DANGEROUS). Password is given as an ASCII string and is padded with NULs to reach 32 bytes. The applicable drive password is selected with the --user-master switch. .B THIS FEATURE IS EXPERIMENTAL AND NOT WELL TESTED. USE AT YOUR OWN RISK. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-7.4/hdparm.c new/hdparm-7.5/hdparm.c --- old/hdparm-7.4/hdparm.c 2007-05-10 15:12:27.000000000 +0200 +++ new/hdparm-7.5/hdparm.c 2007-06-06 21:51:14.000000000 +0200 @@ -24,7 +24,7 @@ extern const char *minor_str[]; -#define VERSION "v7.4" +#define VERSION "v7.5" #ifndef O_DIRECT #define O_DIRECT 040000 /* direct disk access, not easily obtained from headers */ @@ -99,6 +99,7 @@ static int get_doreset = 0, set_doreset = 0; static int get_tristate = 0, set_tristate = 0, tristate = 0; +static int i_know_what_i_am_doing = 0; static int open_flags = O_RDWR|O_NONBLOCK; @@ -789,6 +790,16 @@ return id; } +static void confirm_i_know_what_i_am_doing (const char *opt, const char *explanation) +{ + if (!i_know_what_i_am_doing) { + fprintf(stderr, "Use of %s is VERY DANGEROUS.\n%s\n" + "Please supply the --yes-i-know-what-i-am-doing flag if you really want this\n" + "Program aborted\n", opt, explanation); + exit(EPERM); + } +} + void process_dev (char *devname) { int fd; @@ -963,6 +974,9 @@ printf(" spin-up:"); fflush(stdout); (void) do_drive_cmd(fd, args1); + } else { + confirm_i_know_what_i_am_doing("-s1", + "This requires BIOS and kernel support to recognize/boot the drive."); } if (get_powerup_in_standby) { printf(" setting power-up in standby to %d", powerup_in_standby); @@ -1595,8 +1609,12 @@ if (0 == strcasecmp(name, "verbose")) { verbose = 1; --num_flags_processed; /* doesn't count as an action flag */ + } else if (0 == strcasecmp(name, "yes-i-know-what-i-am-doing")) { + i_know_what_i_am_doing = 1; + --num_flags_processed; /* doesn't count as an action flag */ } else if (0 == strcasecmp(name, "direct")) { open_flags |= O_DIRECT; + --num_flags_processed; /* doesn't count as an action flag */ } else if (0 == strcasecmp(name, "drq-hsm-error")) { do_drq_hsm_error = 1; } else if (0 == strcasecmp(name, "Istdout")) { diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/hdparm-7.4/hdparm.lsm new/hdparm-7.5/hdparm.lsm --- old/hdparm-7.4/hdparm.lsm 2007-06-01 00:11:53.000000000 +0200 +++ new/hdparm-7.5/hdparm.lsm 2007-06-06 21:52:11.000000000 +0200 @@ -1,8 +1,9 @@ Begin4 Title: hdparm -Version: 7.4 -Entered-date: 2007-06-01 +Version: 7.7 +Entered-date: 2007-06-06 Description: hdparm - get/set hard disk parameters for Linux IDE drives. + v7.5 beef up warnings for -s1: Joe User should never use this flag! v7.4 added CFA advanced timing info v7.3 fixed version number; much better SAT compliance v7.2 fixed breakage when used with old IDE driver @@ -60,7 +61,7 @@ Maintained-by: mlord@pobox.com (Mark Lord) Primary-site: http://sourceforge.net/projects/hdparm/ Alternate-site: http://www.ibiblio.org/pub/Linux/system/hardware - 62K hdparm-7.4.tar.gz + 62K hdparm-7.5.tar.gz 1K hdparm.lsm Platforms: Linux, kernels 2.2 through 2.6 Copying-policy: BSD License ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de