linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2 v2] debugfs: dump a sparse file as a new sparse file
@ 2013-01-01 12:30 Zheng Liu
  2013-01-01 12:30 ` [PATCH 1/2 v2] debugfs: fixup the hard-coded buffer length in dump_file Zheng Liu
  2013-01-01 12:30 ` [PATCH 2/2 v2] debugfs: dump a sparse file as a new sparse file Zheng Liu
  0 siblings, 2 replies; 11+ messages in thread
From: Zheng Liu @ 2013-01-01 12:30 UTC (permalink / raw)
  To: linux-ext4; +Cc: Zheng Liu, George Spelvin, Theodore Ts'o

Currently when we use dump command in debugfs to dump a file, all extents will
be dumped to a new file no matter whether these extents are written or not.  If
we want to dump a sparse file, it will waste time to fill zero into the file.
This patch series tries to avoid to dump unwritten extent.

v2 <- v1:
  - split original patch into two parts.
  - make code clearly according to Ted's suggestions

Here is the first version:
  http://patchwork.ozlabs.org/patch/199303/

Regards,
						- Zheng

Zheng Liu (2):
  debugfs: fixup the hard-coded buffer length in dump_file
  debugfs: dump a sparse file as a new sparse file

 debugfs/dump.c      | 25 ++++++++++++++++++++++---
 lib/ext2fs/ext2fs.h |  3 +++
 lib/ext2fs/fileio.c | 50 +++++++++++++++++++++++++++++++++++++++-----------
 3 files changed, 64 insertions(+), 14 deletions(-)

-- 
1.7.12.rc2.18.g61b472e


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-01-10  0:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-01 12:30 [PATCH 0/2 v2] debugfs: dump a sparse file as a new sparse file Zheng Liu
2013-01-01 12:30 ` [PATCH 1/2 v2] debugfs: fixup the hard-coded buffer length in dump_file Zheng Liu
2013-01-01 20:14   ` Theodore Ts'o
2013-01-01 12:30 ` [PATCH 2/2 v2] debugfs: dump a sparse file as a new sparse file Zheng Liu
2013-01-01 20:38   ` Theodore Ts'o
2013-01-04  4:05     ` Zheng Liu
2013-01-04 19:37       ` Theodore Ts'o
2013-01-05  4:45         ` Zheng Liu
2013-01-09 14:58           ` Theodore Ts'o
2013-01-09 15:34             ` Zheng Liu
2013-01-10  0:42             ` George Spelvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).