SECTOR_SIZE

Constant SECTOR_SIZE 

Source
const SECTOR_SIZE: u64 = 512;
Expand description

Copied from psutil:

“man iostat” states that sectors are equivalent with blocks and have a size of 512 bytes. Despite this value can be queried at runtime via /sys/block/{DISK}/queue/hw_sector_size and results may vary between 1k, 2k, or 4k… 512 appears to be a magic constant used throughout Linux source code: