NEWS: update for changes in previous commit; run untab of scsi source

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5334 4ea69e1a-61f1-4043-bf83-b5c94c648137
pull/86/merge
dpgilbert 7 months ago
parent 54408c7912
commit a37d42c043
  1. 4
      smartmontools/ChangeLog
  2. 6
      smartmontools/NEWS
  3. 12
      smartmontools/scsiprint.cpp
  4. 2
      smartmontools/scsiprint.h

@ -1,5 +1,9 @@
$Id$
2022-02-25 Douglas Gilbert <dgilbert@interlog.com>
NEWS: update for changes in previous commit
2022-02-25 Douglas Gilbert <dgilbert@interlog.com>
smartctl.cpp, scsiprint.cpp: extend --log=defects option so it

@ -11,11 +11,15 @@ Summary: smartmontools release 7.3
- smartctl '-j': Many additions to the JSON output for SCSI/SAS devices.
- smartctl '-j': JSON output always includes timestamp, regardless of '-i'.
- smartctl '-i' and '--identify': ATA ACS-5 enhancements.
- smartctl '-l defects': additionally works for SCSI Pending Defects log
subpage.
- smartctl '-l envrep': Prints SCSI Environmental Reporting log subpage.
- smartctl '-l scterc[,R,W],p': Gets/sets the persistent power-on values.
- smartctl '-l scterc,reset': Restores to manufacturer's default values.
- smartctl '-l scttemp': Prints SCSI Environmental Reporting log subpage.
- smartctl '-l tapedevstat': Prints SCSI Tape Device Statistics log page.
- smartctl '-l tapealert': Prints SCSI Tape Alert log page.
- smartctl '-l zdevstat': Prints SCSI Zoned Block Device Statistics log
subpage.
- smartctl '-H': No longer checks and clears the SCSI Tape Alert log page
unless the option is given twice.
- smartctl '-H': No longer sets bit 2 of exit status if ATA attributes are

@ -3400,21 +3400,21 @@ scsiPrintMain(scsi_device * device, const scsi_print_options & options)
scsiGetSupportedLogPages(device);
checkedSupportedLogPages = true;
}
if (options.smart_error_log) {
if (options.smart_error_log) {
scsiPrintErrorCounterLog(device);
any_output = true;
}
}
if (gPendDefectsLPage) {
scsiPrintPendingDefectsLPage(device);
any_output = true;
}
if (options.smart_error_log) {
}
if (options.smart_error_log) {
if (1 == scsiFetchControlGLTSD(device, modese_len, 1)) {
pout("\n[GLTSD (Global Logging Target Save Disable) set. "
"Enable Save with '-S on']\n");
any_output = true;
}
}
}
}
}
if (options.smart_selftest_log) {
if (! checkedSupportedLogPages) {

@ -58,7 +58,7 @@ struct scsi_print_options
bool set_standby_now = false; // set drive to standby
bool set_active = false; // set drive to active
int health_opt_count = 0; // TapeAlert log page only read if this value > 1
int health_opt_count = 0; // TapeAlert log page only read if this value > 1
};
int scsiPrintMain(scsi_device * device, const scsi_print_options & options);

Loading…
Cancel
Save