pub fn device_size(fd: BorrowedFd<'_>) -> Result<u64>
Get the size of a block device in bytes.
Returns Err if the BLKGETSIZE64 ioctl fails.
Err
BLKGETSIZE64