On Wed, 04 Feb 2015 16:23:26 +0900, manty kuma said: > I would like to know the mount target for a given directory. In kernel, is > there an API to get the information? Explain what problem you're trying to solve. Your example: /system/bin is a directory its mount partition is /system. isn't very clear on what you mean. Do you mean "I did a mount /dev/foox4 /mnt/wombats and now I want to find /dev/foox4", or did you mean "given a pathname or inode, what filesystem is it on?" (Bonus points for explaining what your solution should do with bind mounts and overlayfs and other exotic stuff like that)
Attachment:
pgpGtAsdgppUS.pgp
Description: PGP signature
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies