summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-25 18:08:16 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-25 18:08:16 +0000
commit35920d4e5c76de4bf3e456b6e86863530ee6dea3 (patch)
tree8c501917287177c937c758b0b76e2fd08ad1b4ae /ufs
parent94b751907a4d811655c63416d5b04282d40c0bd6 (diff)
(diskfs_null_dirstat): New function.
Diffstat (limited to 'ufs')
-rw-r--r--ufs/dir.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index 843735c2..8fb2b39b 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -81,6 +81,14 @@ struct dirstat
size_t diskfs_dirstat_size = sizeof (struct dirstat);
+/* The user must define this function. Initialize DS such that
+ diskfs_drop_dirstat will ignore it. */
+void
+diskfs_null_dirstat (struct dirstat *ds)
+{
+ ds->type = LOOKUP;
+}
+
static error_t
dirscanblock (vm_address_t blockoff, struct node *dp, int idx, char *name,
int namelen, enum lookup_type type, struct dirstat *ds,