I have a system with symlinks EVERYWHERE, so given a particular directory, is there a simple way to find out what mountpoint this directory is on? Particularly interested in solaris.
I have a system with symlinks EVERYWHERE, so given a particular directory, is there a simple way to find out what mountpoint this directory is on? Particularly interested in solaris.
You can try:
It should give the filesystem and mount point of the target of the symlink.
If you want to know the mount point and filesystem of the symlink itself:
(That's the command
dirname
and a dummy directory named "dirname", confusingly enough.)I know this provides a little more information than you requested. But you could make a simple C program using the realpath() library call. I have done this before to find out exactly where a specific file was. From there it should be a simple matter of determining the filesystem. A sample program would look like: