*
* Copyright (C) 2003-11 Bruce Allen
* Copyright (C) 2003-11 Doug Gilbert <dgilbert@interlog.com>
-<<<<<<< HEAD
* Copyright (C) 2008-16 Christian Franke
-=======
- * Copyright (C) 2008-15 Christian Franke <smartmontools-support@lists.sourceforge.net>
->>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74
*
* Original AACRaid code:
* Copyright (C) 2014 Raghava Aditya <raghava.aditya@pmcs.com>
#define ARGUSED(x) ((void)(x))
-<<<<<<< HEAD
const char * os_linux_cpp_cvsid = "$Id: os_linux.cpp 4295 2016-04-15 20:01:32Z chrfranke $"
-=======
-const char * os_linux_cpp_cvsid = "$Id: os_linux.cpp 4047 2015-03-22 16:16:24Z chrfranke $"
->>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74
OS_LINUX_H_CVSID;
extern unsigned char failuretest_permissive;
// copy user data into the task request structure
memcpy(task+sizeof(ide_task_request_t), data, 512);
-<<<<<<< HEAD
if (ioctl(get_fd(), HDIO_DRIVE_TASKFILE, task)) {
if (errno==EINVAL)
pout("Kernel lacks HDIO_DRIVE_TASKFILE support; compile kernel with CONFIG_IDE_TASK_IOCTL set\n");
-=======
- if ((retval=ioctl(get_fd(), HDIO_DRIVE_TASKFILE, task))) {
- if (errno==-EINVAL)
- pout("Kernel lacks HDIO_DRIVE_TASKFILE support; compile kernel with CONFIG_IDE_TASKFILE_IO set\n");
->>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74
return -1;
}
return 0;
buff[4]=normal_lo;
buff[5]=normal_hi;
-<<<<<<< HEAD
if (ioctl(get_fd(), HDIO_DRIVE_TASK, buff)) {
if (errno==EINVAL) {
-=======
- if ((retval=ioctl(get_fd(), HDIO_DRIVE_TASK, buff))) {
- if (errno==-EINVAL) {
->>>>>>> 3d8ad6fa4529eb02ae1391a1e937bf57aad3fb74
pout("Error SMART Status command via HDIO_DRIVE_TASK failed");
pout("Rebuild older linux 2.2 kernels with HDIO_DRIVE_TASK support added\n");
}