Skip to content
Snippets Groups Projects
Select Git revision
  • 5e3c5d997139933d0ae726b67d15b68e7f050108
  • master default protected
  • legacy
  • jdk-17.0.13-ga-legacy
  • jdk-17.0.14+4
  • jdk-17.0.14+3
  • jdk-17.0.14+2
  • jdk-17.0.14+1
  • jdk-17.0.13-ga
  • jdk-17.0.13+11
  • jdk-17.0.13+10
  • jdk-17.0.13+9
  • jdk-17.0.13+8
  • jdk-17.0.13+7
  • jdk-17.0.13+6
  • jdk-17.0.14+0
  • jdk-17.0.13+5
  • jdk-17.0.13+4
  • jdk-17.0.13+3
  • jdk-17.0.13+2
  • jdk-17.0.13+1
  • jdk-17.0.13+0
  • jdk-17.0.12-ga
23 results

Tests.java

Blame
  • atacmds.cpp 55.75 KiB
    /*
     * atacmds.c
     * 
     * Home page of code is: http://smartmontools.sourceforge.net
     *
     * Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
     * Copyright (C) 1999-2000 Michael Cornwell <cornwell@acm.org>
     * Copyright (C) 2000 Andre Hedrick <andre@linux-ide.org>
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation; either version 2, or (at your option)
     * any later version.
     *
     * You should have received a copy of the GNU General Public License
     * (for example COPYING); if not, write to the Free
     * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     *
     * This code was originally developed as a Senior Thesis by Michael Cornwell
     * at the Concurrent Systems Laboratory (now part of the Storage Systems
     * Research Center), Jack Baskin School of Engineering, University of
     * California, Santa Cruz. http://ssrc.soe.ucsc.edu/
     * 
     */
    
    #include <stdio.h>
    #include <string.h>
    #include <errno.h>
    #include <stdlib.h>
    #include <ctype.h>
    
    #include "atacmds.h"
    #include "config.h"
    #include "int64.h"
    #include "extern.h"
    #include "utility.h"
    
    const char *atacmds_c_cvsid="$Id: atacmds.cpp,v 1.161 2004/08/18 19:27:44 likewise Exp $"
    ATACMDS_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID INT64_H_CVSID UTILITY_H_CVSID;
    
    // to hold onto exit code for atexit routine
    extern int exitstatus;
    
    // for passing global control variables
    extern smartmonctrl *con;
    
    // These Drive Identity tables are taken from hdparm 5.2, and are also
    // given in the ATA/ATAPI specs for the IDENTIFY DEVICE command.  Note
    // that SMART was first added into the ATA/ATAPI-3 Standard with
    // Revision 3 of the document, July 25, 1995.  Look at the "Document
    // Status" revision commands at the beginning of
    // http://www.t13.org/project/d2008r6.pdf to see this.
    #define NOVAL_0                 0x0000
    #define NOVAL_1                 0xffff
    /* word 81: minor version number */
    #define MINOR_MAX 0x22
    const char *minor_str[] = {                     /* word 81 value: */
      "Device does not report version",             /* 0x0000       */
      "ATA-1 X3T9.2 781D prior to revision 4",      /* 0x0001       */
      "ATA-1 published, ANSI X3.221-1994",          /* 0x0002       */
      "ATA-1 X3T9.2 781D revision 4",               /* 0x0003       */
      "ATA-2 published, ANSI X3.279-1996",          /* 0x0004       */
      "ATA-2 X3T10 948D prior to revision 2k",      /* 0x0005       */
      "ATA-3 X3T10 2008D revision 1",               /* 0x0006       */ /* SMART NOT INCLUDED */
      "ATA-2 X3T10 948D revision 2k",               /* 0x0007       */
      "ATA-3 X3T10 2008D revision 0",               /* 0x0008       */ 
      "ATA-2 X3T10 948D revision 3",                /* 0x0009       */
      "ATA-3 published, ANSI X3.298-199x",          /* 0x000a       */
      "ATA-3 X3T10 2008D revision 6",               /* 0x000b       */ /* 1st VERSION WITH SMART */
      "ATA-3 X3T13 2008D revision 7 and 7a",        /* 0x000c       */