summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-20 00:59:50 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-20 00:59:50 +0000
commitf5f76de00d7a75dab3393b83e674a6d41389d616 (patch)
tree542fe936edace67bdd2c9c5224fc9d8a5a6cc8c5 /libdiskfs
parent84580754e26c9ad6da4ef608ada78b26c4485419 (diff)
(diskfs_node_iterate): New (user-provided) function.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/diskfs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index fe4f06a8..c6a91764 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -400,6 +400,12 @@ void diskfs_write_disknode (struct node *np, int wait);
then return only after the physical media has been completely updated. */
void diskfs_file_update (struct node *np, int wait);
+/* The user must define this function. For each active node, call
+ FUN. The node is to be locked around the call to FUN. If FUN
+ returns non-zero for any node, then immediately stop, and return
+ that value. */
+error_t diskfs_node_iterate (error_t (*fun)(struct node *));
+
/* The user must define this function. Sync all the pagers and any
data belonging on disk except for the hypermetadata. If WAIT is true,
then return only after the physicial media has been completely updated. */