From f5f76de00d7a75dab3393b83e674a6d41389d616 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 20 Jun 1995 00:59:50 +0000 Subject: (diskfs_node_iterate): New (user-provided) function. --- libdiskfs/diskfs.h | 6 ++++++ 1 file changed, 6 insertions(+) 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. */ -- cgit v1.2.3