On Mon, 2013-12-23 at 07:09 -0500, Robert Yang wrote: > The do_write_internal() is used for copying file from native fs to > target, most of the code are from debugfs/debugfs.c, the > debugfs/debugfs.c will be modified to use this function. > > Signed-off-by: Robert Yang <liezhi.yang@xxxxxxxxxxxxx> > --- > misc/create_inode.c | 184 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 184 insertions(+) > > + > /* Copy the native file to the fs */ > errcode_t do_write_internal(ext2_ino_t cwd, const char *src, const char *dest) > { > + int fd; > + struct stat statbuf; > + ext2_ino_t newfile; > + errcode_t retval; > + struct ext2_inode inode; > + int bufsize = IO_BUFSIZE; > + int make_holes = 0; > + char *func_name = "do_write_internal"; Does __FUNCTION__ not provide this same functionality in this context? No need to store this explicitly is there? -- Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html