1 --- ./hdparm.c.orig 2004-07-14 14:31:02.000000000 +0200
2 +++ ./hdparm.c 2004-07-14 14:37:11.000000000 +0200
4 static int flagcount = 0, do_flush = 0, is_scsi_hd = 0, is_scsi_cd = 0, is_xt_hd = 0;
5 static int do_ctimings, do_timings = 0;
7 -static unsigned long set_readahead= 0, get_readahead= 0, readahead= 0;
8 +static unsigned long set_readahead= 0, get_readahead= 0, my_readahead= 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;
16 - printf(" setting fs readahead to %ld\n", readahead);
17 - if (ioctl(fd, BLKRASET, readahead))
18 + printf(" setting fs readahead to %ld\n", my_readahead);
19 + if (ioctl(fd, BLKRASET, my_readahead))
20 perror(" BLKRASET failed");
22 #ifdef HDIO_UNREGISTER_HWIF
25 get_readahead = noisy;
27 - GET_NUMBER(set_readahead,readahead);
28 + GET_NUMBER(set_readahead,my_readahead);