How do I find the target directory (not the target fs) of a mount -bind
Hi,
Let's say someone entered the following command without my knowledge:
mount -o bind /CommonData/BindTarget /MyData/BindSource
I can see that /MyData/BindSource is a mount point by using "mount" or "df".
My questions:
1. Can I tell if /MyData/BindSource is a bind mount or a regular mount?
2. If yes, how can I find the bind target path? (in this example /CommonData/BindTarget)
All I managed to find using mount and df is the filesystem (or the device) that contains /CommonData/BindTarget (for example the fs that is mounted on /CommonData), but not the actual path sub directory inside it that is the bind target (e.g. /CommonData/BindTarget).
Its probably something very simple to find, but I've googled some and didn't find info.
Thanks,
raananh
|