]> git.pld-linux.org Git - packages/busybox.git/blame - busybox-readahead.patch
- updated printf-gettext,insmod-morearchs patches
[packages/busybox.git] / busybox-readahead.patch
CommitLineData
bfdd4137 1--- busybox-1.00-pre10/miscutils/hdparm.c_ 2004-04-29 07:01:59.000000000 +0000
2+++ busybox-1.00-pre10/miscutils/hdparm.c 2004-04-29 07:33:15.087216840 +0000
3@@ -1227,7 +1227,7 @@
4 static int flagcount = 0, do_flush = 0, is_scsi_hd = 0, is_xt_hd = 0;
5 static int do_ctimings, do_timings = 0;
6
7-static unsigned long set_readahead= 0, get_readahead= 0, readahead= 0;
8+static unsigned long set_readahead= 0, get_readahead= 0, read_ahead= 0;
9 static unsigned long set_readonly = 0, get_readonly = 0, readonly = 0;
10 static unsigned long set_unmask = 0, get_unmask = 0, unmask = 0;
11 static unsigned long set_mult = 0, get_mult = 0, mult = 0;
12@@ -1937,8 +1937,8 @@
13
14 if (set_readahead)
15 {
16- if_printf(get_readahead," setting fs readahead to %ld\n", readahead);
17- bb_ioctl(fd, BLKRASET,(int *)readahead,"BLKRASET");
18+ if_printf(get_readahead," setting fs readahead to %ld\n", read_ahead);
19+ bb_ioctl(fd, BLKRASET,(int *)read_ahead,"BLKRASET");
20 }
21 #ifdef CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF
22 if (unregister_hwif)
23@@ -2832,7 +2832,7 @@
24 noisy = 1;
25 if (!*p && argc && isalnum(**argv))
26 p = *argv++, --argc;
27- p=GET_NUMBER(p,&set_readahead,&readahead);
28+ p=GET_NUMBER(p,&set_readahead,&read_ahead);
29 break;
30 case 'B':
31 get_apmmode = noisy;
This page took 0.041277 seconds and 4 git commands to generate.