minio/internal
Anis Eleuch b9269151a4
fix: drive rotational calculation status for partitions (#17986)
Fix drive rotational calculation status

If a MinIO drive path is mounted to a partition and not a real disk,
getting the rotational status would fail because Linux does not expose
that status to partition; In other words,
/sys/block/drive-partition-name/queue/rotational does not exist;

To fix the issue, the code will search for the rotational status of the
disk that hosts the partition, and this can be calculated from the
real path of /sys/class/block/<drive-partition-name>
2023-09-06 12:37:57 -07:00
..
2023-09-04 12:57:37 -07:00
2023-09-04 12:57:37 -07:00
2023-09-04 12:57:37 -07:00
2022-09-19 11:05:16 -07:00
2023-09-04 12:57:37 -07:00
2022-12-30 11:37:07 -08:00
2023-09-04 12:57:37 -07:00
2023-09-04 12:57:37 -07:00
2022-09-19 11:05:16 -07:00
2023-09-04 12:57:37 -07:00
2023-03-04 20:57:35 -08:00
2023-09-04 12:57:37 -07:00
2023-09-04 12:57:37 -07:00
2023-09-04 12:57:37 -07:00