lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sat, 14 Oct 2006 21:17:37 +0200
From:	"Philipp Kohlbecher" <xt28@....de>
To:	linux-kernel@...r.kernel.org
Subject: ra_pages and max_sectors

Hello!

I was wondering why I can change the read-ahead size of my DVD drive via hdparm -a [size], but not by writing into /sys/block/hdb/queue/read_ahead_kb.

In other words: Why does queue_ra_store() [block/ll_rw_blk.c:3755] perform the following check

        if (ra_kb > (q->max_sectors >> 1))
                ra_kb = (q->max_sectors >> 1);

while blkdev_locked_ioctl() [block/ioctl.c:138] does not check this in the case that cmd == BLKRASET?

Thanks for your consideration,
- Philipp Kohlbecher


Please CC me -- I'm not on the list.
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ