Skip to contentSkip to conversation

ioctl for max_sectors

DISCUSSION Karthik Sarangan 2 participants 2 messages Oct 10, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

With what ioctl can I retrieve the max_sectors count of struct Scsi_Host_Template?

#1 lore raw
Quoted 2 lines · Karthik Sarangan

With what ioctl can I retrieve the max_sectors count of struct Scsi_Host_Template?

You don't, see /sys/block/sdX/queue/max_sectors_kb and max_hw_sectors_kb. The latter is the hardware advertised max value, the former is the one the block layer uses. You can only change the former, which can of course never exceed the latter.

Signature · 1 line
Jens Axboe