Independent access range (Linux)
A Linux independent access range is an advertised region of a block device that can service requests in parallel with its other reported regions.
Linux 6.14 documents /sys/block/<disk>/queue/independent_access_ranges/<index>/sector and nr_sectors in 512-byte units, independent of logical block size. Both attributes are read-only with mode 0444, the ranges are numbered by increasing start sector and range 0 always starts at sector 0. [1] [2]
For SCSI disks the driver reads the Concurrent Positioning Ranges VPD page B9h into a buffer of 64 + 256 x 32 bytes, a 64-byte header and up to 256 descriptors of 32 bytes. A page that reports only one range yields no ranges in sysfs, and a descriptor whose number differs from its position discards the whole set. [3]
Before a set is published, the block layer checks that the ranges have no holes or overlaps and that their sizes add up to the disk capacity, and otherwise it logs a warning and drops them. This is the kernel's representation, not the device log itself, and absence does not establish the physical actuator count. [2]
Relations
Advantages
- The layout is exposed through ordinary read-only sysfs files, so userspace can read it without issuing SCSI or ATA commands. [1]
Limitations
- A VPD page shorter than 96 bytes or with a length that is not a multiple of 32 is rejected with an error, and no ranges are set. [3]
- A revalidation that reports ranges identical to the current set leaves the registered entries in place, while any change replaces the whole sysfs directory. [2]
Citations
- Linux 6.14 stable ABI: independent_access_ranges
- Linux v6.14 block/blk-ia-ranges.c: sysfs attributes and range checks
- Linux v6.14 drivers/scsi/sd.c: sd_read_cpr and VPD page B9h parsing
Sources & caveats
- linux-abi is the Linux 6.14 stable ABI page, read for the sysfs layout, units and numbering.
- blk-ia-ranges is block/blk-ia-ranges.c at Linux v6.14, read for the attribute modes and the consistency checks.
- sd is drivers/scsi/sd.c at Linux v6.14, read for the VPD page parsing in sd_read_cpr.
- The 96-byte minimum is the 64-byte header plus one 32-byte descriptor as checked in the code.