summaryrefslogtreecommitdiff
path: root/hostmux
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-06-20 05:38:44 +0000
committerMiles Bader <miles@gnu.org>1997-06-20 05:38:44 +0000
commit4fec15affc08ae757865320a26f61b9ebd255bf2 (patch)
tree8f39ce67fe53cfeb1a5587003fff407462d1d2ca /hostmux
parent9f60645e57dc7d3f64edea001b20514b664c3c30 (diff)
(netfs_get_dirents):
MAX_DATA_LEN == 0 means `no limit'. Replace uses of touch with fshelp_touch.
Diffstat (limited to 'hostmux')
-rw-r--r--hostmux/mux.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hostmux/mux.c b/hostmux/mux.c
index cba29126..b942d658 100644
--- a/hostmux/mux.c
+++ b/hostmux/mux.c
@@ -61,7 +61,7 @@ netfs_attempt_lookup (struct iouser *user, struct node *dir,
else
err = lookup_host (dir->nn->mux, name, node);
- touch (dir, TOUCH_ATIME);
+ fshelp_touch (&dir->nn_stat, TOUCH_ATIME, hostmux_maptime);
mutex_unlock (&dir->lock);
@@ -103,7 +103,7 @@ netfs_get_dirents (struct iouser *cred, struct node *dir,
if (nm->node)
{
size_t new_size = size + DIRENT_LEN (strlen (nm->name));
- if (new_size > max_data_len)
+ if (max_data_len > 0 && new_size > max_data_len)
break;
size = new_size;
count++;
@@ -151,7 +151,7 @@ netfs_get_dirents (struct iouser *cred, struct node *dir,
rwlock_reader_unlock (&dir->nn->mux->names_lock);
- touch (dir, TOUCH_ATIME);
+ fshelp_touch (&dir->nn_stat, TOUCH_ATIME, hostmux_maptime);
return err;
}
@@ -336,7 +336,7 @@ netfs_attempt_chown (struct iouser *cred, struct node *node, uid_t uid, uid_t gi
}
rwlock_reader_unlock (&mux->names_lock);
- touch (node, TOUCH_CTIME);
+ fshelp_touch (&node->nn_stat, TOUCH_CTIME, hostmux_maptime);
}
return err;
@@ -370,7 +370,7 @@ netfs_attempt_chauthor (struct iouser *cred, struct node *node, uid_t author)
nm->node->nn_stat.st_author = author;
rwlock_reader_unlock (&mux->names_lock);
- touch (node, TOUCH_CTIME);
+ fshelp_touch (&node->nn_stat, TOUCH_CTIME, hostmux_maptime);
}
return err;
@@ -394,7 +394,7 @@ netfs_attempt_chmod (struct iouser *cred, struct node *node, mode_t mode)
if (! err)
{
node->nn_stat.st_mode = mode;
- touch (node, TOUCH_CTIME);
+ fshelp_touch (&node->nn_stat, TOUCH_CTIME, hostmux_maptime);
}
return err;
}