X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=scsiprint.h;h=fad594de9c197f48430f03b99cee14013642ffee;hb=ee38a438aafef7a04b7df628ca5ad38810a1d63e;hp=429223ea9c18f3a7b82603506817e7853666e220;hpb=832b75ede04683f4f493716791e44174e2d3694d;p=mirror_smartmontools-debian.git diff --git a/scsiprint.h b/scsiprint.h index 429223e..fad594d 100644 --- a/scsiprint.h +++ b/scsiprint.h @@ -3,11 +3,11 @@ * * Home page of code is: http://smartmontools.sourceforge.net * - * Copyright (C) 2002-6 Bruce Allen + * Copyright (C) 2002-9 Bruce Allen * Copyright (C) 2000 Michael Cornwell * * Additional SCSI work: - * Copyright (C) 2003-6 Douglas Gilbert + * Copyright (C) 2003-13 Douglas Gilbert * * 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 @@ -15,8 +15,8 @@ * 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. + * (for example COPYING); if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * This code was originally developed as a Senior Thesis by Michael Cornwell * at the Concurrent Systems Laboratory (now part of the Storage Systems @@ -26,12 +26,57 @@ */ -/* scsismart version number */ #ifndef SCSI_PRINT_H_ #define SCSI_PRINT_H_ -#define SCSIPRINT_H_CVSID "$Id: scsiprint.h,v 1.20 2006/04/12 14:54:28 ballen4705 Exp $\n" +#define SCSIPRINT_H_CVSID "$Id: scsiprint.h 3776 2013-02-17 04:25:42Z dpgilbert $\n" -int scsiPrintMain(int fd); +// Options for scsiPrintMain +struct scsi_print_options +{ + bool drive_info; + bool smart_check_status; + bool smart_vendor_attrib; + bool smart_error_log; + bool smart_selftest_log; + bool smart_background_log; + bool smart_ss_media_log; + + bool smart_disable, smart_enable; + bool smart_auto_save_disable, smart_auto_save_enable; + + bool smart_default_selftest; + bool smart_short_selftest, smart_short_cap_selftest; + bool smart_extend_selftest, smart_extend_cap_selftest; + bool smart_selftest_abort; + bool smart_selftest_force; // Ignore already running test + + bool sasphy, sasphy_reset; + + bool get_wce, get_rcd; + short int set_wce, set_rcd; // disable(-1), enable(1) cache + + scsi_print_options() + : drive_info(false), + smart_check_status(false), + smart_vendor_attrib(false), + smart_error_log(false), + smart_selftest_log(false), + smart_background_log(false), + smart_ss_media_log(false), + smart_disable(false), smart_enable(false), + smart_auto_save_disable(false), smart_auto_save_enable(false), + smart_default_selftest(false), + smart_short_selftest(false), smart_short_cap_selftest(false), + smart_extend_selftest(false), smart_extend_cap_selftest(false), + smart_selftest_abort(false), + smart_selftest_force(false), + sasphy(false), sasphy_reset(false), + get_wce(false), get_rcd(false), + set_wce(0), set_rcd(0) + { } +}; + +int scsiPrintMain(scsi_device * device, const scsi_print_options & options); #endif