bug-ddrescue
[Top][All Lists]
Advanced

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

Re: [Bug-ddrescue] [PATCH] Add device_id() for Cygwin


From: Antonio Diaz Diaz
Subject: Re: [Bug-ddrescue] [PATCH] Add device_id() for Cygwin
Date: Sun, 17 Jan 2016 21:12:10 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.8.1.4) Gecko/20070601 SeaMonkey/1.1.2

Hello Christian,

Christian Franke wrote:
...
New attached new patch avoids the union, does strict index checks and ensures zero termination. It now also allows that an ATA IDENTIFY string is only in VendorId or ProductId which occasionally happened with some older drives.
...

Could the patch possibly be included into 1.21 ?

First of all, thanks for the patches. I appreciate your effort, but the windows way of getting a device ID is ugly as hell. I would have accepted something in the line of linux or haiku:

ioctl(...)
id_str = (const char *)ptr;

Instead windows seems to need all kinds of hacks and obscure constructs to achieve the same result.

So I think that from now on I'll accept only simple patches for non_posix.cc, similar to the two already included there.


Thanks and regards,
Antonio.



reply via email to

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