From: Robert Yang Subject: [PATCH 0/2] e2fsprogs/debugfs: do sparse copy when src is a sparse file Date: Fri, 19 Jul 2013 10:17:35 +0800 Message-ID: <1374200257-2873-1-git-send-email-liezhi.yang@windriver.com> Mime-Version: 1.0 Content-Type: text/plain Cc: To: , Return-path: Received: from mail.windriver.com ([147.11.1.11]:51271 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759506Ab3GSCTQ (ORCPT ); Thu, 18 Jul 2013 22:19:16 -0400 Sender: linux-ext4-owner@vger.kernel.org List-ID: * There are two patches, one is used for fixing the max length of the argument, the other one is for sparsing copy when src is a sparse file. * BTW., we are trying to use the debugfs to create an ext2/ext3/ext4 image based on a given directory or file, which is similar to genext2fs, please vist here for the script you are interested in it: https://gist.github.com/robertlinux/6034499 It is an external shell script at the moment, the performance is not good, so we are going to: - Integrate this function into mke2fs in C language. - Add a [-d ] option to specify the initial directory in mke2fs I'm not sure whether such a patch is acceptable or not, please feel free to give your comments. Robert Yang Wind River System Robert Yang (2): debugfs.c: the max length of debugfs argument is too short debugfs.c: do sparse copy when src is a sparse file debugfs/debugfs.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 61 insertions(+), 11 deletions(-) -- 1.8.1.2