Is the file located under:
/sys/block/<xxx>/size
Constantly referencing to 512 byte block count, or is there any special cases where the block count changes?
I'm curious because:
thinkpad :: /sys/block/sdf % cat queue/physical_block_size
4096
thinkpad :: /sys/block/sdf % cat queue/logical_block_size
4096
thinkpad :: /sys/block/sdf % cat size
15408640
15408640 * 512 bytes / 1000000000 = ~8GB
-> the size of my device, its correct but the device is a 4K block device.