Whamcloud - gitweb
e2image: attempt to use ftruncate64 to set i_size for raw images
authorTheodore Ts'o <tytso@mit.edu>
Fri, 17 Feb 2012 14:23:12 +0000 (09:23 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Feb 2012 20:28:21 +0000 (15:28 -0500)
commit50a676e944356e188917f5174a7478817024213c
tree365d171b563d6cdd090f0253f7789a760c26a34c
parent2b7a30cc52fd27a1cf479d8682880d11ffd9850f
e2image: attempt to use ftruncate64 to set i_size for raw images

If ftruncate64() exists, try to use it to set i_size.  This isn't
guaranteed to work, per SuSv3, but if it doesn't work, it's guaranteed
to return an error.  So for file systems and/or operating systems that
don't support extending i_size via ftruncate64(), fall back to writing
the trailing null.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/e2image.c