Comment 33 for bug 817326

Revision history for this message
In , Tristan Schmelcher (tschmelcher) wrote :

Actually on second thought there is a simpler and more robust approach, just run realpath() on the document file and then scan /etc/mtab for the longest mount point that is a prefix of the document's path. That way tmpfs and such can be detected correctly. That appears to be how df works.