diff options
author | Jeremie Koenig <jk@jk.fr.eu.org> | 2010-08-23 20:43:16 +0000 |
---|---|---|
committer | Jeremie Koenig <jk@jk.fr.eu.org> | 2010-08-30 14:31:32 +0200 |
commit | b3d304167929bc199e6789fd67ffea035e7fdbf1 (patch) | |
tree | 4a69de8b4442a7bd66350fb6876788d0e779d459 /rootdir.c | |
parent | 7b027a34676880bded1a05a5c47bfa85a6e79092 (diff) | |
download | hurd-b3d304167929bc199e6789fd67ffea035e7fdbf1.tar.gz hurd-b3d304167929bc199e6789fd67ffea035e7fdbf1.tar.bz2 hurd-b3d304167929bc199e6789fd67ffea035e7fdbf1.zip |
Refresh nodes when they're read from the start.
This is necessary for top, for instance, which keeps some files open and
re-reads them regularly. As an extra bonus we can drop the refresh hack.
* procfs.c, procfs.h: Remove the refresh hack.
(procfs_refresh): New function, invalidates the cached contents.
* netfs.c (netfs_attempt_read, netfs_get_dirents): Call
procfs_refresh when the read is from offset 0.
* proclist.c (proclist_make_node): Remove the refresh hack.
* dircat.c (dircat_make_node): Likewise.
(dircat_get_contents): Use procfs_refresh to avoid keeping old data
from the component nodes.
Diffstat (limited to 'rootdir.c')
0 files changed, 0 insertions, 0 deletions