Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 40908
Collapse All | Expand All

(-)hdparm-5.4-orig/hdparm.c (-4 / +4 lines)
Lines 52-58 Link Here
52
static int flagcount = 0, do_flush = 0, is_scsi_hd = 0, is_xt_hd = 0;
52
static int flagcount = 0, do_flush = 0, is_scsi_hd = 0, is_xt_hd = 0;
53
static int do_ctimings, do_timings = 0;
53
static int do_ctimings, do_timings = 0;
54
54
55
static unsigned long set_readahead= 0, get_readahead= 0, readahead= 0;     
55
static unsigned long set_readahead= 0, get_readahead= 0, doreadahead= 0;
56
static unsigned long set_readonly = 0, get_readonly = 0, readonly = 0;
56
static unsigned long set_readonly = 0, get_readonly = 0, readonly = 0;
57
static unsigned long set_unmask   = 0, get_unmask   = 0, unmask   = 0;     
57
static unsigned long set_unmask   = 0, get_unmask   = 0, unmask   = 0;     
58
static unsigned long set_mult     = 0, get_mult     = 0, mult     = 0;     
58
static unsigned long set_mult     = 0, get_mult     = 0, mult     = 0;     
Lines 785-792 Link Here
785
785
786
	if (set_readahead) {
786
	if (set_readahead) {
787
		if (get_readahead)
787
		if (get_readahead)
788
			printf(" setting fs readahead to %ld\n", readahead);
788
			printf(" setting fs readahead to %ld\n", doreadahead);
789
		if (ioctl(fd, BLKRASET, readahead)) 
789
		if (ioctl(fd, BLKRASET, doreadahead)) 
790
			perror(" BLKRASET failed");
790
			perror(" BLKRASET failed");
791
	}
791
	}
792
#ifdef HDIO_UNREGISTER_HWIF
792
#ifdef HDIO_UNREGISTER_HWIF
Lines 1830-1836 Link Here
1830
					case 'a':
1830
					case 'a':
1831
						get_readahead = noisy;
1831
						get_readahead = noisy;
1832
						noisy = 1;
1832
						noisy = 1;
1833
						GET_NUMBER(set_readahead,readahead);
1833
						GET_NUMBER(set_readahead,doreadahead);
1834
						break;
1834
						break;
1835
					case 'B':
1835
					case 'B':
1836
						get_apmmode = noisy;
1836
						get_apmmode = noisy;

Return to bug 40908