misc/create_inode.c: copy files recursively
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 6 Mar 2014 16:00:24 +0000 (11:00 -0500)
committerChanho Park <chanho61.park@samsung.com>
Tue, 5 Aug 2014 04:37:17 +0000 (13:37 +0900)
commitabb6498c0adede501614fa49af314a795211c604
tree9222e5db82c8be48b20ae21881e21bdc2b72e102
parent35bd320652a527e772b88877f0776613b5110b6f
misc/create_inode.c: 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.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/create_inode.c