Re: [patch] fix nonsense errno code in os_linux.cpp
Christian Franke <[email protected]> Thu, 14 Apr 2016 07:31:57 +0200
| Newsgroups | gmane.linux.utilities.smartmontools |
|---|---|
| Message-ID | <[email protected]> |
Yuriy M. Kaminskiy wrote:
> I noticed strange code in os_linux.cpp, like this:
>
> + if (ioctl(get_fd(), HDIO_DRIVE_TASKFILE, task)) {
> + if (errno==-EINVAL)
>
> I don't think this can work as expected (fortunately, it seems it is only in
> obsolete /dev/hda support, and only used for generating "user-friendly"
> message on error path). Patch attached.
Thanks for catching this 12 year old bug :-)
https://www.smartmontools.org/changeset/1609/trunk/sm5/os_linux.c
I will commit it soon.
Thanks,
Christian
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z