What's up with stat on Macos/Darwin? Or filesystems without names...
- by Charles Stewart
In response to a question I asked on SO, Give the mount point of a path, one respondant suggested using stat to get the device name associated with the volume of a given path. This works nicely on Linux, but gives crazy results on Macos 10.4. For my system, df and mount give:
cas cas$ df
Filesystem 512-blocks Used Avail…