Skip to content

Commit

Permalink
Fix messages for "phantom" slices
Browse files Browse the repository at this point in the history
Using file.write(), so newlines need to be included.  Add the value
"phantom=1" for these so image2chunks won't generate angry messages.
  • Loading branch information
Elliott Mitchell authored and ehem committed Oct 25, 2016
1 parent 3cd5fe8 commit 1aca64c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions undz.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,9 @@ def extractSlice(self, file, name):
params.write(u"blockSize={:d}\n".format(1<<self.dz.shiftLBA))
params.write(u"blockShift={:d}\n".format(self.dz.shiftLBA))
else:
params.write(u"# this is a phantom slice, no writes are done")
params.write(u"# (though it could be getting wiped)")
params.write(u"phantom=1\n")
params.write(u"# this is a phantom slice, no writes are done\n")
params.write(u"# (though it could be getting wiped)\n")

params.close()

Expand Down

0 comments on commit 1aca64c

Please sign in to comment.