+2005-09-26 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * hlfsd/stubs.c (nfsproc_getattr_2_svc, nfsproc_lookup_2_svc,
+ nfsproc_readlink_2_svc, nfsproc_readdir_2_svc), hlfsd/hlfsd.c
+ (hlfsd_init): use new clocktime() function.
+
2005-09-18 Erez Zadok <ezk@cs.sunysb.edu>
* README.attrcache: document netbsd's patchs to support noac.
if (setitimer(ITIMER_REAL, &reloadinterval, (struct itimerval *) NULL) < 0)
fatal("setitimer: %m");
- gettimeofday((struct timeval *) ((void *)&startup), (struct timezone *) NULL);
+ clocktime(&startup);
/*
* If -D daemon, then start serving here in the child,
* Some NFS clients may need this code.
*/
if (uid != rootfattr.na_uid) {
- rootfattr.na_mtime.nt_seconds++;
+ clocktime(&rootfattr.na_mtime);
rootfattr.na_uid = uid;
}
#endif /* 0 */
* so we must update the nt_seconds field every time.
*/
if (uid != slinkfattr.na_uid) {
- slinkfattr.na_mtime.nt_seconds++;
+ clocktime(&slinkfattr.na_mtime);
slinkfattr.na_uid = uid;
}
#endif /* not MNT2_NFS_OPT_SYMTTL */
* Some NFS clients may need this code.
*/
if (uid != rootfattr.na_uid) {
- rootfattr.na_mtime.nt_seconds++;
+ clocktime(&rootfattr.na_mtime);
rootfattr.na_uid = uid;
}
#endif /* 0 */
* so we must update the nt_seconds field every time.
*/
if (uid != slinkfattr.na_uid) {
- slinkfattr.na_mtime.nt_seconds++;
+ clocktime(&slinkfattr.na_mtime);
slinkfattr.na_uid = uid;
}
#endif /* not MNT2_NFS_OPT_SYMTTL */
if (getcreds(rqstp, &userid, &groupid, nfsxprt) < 0)
return (nfsreadlinkres *) NULL;
- gettimeofday((struct timeval *) &slinkfattr.na_atime, (struct timezone *) NULL);
+ clocktime(&slinkfattr.na_atime);
res.rlr_status = NFS_OK;
if (groupid == hlfs_gid) {
if (eq_fh(&argp->rda_fhandle, &slink)) {
res.rdr_status = NFSERR_NOTDIR;
} else if (eq_fh(&argp->rda_fhandle, &root)) {
- gettimeofday((struct timeval *) &rootfattr.na_atime, (struct timezone *) NULL);
+ clocktime(&rootfattr.na_atime);
res.rdr_status = NFS_OK;
switch (argp->rda_cookie[0]) {