httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: cvs commit: apache-1.2/conf httpd.conf-dist
Date Wed, 04 Feb 1998 21:51:42 GMT
On Wed, 4 Feb 1998, Dean Gaudet wrote:

> Actually ... there are various methods of detecting them, just nothing
> portable afaik. 

Hey, isn't that what autoconf is supposed to be all about?

If it can't detect something as basic as this what use is it?

(no, that isn't a serious ciriticism of autoconf).

Guess parsing the output of a mount could do something on most platforms.
Lame though.

Oh yea, Solaris 2.5 (not sure when it came in) has a st_fstype memebr of
struct stat that tells you the fs type, eg. "nfs", "ufs", etc.

> 
> On linux we could do this:
> 
> #include <sys/vfs.h>
> 
>     struct statfs buf;
> 
>     if (statfs(lockfile, &buf) == 0 && buf.f_type == NFS_SUPER_MAGIC) {
> 	issue warning
>     }
> 
> That's not POSIX though.  POSIX doesn't seem to provide a method.
> 
> Dean
> 
> On Wed, 4 Feb 1998, Marc Slemko wrote:
> 
> > So, can autoconf detect NFS mounted file-systems?  
> > 
> > <g>
> > 
> > On 4 Feb 1998 dgaudet@hyperreal.org wrote:
> > 
> > > dgaudet     98/02/04 11:42:52
> > > 
> > >   Modified:    conf     httpd.conf-dist
> > >   Log:
> > >   give a clue
> > >   
> > >   Revision  Changes    Path
> > >   1.15      +3 -0      apache-1.2/conf/httpd.conf-dist
> > >   
> > >   Index: httpd.conf-dist
> > >   ===================================================================
> > >   RCS file: /export/home/cvs/apache-1.2/conf/httpd.conf-dist,v
> > >   retrieving revision 1.14
> > >   retrieving revision 1.15
> > >   diff -u -r1.14 -r1.15
> > >   --- httpd.conf-dist	1998/01/30 09:12:49	1.14
> > >   +++ httpd.conf-dist	1998/02/04 19:42:51	1.15
> > >   @@ -48,6 +48,9 @@
> > >    
> > >    # ServerRoot: The directory the server's config, error, and log files
> > >    # are kept in
> > >   +# NOTE!  If you intend to place this on a NFS (or otherwise network)
> > >   +# mounted filesystem then please read the LockFile documentation,
> > >   +# you will save yourself a lot of trouble.
> > >    
> > >    ServerRoot /usr/local/etc/httpd
> > >    
> > >   
> > >   
> > >   
> > > 
> > 
> > 
> 


Mime
View raw message