[lug] Convertion of ext4 Sparse Files
Steve Litt
slitt at troubleshooters.com
Fri Jan 5 23:32:27 MST 2018
On Fri, 5 Jan 2018 22:48:29 +0000 (UTC)
stimits at comcast.net wrote:
> Unfortunately this does not work (currently testing on Fedora 27), at
> least not for this file which was originally a dd of a GPT partition
> and then converted to sparse at a later time. Output and input files
> are both the sparse file size.
Then do this in C:
while((c = getc(sparsefile)) != EOF)
putc(c, normalfile);
I can't imagine that not working. I didn't test this, and you need to
add a little open/close/errorhandling scaffolding, but you get the
picture.
SteveT
Steve Litt
December 2017 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
More information about the LUG
mailing list