commit | 052064b9195da7b6902409a455cdd22b6b2be3d7 | [log] [tgz] |
---|---|---|
author | Robert Yang <liezhi.yang@windriver.com> | Thu Mar 06 11:00:24 2014 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Mar 06 11:00:24 2014 -0500 |
tree | 474a50e758ab44f4b65a3cdd677031e8b0debcea | |
parent | 0d4deba22e2aa95ad958b44972dc933fd0ebbc59 [diff] |
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>