Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Check that a ramdisk is mounted

by jcb (Parson)
on May 18, 2021 at 01:27 UTC ( [id://11132705] : note . print w/replies, xml ) Need Help??


in reply to Re: Check that a ramdisk is mounted
in thread Check that a ramdisk is mounted

The method I described using stat will work on every *nix system, which set incidentally happens to be the set of systems on which mountpoints are a routine issue.

While Windows NT does (or did) have a similar feature, even including the ability to mount another volume atop an NTFS directory, it is very rarely used on that system. In the modern era, the existence of mountpoints strongly implies POSIX or possibly Plan9, but Plan9 is relatively rare and it is generally safe to assume that anyone asking questions pertinent to Plan9 would mention its use. I only mention the "modern era" qualifier to exclude pre-POSIX Unix, from which POSIX inherited its filesystem model.