From 2f713da924fa20cf89c25f2d122b54b959b09f87 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 8 Apr 2015 07:49:59 +0200 Subject: [PATCH] Remove unused function Signed-off-by: Jo-Philipp Wich --- make_ext4fs.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/make_ext4fs.c b/make_ext4fs.c index edfa25c..cb18161 100644 --- a/make_ext4fs.c +++ b/make_ext4fs.c @@ -44,27 +44,6 @@ static int filter_dot(const struct dirent *d) return (strcmp(d->d_name, "..") && strcmp(d->d_name, ".")); } -static u32 build_default_directory_structure(const char *dir_path) -{ - u32 inode; - u32 root_inode; - struct dentry dentries = { - .filename = "lost+found", - .file_type = EXT4_FT_DIR, - .mode = S_IRWXU, - .uid = 0, - .gid = 0, - .mtime = 0, - }; - root_inode = make_directory(0, 1, &dentries, 1); - inode = make_directory(root_inode, 0, NULL, 0); - *dentries.inode = inode; - inode_set_permissions(inode, dentries.mode, - dentries.uid, dentries.gid, dentries.mtime); - - return root_inode; -} - /* Read a local directory and create the same tree in the generated filesystem. Calls itself recursively with each directory in the given directory. full_path is an absolute or relative path, with a trailing slash, to the -- 2.11.0