There's more than one way to do things | |
PerlMonks |
Re: How best test that a directory is a mount point of a mounted filesystem?by merlyn (Sage) |
on Jan 27, 2009 at 18:03 UTC ( [id://739273]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|