I want to figure out whether a file (for which I have the absolute path) is a local file (on a disk device connected to my machine) or a remote file (connected over network). For the same what I have done is, I opened the file and then did a fstat on it (I know, I could have done without opening the file using stat, but that is okay).
Now from fstat, I am looking at
dev_t st_dev; /* ID of device containing file */
and figuring the major and minor version of the st_dev.
Now, what information which I have on Linux, about the different possible values of major version / minor version are present in devices.txt
https://www.kernel.org/doc/Documentation/admin-guide/devices.txt
And the values match also (on Linux), for example for a local file (whether on hard disk/external hard disk or pen drive), I am getting major Version as 8.
What I want to know is, does Mac has similar devices.txt file? If yes, please provide the link/path.
If not, then what values can I assume right now, which will mean, file is remote?