diff options
author | Pere Orga <gotrunks@gmail.com> | 2011-04-11 03:29:49 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-11 03:29:49 +0200 |
commit | 5bc8c005a8e15c43285bc595a8d404de67a482ac (patch) | |
tree | 98f2d35d1db26f4d8cba5f095ff63bf8e2e8d980 /miscutils/hdparm.c | |
parent | 73ef15cf3894716c1393ed21dee6e6bb2cdbc90f (diff) | |
download | busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.gz busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.tar.bz2 busybox-w32-5bc8c005a8e15c43285bc595a8d404de67a482ac.zip |
move remaining help text from include/usage.src.h
Signed-off-by: Pere Orga <gotrunks@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/hdparm.c')
-rw-r--r-- | miscutils/hdparm.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 38b265d60..7608408dd 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -11,6 +11,58 @@ | |||
11 | * hdparm.c - Command line interface to get/set hard disk parameters | 11 | * hdparm.c - Command line interface to get/set hard disk parameters |
12 | * - by Mark Lord (C) 1994-2002 -- freely distributable | 12 | * - by Mark Lord (C) 1994-2002 -- freely distributable |
13 | */ | 13 | */ |
14 | |||
15 | //usage:#define hdparm_trivial_usage | ||
16 | //usage: "[OPTIONS] [DEVICE]" | ||
17 | //usage:#define hdparm_full_usage "\n\n" | ||
18 | //usage: "Options:" | ||
19 | //usage: "\n -a Get/set fs readahead" | ||
20 | //usage: "\n -A Set drive read-lookahead flag (0/1)" | ||
21 | //usage: "\n -b Get/set bus state (0 == off, 1 == on, 2 == tristate)" | ||
22 | //usage: "\n -B Set Advanced Power Management setting (1-255)" | ||
23 | //usage: "\n -c Get/set IDE 32-bit IO setting" | ||
24 | //usage: "\n -C Check IDE power mode status" | ||
25 | //usage: IF_FEATURE_HDPARM_HDIO_GETSET_DMA( | ||
26 | //usage: "\n -d Get/set using_dma flag") | ||
27 | //usage: "\n -D Enable/disable drive defect-mgmt" | ||
28 | //usage: "\n -f Flush buffer cache for device on exit" | ||
29 | //usage: "\n -g Display drive geometry" | ||
30 | //usage: "\n -h Display terse usage information" | ||
31 | //usage: IF_FEATURE_HDPARM_GET_IDENTITY( | ||
32 | //usage: "\n -i Display drive identification") | ||
33 | //usage: IF_FEATURE_HDPARM_GET_IDENTITY( | ||
34 | //usage: "\n -I Detailed/current information directly from drive") | ||
35 | //usage: "\n -k Get/set keep_settings_over_reset flag (0/1)" | ||
36 | //usage: "\n -K Set drive keep_features_over_reset flag (0/1)" | ||
37 | //usage: "\n -L Set drive doorlock (0/1) (removable harddisks only)" | ||
38 | //usage: "\n -m Get/set multiple sector count" | ||
39 | //usage: "\n -n Get/set ignore-write-errors flag (0/1)" | ||
40 | //usage: "\n -p Set PIO mode on IDE interface chipset (0,1,2,3,4,...)" | ||
41 | //usage: "\n -P Set drive prefetch count" | ||
42 | /* //usage: "\n -q Change next setting quietly" - not supported ib bbox */ | ||
43 | //usage: "\n -Q Get/set DMA tagged-queuing depth (if supported)" | ||
44 | //usage: "\n -r Get/set readonly flag (DANGEROUS to set)" | ||
45 | //usage: IF_FEATURE_HDPARM_HDIO_SCAN_HWIF( | ||
46 | //usage: "\n -R Register an IDE interface (DANGEROUS)") | ||
47 | //usage: "\n -S Set standby (spindown) timeout" | ||
48 | //usage: "\n -t Perform device read timings" | ||
49 | //usage: "\n -T Perform cache read timings" | ||
50 | //usage: "\n -u Get/set unmaskirq flag (0/1)" | ||
51 | //usage: IF_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF( | ||
52 | //usage: "\n -U Unregister an IDE interface (DANGEROUS)") | ||
53 | //usage: "\n -v Defaults; same as -mcudkrag for IDE drives" | ||
54 | //usage: "\n -V Display program version and exit immediately" | ||
55 | //usage: IF_FEATURE_HDPARM_HDIO_DRIVE_RESET( | ||
56 | //usage: "\n -w Perform device reset (DANGEROUS)") | ||
57 | //usage: "\n -W Set drive write-caching flag (0/1) (DANGEROUS)" | ||
58 | //usage: IF_FEATURE_HDPARM_HDIO_TRISTATE_HWIF( | ||
59 | //usage: "\n -x Tristate device for hotswap (0/1) (DANGEROUS)") | ||
60 | //usage: "\n -X Set IDE xfer mode (DANGEROUS)" | ||
61 | //usage: "\n -y Put IDE drive in standby mode" | ||
62 | //usage: "\n -Y Put IDE drive to sleep" | ||
63 | //usage: "\n -Z Disable Seagate auto-powersaving mode" | ||
64 | //usage: "\n -z Reread partition table" | ||
65 | |||
14 | #include "libbb.h" | 66 | #include "libbb.h" |
15 | /* must be _after_ libbb.h: */ | 67 | /* must be _after_ libbb.h: */ |
16 | #include <linux/hdreg.h> | 68 | #include <linux/hdreg.h> |