diff options
-rw-r--r-- | miscutils/hdparm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 16ab7e67d..5c91b522d 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -1238,7 +1238,7 @@ static int verbose = 0, get_identity = 0, get_geom = 0, noisy = 1, quiet = 0; | |||
1238 | static int flagcount = 0, do_flush = 0, is_scsi_hd = 0, is_xt_hd = 0; | 1238 | static int flagcount = 0, do_flush = 0, is_scsi_hd = 0, is_xt_hd = 0; |
1239 | static int do_ctimings, do_timings = 0; | 1239 | static int do_ctimings, do_timings = 0; |
1240 | 1240 | ||
1241 | static unsigned long set_readahead= 0, get_readahead= 0, readahead= 0; | 1241 | static unsigned long set_readahead= 0, get_readahead= 0, bbreadahead= 0; |
1242 | static unsigned long set_readonly = 0, get_readonly = 0, readonly = 0; | 1242 | static unsigned long set_readonly = 0, get_readonly = 0, readonly = 0; |
1243 | static unsigned long set_unmask = 0, get_unmask = 0, unmask = 0; | 1243 | static unsigned long set_unmask = 0, get_unmask = 0, unmask = 0; |
1244 | static unsigned long set_mult = 0, get_mult = 0, mult = 0; | 1244 | static unsigned long set_mult = 0, get_mult = 0, mult = 0; |
@@ -1948,8 +1948,8 @@ static void process_dev (char *devname) | |||
1948 | 1948 | ||
1949 | if (set_readahead) | 1949 | if (set_readahead) |
1950 | { | 1950 | { |
1951 | if_printf(get_readahead," setting fs readahead to %ld\n", readahead); | 1951 | if_printf(get_readahead," setting fs readahead to %ld\n", bbreadahead); |
1952 | bb_ioctl(fd, BLKRASET,(int *)readahead,"BLKRASET"); | 1952 | bb_ioctl(fd, BLKRASET,(int *)bbreadahead,"BLKRASET"); |
1953 | } | 1953 | } |
1954 | #ifdef CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF | 1954 | #ifdef CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF |
1955 | if (unregister_hwif) | 1955 | if (unregister_hwif) |
@@ -2839,7 +2839,7 @@ error: | |||
2839 | while (isdigit(*p)) | 2839 | while (isdigit(*p)) |
2840 | { | 2840 | { |
2841 | set_readahead = 1; | 2841 | set_readahead = 1; |
2842 | readahead = (readahead * 10) + (*p++ - '0'); | 2842 | bbreadahead = (bbreadahead * 10) + (*p++ - '0'); |
2843 | } | 2843 | } |
2844 | break; | 2844 | break; |
2845 | case 'B': | 2845 | case 'B': |