]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - os_linux.cpp
Imported Upstream version 5.38
[mirror_smartmontools-debian.git] / os_linux.cpp
index 1aeb9f36f47551a4e74ca320fdb908e5920281e6..d3faa02dba795064b7305476247f0cacd92cf305 100644 (file)
@@ -3,8 +3,8 @@
  *
  * Home page of code is: http://smartmontools.sourceforge.net
  *
- * Copyright (C) 2003-7 Bruce Allen <smartmontools-support@lists.sourceforge.net>
- * Copyright (C) 2003-7 Doug Gilbert <dougg@torque.net>
+ * Copyright (C) 2003-8 Bruce Allen <smartmontools-support@lists.sourceforge.net>
+ * Copyright (C) 2003-8 Doug Gilbert <dougg@torque.net>
  *
  *  Parts of this file are derived from code that was
  *
@@ -79,9 +79,9 @@ typedef unsigned long long u8;
 
 #define ARGUSED(x) ((void)(x))
 
-static const char *filenameandversion="$Id: os_linux.cpp,v 1.98 2008/02/17 00:30:47 dpgilbert Exp $";
+static const char *filenameandversion="$Id: os_linux.cpp,v 1.100 2008/03/04 22:09:47 ballen4705 Exp $";
 
-const char *os_XXXX_c_cvsid="$Id: os_linux.cpp,v 1.98 2008/02/17 00:30:47 dpgilbert Exp $" \
+const char *os_XXXX_c_cvsid="$Id: os_linux.cpp,v 1.100 2008/03/04 22:09:47 ballen4705 Exp $" \
 ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_LINUX_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID;
 
 // to hold onto exit code for atexit routine
@@ -484,12 +484,13 @@ int ata_command_interface(int device, smart_command_set command, int select, cha
     buff[2]=ATA_SMART_STATUS;
     break;
   case AUTO_OFFLINE:
-    // NSECT is 241 for enable but no data transfer.  Use TASK ioctl.
+    // NOTE: According to ATAPI 4 and UP, this command is obsolete
+    // select == 241 for enable but no data transfer.  Use TASK ioctl.
     buff[1]=ATA_SMART_AUTO_OFFLINE;
     buff[2]=select;
     break;
   case AUTOSAVE:
-    // NSECT is 248 for enable but no data transfer.  Use TASK ioctl.
+    // select == 248 for enable but no data transfer.  Use TASK ioctl.
     buff[1]=ATA_SMART_AUTOSAVE;
     buff[2]=select;
     break;