Changeset 169 for trunk/src/sh_mounts.c


Ignore:
Timestamp:
Apr 13, 2008, 9:59:55 PM (16 years ago)
Author:
katerina
Message:

Fixes for tickes #93 to #104 (yes, big commit, bad, bad,...).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_mounts.c

    r149 r169  
    180180  }
    181181
    182   lastcheck = time(NULL);
    183 
    184182  SL_RETURN(0, _("sh_mounts_init"));
    185183}
     
    197195    SL_RETURN(-1, _("sh_mounts_timer"));
    198196  }
    199   
     197 
    200198  SL_RETURN(0, _("sh_mounts_timer"));
    201199}
     
    400398
    401399/* FreeBSD includes */
    402 #ifdef HOST_IS_FREEBSD
     400#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD)
    403401#include <sys/param.h>
    404402#include <sys/ucred.h>
     
    577575#endif
    578576
    579 #if defined(HOST_IS_FREEBSD)
     577#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD)
    580578
    581579/* FreeBSD returns flags instead of strings as mount options, so we'll convert
     
    595593                {"local",       MNT_LOCAL},
    596594                {"quota",       MNT_QUOTA},
     595#ifdef MNT_NOATIME
     596                {"noatime",     MNT_NOATIME},
     597#endif
    597598                {"bound",       -1}
    598599        };
     
    665666        list = m;
    666667
    667 /* The FreeBSD way */
    668 #ifdef HOST_IS_FREEBSD
     668/* The Open/FreeBSD way */
     669#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD)
    669670{
    670671        struct statfs *fsp;
Note: See TracChangeset for help on using the changeset viewer.