File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments