bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] Suggestions to rename "logfile"


From: Martin Bittermann
Subject: Re: [Bug-ddrescue] Suggestions to rename "logfile"
Date: Fri, 17 Jul 2015 19:06:27 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Hello,

although I originally suggested "blockfile", I'd now totally go with "mapfile".

This would really help distinguish it from other meanings of 'block' -- as Florian said. After all the logfile is a mapping function. You give it an offset, then it maps this offset to a status.

Am 17.07.2015 um 17:46 schrieb Florian Sedivy:
Hello Antonio!

I know I am quite late to the party, as there already is a release candidate with 
"blockfile", but would still like to give my input.

My proposition is "mapfile" to replace "logfile"
Alternatively "blockmap"

You responded to this before:
Robert Trevellyan wrote:
mapfile
rescuemap
Antonio Diaz Diaz answered:
The problem with these is that 'map' is only mentioned in the ddrescue 
documentation in relation with the '--test-mode', while 'block' is mentioned in 
about all places related to the logfile.
But that is exactly the reason why I would not use "blockfile". Everything in ddrescue is about blocks. It 
reads from block-devices in portions of soft-blocks and hard-blocks, it uses blocks as unit, and so on. Just about 
every input or output file in ddrescue could be coined as a "blockfile". No wonder "block" appears 
all over the documentation. If you are looking to replace the word "log", the better choice is a new word, 
one not already present in so many other contexts.

What is the logfile? It is a map of blocks. (You even phrased it yourself that way in the --test-mode description.) It is not a list of blocks, 
because it does not list single blocks or some blocks. A "loose" logfile might be considered a list of block-ranges, but a well defined 
logfile "lists" all blocks and defines a status (think "color") for them, thereby painting a map of blocks. The defining part 
here is "map", while "blocks" is redundant in the world of ddrescue - what else? Therefore I'd slightly prefer 
"mapfile" to "blockmap".




reply via email to

[Prev in Thread] Current Thread [Next in Thread]