2004-06-21 18:42:54

by Ara.T.Howard

[permalink] [raw]
Subject: determining if a file is nfs mounted


is there a reliable method of doing this? google and the mailing list seem to
indicate that there is not...

kind regards.

-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it; and a weed grows, even though we do
| not love it. --Dogen
===============================================================================


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit http://www.blackhat.com
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2004-06-21 21:02:56

by James Pearson

[permalink] [raw]
Subject: Re: determining if a file is nfs mounted

Doesn't statfs() do this? - from the man page:

struct statfs {
long f_type; /* type of filesystem (see below) */
...

File system types:

...
linux/nfs_fs.h:
NFS_SUPER_MAGIC 0x6969
...

James Pearson


Ara.T.Howard wrote:
>
> is there a reliable method of doing this? google and the mailing list
> seem to
> indicate that there is not...



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit http://www.blackhat.com
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2004-06-22 01:09:17

by Ara.T.Howard

[permalink] [raw]
Subject: Re: determining if a file is nfs mounted

On Mon, 21 Jun 2004, James Pearson wrote:

> Doesn't statfs() do this? - from the man page:
>
> struct statfs {
> long f_type; /* type of filesystem (see below) */
> ...
>
> File system types:
>
> ...
> linux/nfs_fs.h:
> NFS_SUPER_MAGIC 0x6969
> ...
>
> James Pearson

i guess it does! ;-)

the man page isn't exactly inspiring though - sounds pretty platform
specific... but it is what i'm after.

cheers.

-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it; and a weed grows, even though we do
| not love it. --Dogen
===============================================================================


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit http://www.blackhat.com
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs