Get Mount target from path

manty kuma mantykuma at
Wed Feb 4 02:23:26 EST 2015

Hi All,

I would like to know the mount target for a given directory. In kernel, is
there an API to get the information?

Ex: /system/bin -> /system
/system/bin is a directory its mount partition is /system. Similarly, I
would like to get the target for a given path(Parsing is not right as a
target can be mounted to anywhere).

Best Regards,
Sandeep Kumar
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Kernelnewbies mailing list