minio/internal/disk
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
..
directio_darwin.go upgrade pkg and dperf to latest packages (#17448) 2023-06-17 07:31:36 -07:00
directio_unix.go upgrade pkg and dperf to latest packages (#17448) 2023-06-17 07:31:36 -07:00
directio_unsupported.go upgrade pkg and dperf to latest packages (#17448) 2023-06-17 07:31:36 -07:00
disk_test.go fix: optimize DiskInfo() call avoid metrics when not needed (#17763) 2023-07-31 15:20:48 -07:00
disk_unix.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
disk_windows.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
disk.go remove serializing WalkDir() across all buckets/prefixes on SSDs (#17707) 2023-07-24 09:30:19 -07:00
fdatasync_linux.go use O_DIRECT for all ReadFileStream (#13324) 2021-09-29 16:40:28 -07:00
fdatasync_unix.go use O_DIRECT for all ReadFileStream (#13324) 2021-09-29 16:40:28 -07:00
fdatasync_unsupported.go use O_DIRECT for all ReadFileStream (#13324) 2021-09-29 16:40:28 -07:00
root_disk.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
stat_bsd.go fix: optimize DiskInfo() call avoid metrics when not needed (#17763) 2023-07-31 15:20:48 -07:00
stat_freebsd.go fix: optimize DiskInfo() call avoid metrics when not needed (#17763) 2023-07-31 15:20:48 -07:00
stat_linux_32bit.go fix: optimize DiskInfo() call avoid metrics when not needed (#17763) 2023-07-31 15:20:48 -07:00
stat_linux_s390x.go fix: optimize DiskInfo() call avoid metrics when not needed (#17763) 2023-07-31 15:20:48 -07:00
stat_linux.go fix: drive rotational calculation status for partitions (#17986) 2023-09-06 12:37:57 -07:00
stat_netbsd.go fix: optimize DiskInfo() call avoid metrics when not needed (#17763) 2023-07-31 15:20:48 -07:00
stat_openbsd.go fix: optimize DiskInfo() call avoid metrics when not needed (#17763) 2023-07-31 15:20:48 -07:00
stat_solaris.go fix: optimize DiskInfo() call avoid metrics when not needed (#17763) 2023-07-31 15:20:48 -07:00
stat_windows.go fix: optimize DiskInfo() call avoid metrics when not needed (#17763) 2023-07-31 15:20:48 -07:00
type_bsd.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
type_linux.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
type_windows.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00