mirror of
https://git.openwrt.org/project/make_ext4fs.git
synced 2024-11-21 23:00:39 -05:00
Remove unused function
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
828ec043d2
commit
2f713da924
@ -44,27 +44,6 @@ static int filter_dot(const struct dirent *d)
|
|||||||
return (strcmp(d->d_name, "..") && strcmp(d->d_name, "."));
|
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.
|
/* Read a local directory and create the same tree in the generated filesystem.
|
||||||
Calls itself recursively with each directory in the given directory.
|
Calls itself recursively with each directory in the given directory.
|
||||||
full_path is an absolute or relative path, with a trailing slash, to the
|
full_path is an absolute or relative path, with a trailing slash, to the
|
||||||
|
Loading…
Reference in New Issue
Block a user