]> code.ossystems Code Review - openembedded-core.git/commit
e2fsprogs: mke2fs: copy files recursively
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 7 Mar 2014 06:59:23 +0000 (01:59 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Mar 2014 14:44:26 +0000 (14:44 +0000)
commitfd0d00dafcf497f23b1c3886d062c8a57e2aa515
tree158422eda8e4481d38f91cf7c2b7fcf3633e1061
parentf050c510b070d919d50e491476e83f2b0ae2b7b2
e2fsprogs: mke2fs: copy files recursively

Use opendir() and readdir() to read the native directory, then use
lstat() to identify the file type and call the corresponding function to
add the file to the filesystem, call the populate_fs() recursively if it
is a directory.

NOTE: the libext2fs can't create the socket file.

[YOCTO #4083]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/e2fsprogs/e2fsprogs/0002-misc-create_inode.c-copy-files-recursively.patch [new file with mode: 0644]