lguest example launcher truncates block device file to 0 length on problems
authorChris Malley <[email protected]>
Wed, 26 Sep 2007 04:19:18 +0000 (14:19 +1000)
committerLinus Torvalds <[email protected]>
Wed, 26 Sep 2007 16:22:04 +0000 (09:22 -0700)
commitf6a592e8abd2f2394623ce5427cbb4c265495974
treeff5e176b3ee0832978babae80bb13f32c8a77699
parent78bd8fbbcd66fc977baa40e7fd838a4461b0f727
lguest example launcher truncates block device file to 0 length on problems

The function should also use ftruncate64() rather than ftruncate() to prevent
files over 4GB (not uncommon for a root filesystem) being zeroed.

Signed-off-by: Chris Malley <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/lguest/lguest.c