Quote Originally Posted by rstanley View Post
I would look at man 2 stat for starters.
I did consider that but the documentation doesn't explain what to look for when seeing if a path it is linked to a device's root, or at least doesn't do a good enough job of it since I can't work it out