# from Joe Pruett
# on Tuesday 10 March 2009 06:50:
>> I think there's a correlation between `stat -c %D .` and the
>> major/minor numbers in /proc/partitions.
>
>that won't work for nfs, smb, fuse, etc. only for local physical
> disks. however, that may be good enough for the original poster.
True, though there is /proc/fs/nfsfs/volumes, and probably something
identifying the other filesystems. Interestingly, I can see from this
that two nfs mount points are on the same partition on the server. But
at some point, it might be just as easy to find the canonical path of
the directory and match it with the longest root from /etc/mtab.
--Eric
--
[...proprietary software is better than gpl because...] "There is value
in having somebody you can write checks to, and they fix bugs."
--Mike McNamara (president of a commercial software company)
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug