Skip to content
Commit f6a592e8 authored by Chris Malley's avatar Chris Malley Committed by Linus Torvalds
Browse files

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: default avatarChris Malley <mail@chrismalley.co.uk>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 78bd8fbb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment