Re: detecting nfs mounted files
- From: Havoc Pennington <hp redhat com>
- To: Michael Myburgh <Michael Myburgh sun com>
- Cc: stephen browne sun com, gnome-hackers gnome org
- Subject: Re: detecting nfs mounted files
- Date: 10 Oct 2001 11:01:08 -0400
Michael Myburgh <Michael Myburgh sun com> writes:
> > Stephen Browne <stephen browne sun com> writes:
> > > Does anyone know how to do a similar thing that would work on both
> > > Solaris and linux?
> >
> > Linux has statvfs() also, so you could use that hack. Of course it
> > breaks unless you have a comprehensive list of network filesystem
> > types (AFS, etc.)
> >
> > The source code to the stat command line util for Linux (package is
> > just called "stat") has an example.
>
> It also has a "statfs" call, which has the fs type encoded as a
> number. It does not give as much detail as the Solaris statvfs call.
I probably meant statfs not statvfs.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]