[lug] Convertion of ext4 Sparse Files

stimits at comcast.net stimits at comcast.net
Sat Jan 6 08:39:30 MST 2018


Will give this a try later today...
 
----- Original Message -----From: Steve Litt <slitt at troubleshooters.com>To: lug at lug.boulder.co.usSent: Sat, 06 Jan 2018 06:32:27 -0000 (UTC)Subject: Re: [lug] Convertion of ext4 Sparse Files

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 toadd a little open/close/errorhandling scaffolding, but you get thepicture. SteveT

Steve Litt December 2017 featured book: Thriving in Tough Timeshttp://www.troubleshooters.com/thrive_______________________________________________Web Page: http://lug.boulder.co.usMailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lugJoin us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20180106/f198bbfc/attachment.html>


More information about the LUG mailing list