Whamcloud - gitweb
make-sparse: Write a zero-byte at the end of the image
authorTheodore Ts'o <tytso@mit.edu>
Sun, 23 Aug 2009 03:02:41 +0000 (23:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 23 Aug 2009 03:04:33 +0000 (23:04 -0400)
commit4087bbd68bc129c19f0130ba36679e3e8c80c617
tree59b6e797bac3249487ae18e7adcffc10b8535f5d
parent154a5d7537c35959aa646ef8f18daed8c9f1a2be
make-sparse: Write a zero-byte at the end of the image

This is necessary to preserve the i_size of the output file; otherwise
programs like e2fsck will complain that the filesystem has been
truncated.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
contrib/make-sparse.c