From: Robert Yang Subject: [PATCH V3 00/11] e2fsprogs/mke2fs: add an option: -d root-directory Date: Fri, 27 Dec 2013 04:08:54 -0500 Message-ID: <1388135345-2006-1-git-send-email-liezhi.yang@windriver.com> Mime-Version: 1.0 Content-Type: text/plain Cc: To: , Return-path: Received: from mail1.windriver.com ([147.11.146.13]:36196 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754119Ab3L0JJL (ORCPT ); Fri, 27 Dec 2013 04:09:11 -0500 Sender: linux-ext4-owner@vger.kernel.org List-ID: * Changes of V3: - __FUNCTION__ -> __func__ - Rebase to the up to date master branch - Created a PULL on the github, so that I can update the patch easily. * Changes of V2: - Add the "-d" option when the code is ready rather than add it in the first commit. - Remove "name = name" - func_name -> __FUNCTION__ - The size impact on mke2fs: a) Not stripped: 1,837,440 -> 1,903,522 (64K increased) b) Stripped: 329,464 -> 321,272 (8K increased) No impact on tune2fs * Changes from the RFC patches: - Move the common code of debugfs and mke2fs to misc/create_inode.c to avoid bloating the tune2fs binary - Fix the error of "make check" - Rebase to the up to date master branch // Robert The following changes since commit 2ffccc82c4b9ed935e45118e325896b70e9e3eb0: Merge branch 'maint' into next (2013-12-26 00:30:56 -0500) are available in the git repository at: https://github.com/robertlinux/e2fsprogs.git master for you to fetch changes up to 77449096c06dade289a582c34da1c21389c15725: mke2fs.8.in: update the manual for the -d option (2013-12-27 03:36:01 -0500) ---------------------------------------------------------------- Robert Yang (11): mke2fs: add the ability to copy files from a given directory misc/create_inode.c: copy files recursively misc/create_inode.c: create special file misc/create_inode.c: create symlink misc/create_inode.c: copy regular file misc/create_inode.c: create directory misc/create_inode.c: set owner/mode/time for the inode mke2fs.c: add an option: -d root-directory misc/create_inode.c: handle hardlinks debugfs: use the functions in misc/create_inode.c mke2fs.8.in: update the manual for the -d option debugfs/Makefile.in | 17 ++++- debugfs/debugfs.c | 305 +++++--------------------------------------------------------------------------------- debugfs/debugfs.h | 1 + misc/Makefile.in | 13 ++-- misc/create_inode.c | 574 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ misc/create_inode.h | 35 ++++++++++ misc/mke2fs.8.in | 7 ++ misc/mke2fs.c | 44 ++++++++++--- 8 files changed, 691 insertions(+), 305 deletions(-) create mode 100644 misc/create_inode.c create mode 100644 misc/create_inode.h