ansible/lib
Johannes Truschnigg b377301195 Fix sizes reported for devices with phys. bs != 512b (#15521)
The `setup` module reports incorrectly computed disk and partition size facts on (afaict) all Linux kernels for block devices that report a physical block size other than 512b.

This happens because `facts.py` incorrectly assumes that sysfs reports a device's block count in units of that device's physical sector size. The kernel, however, always reports and exports sector counts in units of 512b sectors, even if the device's hardware interface cannot address individual blocks this small. The results we see are inflated capacity figures for things like some SSD models and 4kn-HDDs that do report a hardware sector size greater than 512b.
2016-12-02 12:30:40 -05:00
..
ansible Fix sizes reported for devices with phys. bs != 512b (#15521) 2016-12-02 12:30:40 -05:00