[PVFS-users] Re: Detect PVFS from a program
Robert Latham
robl at mcs.anl.gov
Mon Mar 29 16:34:04 EST 2004
On Mon, Mar 29, 2004 at 02:05:49PM -0800, Lei at ICS wrote:
> Hi,
>
> Is there a way to detect from a (Fortran) program whether or not
> the file system that I am about to write to or read from
> Is PVFS?
I don't know how i would do it in Fortran, but here's how i would do
it in C:
The system call statfs(2) should do the trick. You can compare the
fs_type member to PVFS_SUPER_MAGIC (defined if you include pvfs.h)
==rob
--
Rob Latham
Mathematics and Computer Science Division A215 0178 EA2D B059 8CDF
Argonne National Labs, IL USA B29D F333 664A 4280 315B
More information about the PVFS-users
mailing list