Skip to content

Commit 2f713da

Browse files
committed
Remove unused function
Signed-off-by: Jo-Philipp Wich <[email protected]>
1 parent 828ec04 commit 2f713da

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

make_ext4fs.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,6 @@ static int filter_dot(const struct dirent *d)
4444
return (strcmp(d->d_name, "..") && strcmp(d->d_name, "."));
4545
}
4646

47-
static u32 build_default_directory_structure(const char *dir_path)
48-
{
49-
u32 inode;
50-
u32 root_inode;
51-
struct dentry dentries = {
52-
.filename = "lost+found",
53-
.file_type = EXT4_FT_DIR,
54-
.mode = S_IRWXU,
55-
.uid = 0,
56-
.gid = 0,
57-
.mtime = 0,
58-
};
59-
root_inode = make_directory(0, 1, &dentries, 1);
60-
inode = make_directory(root_inode, 0, NULL, 0);
61-
*dentries.inode = inode;
62-
inode_set_permissions(inode, dentries.mode,
63-
dentries.uid, dentries.gid, dentries.mtime);
64-
65-
return root_inode;
66-
}
67-
6847
/* Read a local directory and create the same tree in the generated filesystem.
6948
Calls itself recursively with each directory in the given directory.
7049
full_path is an absolute or relative path, with a trailing slash, to the

0 commit comments

Comments
 (0)