[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] Thanks !
From: |
Antonio Diaz Diaz |
Subject: |
Re: [Bug-ddrescue] Thanks ! |
Date: |
Thu, 26 Feb 2015 21:01:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
Hello Hervé,
Hervé Bérenger wrote:
Thanks a lot for this great soft, ddrescue !
You are welcome! :-)
A short anecdote : the drive capacity was 400Go ; retrieving all the
data was taking ages, so I looked at the code to check whether I could
improve it and realized it used the "open" function to access the
peripheral. "/Ah ah/", I thought, "/why not use fopen, which is said to
be faster ?/". Certainly a bad idea !
On posix systems, 'fopen' is usually built on top of 'open', so it
should not be faster. 'open' is also lower level and does provide more
control than 'fopen'.
Morality : I'll think twice next time I fancy I could be smarter than
the software author (because most often I won't !)
At least it is a good idea to not make experiments in the middle of a
real rescue.
Thanks again (I've just made a donation through paypal),
Thank you very much for supporting the development of ddrescue.
Best regards,
Antonio.