in reply to How best test that a directory is a mount point of a mounted filesystem?

Do you mean "potential mount point", or "currently active mount point"? For the latter, compare the dev number from stat for the directory, and for the directory with /.. appended. If the dev numbers are different, it's an active mount point.
  • Comment on Re: How best test that a directory is a mount point of a mounted filesystem?