I have a script which has a faster not-so-precise version and a slower thorough version (think recursive directory comparison or duplicate file search). I would like to run the slower version by default on volumes which have high seek penalty (conventional HDDs) and a faster version on volumes which are inherently fast (SSDs, RAM drives, etc.)
Is there something similar to DEVICE_SEEK_PENALTY_DESCRIPTOR
in Win32 API that I could check in Linux?