While looking for ways to stress an SDcard, I've noticed there are two ways one can approach this. One is to stress it by reading/writing blocks directly to the device file.
sudo badblocks -b 512 -w -v /dev/mmcblk0
However there are also utilities that perform stress test on file level and accept a mounted partition as input. For example stressdisk.
From my perspective, the file based approach introduces additional uncertainty. We don't know what the file system might end up doing.
- What if it caches file writes?
- Can the issues end up being logical file system errors not related to storage media failures?
Are those reasonable doubts? What would be the use cases for one against the other?