From 720fc26d33352407715cb286a4edc23d15906d5f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 Feb 2007 19:14:58 -0500 Subject: Add parent pointer to dirtree, more work on mke2fs (populate dirtree, count index blocks). --- lib/lib.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index d3c937ca..07cc9cd8 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -22,8 +22,7 @@ struct arg_list { }; struct dirtree { - struct dirtree *next; - struct dirtree *child; + struct dirtree *next, *child, *parent; struct stat st; char name[]; }; @@ -68,7 +67,7 @@ char *utoa(unsigned n); char *itoa(int n); off_t fdlength(int fd); struct dirtree *read_dirtree_node(char *path); -struct dirtree *read_dirtree(char *path); +struct dirtree *read_dirtree(char *path, struct dirtree *parent); // getmountlist.c struct mtab_list { -- cgit v1.2.3