fixed inconsistency between manpage and help

Resolves: 853091
This commit is contained in:
Michal Minar 2013-04-19 08:18:58 +02:00
parent 4ceca494fc
commit 0defa8400c
3 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,12 @@
Index: hdparm-9.43/hdparm.c
===================================================================
--- hdparm-9.43.orig/hdparm.c
+++ hdparm-9.43/hdparm.c
@@ -1503,6 +1503,7 @@ static void usage_help (int clue, int rc
" --offset use with -t, to begin timings at given offset (in GiB) from start of drive\n"
" --prefer-ata12 Use 12-byte (instead of 16-byte) SAT commands when possible\n"
" --read-sector Read and dump (in hex) a sector directly from the media\n"
+ " --repair-sector Alias for the --write-sector option (VERY DANGEROUS)\n"
" --security-help Display help for ATA security commands\n"
" --trim-sector-ranges Tell SSD firmware to discard unneeded data sectors: lba:count ..\n"
" --trim-sector-ranges-stdin Same as above, but reads lba:count pairs from stdin\n"

View File

@ -1,11 +1,13 @@
Summary: A utility for displaying and/or setting hard disk parameters
Name: hdparm
Version: 9.43
Release: 1%{?dist}
Release: 2%{?dist}
License: BSD
Group: Applications/System
URL: http://sourceforge.net/projects/hdparm/
Source: http://download.sourceforge.net/hdparm/hdparm-%{version}.tar.gz
Patch0: hdparm-missing-params.patch
Patch1: man-page-update.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch: s390 s390x
@ -16,6 +18,8 @@ performance and to spin down hard drives for power conservation.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} STRIP=/bin/true LDFLAGS=
@ -36,6 +40,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/hdparm.8*
%changelog
* Fri Apr 19 2013 Michal Minar <miminar@redhat.com> 9.43-2
- Fixed inconsistency between man page and program's help.
* Wed Mar 13 2013 Michal Minar <miminar@redhat.com> - 9.43-1
- hdparm-9.43

14
man-page-update.patch Normal file
View File

@ -0,0 +1,14 @@
Index: hdparm-9.43/hdparm.8
===================================================================
--- hdparm-9.43.orig/hdparm.8
+++ hdparm-9.43/hdparm.8
@@ -677,6 +677,9 @@ provides a safe fix for the problem for
Display some basic settings, similar to \-acdgkmur for IDE.
This is also the default behaviour when no options are specified.
.TP
+.I -V
+Display program version and exit immediately.
+.TP
.I --verbose
Display extra diagnostics from some commands.
.TP