===============
Version History - openSeaChest_Erase
===============
openSeaChest_Erase is branched off from openSeaChest Basics v1.0.3.

v0.0.1  14-Mar-2015  Added --writeSame, --revertSP and TCG --revert.
v0.0.2  21-May-2015  Added --testUnitReady. Improved device discovery.
v0.0.3  12-Aug-2015  Modified some commands to consist of two parts - starting
                     LBA and LBA range count.  Improved device discovery.
                     Corrections to verbose output.
v0.0.3  16-Oct-2015  1_7_0 libraries.  Added enhanced version information.
                     Added -sat12byte to increase compatibility.  Added
                     --SATInfo to compare ATA vs SCSI identification
                     differences.
v1.0.0  02-May-2016  1_9_1 libraries.  Added new verbosity level. Added
                     --onlySeagate restriction.  Added --modelMatch and
                     --onlyFW filters. Added logic change for --overwrite and
                     --trim commands to assume Max LBA (end of the drive) as
                     the range when the erase range is not specified.  Added
                     --performQuickestErase, --formatUnit, --fastFormat,
                     --showEraseSupport.
v1.0.1  19-May-2016  1_9_2 libraries fixed scan information from ATAPI devices.
                     Fixed a bug where we could accidentally clear some stored
                     identify data from the device structure. Fixed continuing
                     on when there was a permission denied error opening a
                     drive. Adjustments to --fastFormat.
v1.0.2  15-Jun-2016  1_9_3 libraries fixed issues with ATA secure erase
                     commands. Fixed bugs with --modelMatch and --onlyFW
                     filters.
v1.1.0  06-Jul-2016  1_10_0 libraries add --forceATA and --forceSCSI.  Added
                     --displayLBA and --pattern.
v1.1.1  14-Jul-2016  1_10_1 libraries adds SMART and power management
                     functions, format polling, endianess detection, buffer
                     size fixes, SAS device statistics, Win32 IOCTL
                     pass-through fix on Win8 and higher. Added support for
                     maxLBA keyword.
v1.2.0  01-Sep-2016  1_11_1 libraries updates to various printed message,
                     minor bug fixes. Fixed --SATInfo command.
v1.2.0  21-Sep-2016  1_11_2 libraries updates adds --forceATADMA, --forceATAPIO
                     and --forceATAUDMA  (SATA Only).
v1.3.0  10-Oct-2016  1_11_4 libraries updates. Support for multiple devices.
v1.3.0  25-Oct-2016  1_11_5 libraries updates improved LaCie  detection, adds
                     SAT Vendor ID, SAT Product ID, and SAT Product Revision to
                     the -i --SATInfo output.
v1.3.1  27-Oct-2016  1_11_6 libraries updates WWN detection.  Added
                     --enableLegacyUSBPassthrough
v1.3.1  03-Nov-2016  1_11_7 libraries fixed issue with SAS EPC power mode
                     settings.
v1.3.2  10-Nov-2016  1_11_8 libraries fixed issue with Sanitize Overwrite
                     patterns. Also improved logic when using the various Range
                     commands.
v1.3.2  13-Dec-2016  1_11_10 libraries fixes a problem when using maxLBA without
                     the corresponding command range option, SAS power mode
                     setting, and Sanitize erase patterns.
v1.4.0  23-Feb-2017  1_13_0 libraries adds support for SAS 12.0Gb/s and
                     22.5Gb/s physical bus speeds, support for double buffered
                     passthrough IOCTLs. --showEraseSupport now gives overwrite
                     erase time estimate.  --progress support for writesame
                     removed (caused test to abort), use --poll instead. Add
                     --hideLBACounter. New -F, --scanFlags [options: ignoreCSMI
                     allowDuplicates] for Windows tools. Add CSMI support to
                     all Windows version tools.
v1.4.0  06-Mar-2017  1_13_2 libraries adds Enhanced device information output
                     for SAS features.
v1.5.0  24-May-2017  1_14_3 libraries. Added "Storage Element Depopulation" if
                     a supported feature.  Adds --showPhysicalElementStatus,
                     --forceSeagateDepop, --removePhysicalElement.
v1.6.0  14-Jun-2017  1_15_0 libraries adds bug fix malformed command line
                     should exit with code = 1; added detection of parallel ATA
                     and SCSI speeds; temperature data on ATA now uses the
                     values from the SCT status log or device statistics log.
                     Bug fix where the "-d all" was not filtering out csmi
                     drives like it is supposed to causing duplicate drives to
                     show up.  Adds the child drive matching options
                     --childModelMatch, --childOnlyFW, and --childNewFW.  Bug
                     fix with --showEraseSupport showing non-ascii characters.
                     Added --showPhysicalElementStatus and
                     --removePhysicalElement.
v1.7.0  14-Jul-2017  1_16_1 libraries adds support for ATA drives that have the
                     Sense Data Reporting feature enabled, changes to how we
                     interpret the completion status from the drive, new Sense
                     Data ASC, ASCQ definitions from SPC5. Adds --Scan (or -S,
                     note the capital S) aggressive system scan.
v1.7.0  27-Jul-2017  1_16_2 libraries enhances Seagate brand detection.
v1.7.0  19-Sep-2017  1_16_4 libraries fixes SCSI "--progress format", added
                     reading remanufacture time for SAS when the drive reports
                     a time, fixed SAS --abortDST.
v1.7.0  25-Sep-2017  1_17_0 libraries adds improved SATA device discovery on
                     SAS adapters, added NVMe read, write & Flush commands.
v1.7.1  10-Oct-2017  1_17_1 libraries adds Better handling of NVMe as a SCSI
                     device, SAT library strings, and fixes to Read-Buffer
                     error history (ISL). Updated copyright notice, invalid
                     command line options now only display an error instead of
                     long help. Added remanufacturing time for SCSI.
v1.7.3  12-Oct-2017  1_17_3 libraries improves Fast-Format compatibility on SAS.
                     Added detection of current SAS format protection mode.
v1.7.3  26-Oct-2017  1_17_5 libraries fixes SATA drive discovery behind HBAs
                     that don't show as SATA and don't support the SAT VPD
                     page; added Automatic fallback to 12byte CDBs during
                     initial device discovery;  integrated fixes for SAS
                     firmware download and fixes for SAS LongDST time
                     calculation; added detection of TCG Pyrite and Opalite
                     drives.
v1.7.3  31-Oct-2017  1_17_6 libraries adds ATA Security compatibility with SATL
                     on some LSI adapters, corrects firmware download issue
                     under Windows 10 API.
v1.7.3  02-Nov-2017  1_17_7 libraries fixes Long DST time on SCSI/SAS products.
v1.7.3  19-Apr-2018  1_18_0 libraries improves device detection of CD-ROM and
                     USB flash drives, support for early 90's PATA drives that
                     don't support LBA mode, bug fix where the last digit of
                     the SCSI Unit Serial Number was being dropped, additional
                     logic for deferred download completion status. --scan
                     --onlySeagate for just Seagate drives in a large system,
                     Long Drive Self Test Time in the -i output, write protect
                     status has been added for SCSI and NVMe in the -i output,
                     IDD enhancements for SAS, IDD enhancements to allow
                     captive mode on SATA, added USB Hacks to better support
                     some odd-ball USB devices and prevent crashes and improve
                     performance for some operations on them by issuing test
                     unit ready commands when something fails during device
                     discovery, automatic fall back to SAT 10 byte commands
                     during device discovery to help work with some USB
                     devices, some Legacy SCSI support enhancements (partially
                     from USB hacks development), enhanced SD to SG mapping in
                     Linux. Removed immediate bit from SAS Fast Format.
v1.7.4  21-Sep-2018  1_18_2 libraries Added in reading os-release PRETTY_NAME
                     field to get the OS name under linux; NVMe enabled;  fixed
                     a bug in the ATA activate FW command; added in reading ID
                     Data log and Device statistics logs page 0 to check the
                     list of supported pages; fixed a bug in the loop used to
                     read mode pages for -i information on SAS; IDD SAS
                     improvements; fixed a bug in DST & Clean with ATA drives
                     behind SCSI controllers. Fix for --modelMatch that have
                     spaces in the name. Added additional information to the
                     banner and -V data to show support levels. Add general
                     support for NVMe and NVMe specific identify data to "-i"
                     command.
v1.7.4  18-Oct-2018  1_18_3 libraries Added NVMe generic read command support.
v1.9.0  28-Feb-2019  1_19_2 libraries.  ATA Security password options sometimes
                     needed for ATA Security Erase controls.  Added
                     --ataSATsecurityProtocol, --ataSecPassword,
                     --ataSecPassType, --ataSecPWMod. Removed
                     --disableATASecurityPW. Rename --secureErase to
                     --ataSecureErase.
v2.0.0  03-May-2019  1_19_18 libraries added per device verbosity, --deviceInfo
                     adds SAS (not SATA) FastFormat for Features Supported
                     section,  --deviceInfo now gives Low Current Spinup
                     status. Adds --psid (removes that argument from
                     --revertSP), adds --sid.
v2.0.1 10-Jun-2019   1_19_23 libraries added SNTL (SCSI to NVMe translator),
                     updated software SAT translator to use dataset management
                     XL command, fixes for issuing vendor unique commands under
                     Windows, improved fast format support detection, and
                     refactored verbose output for NVMe commands.
v2.1.1 19-Feb-2020   1_21_30 libraries add in check for Elevated Privileges
                     (sudo, run as administrator) before trying to talk to
                     devices, new exit code 9 if privileges are missing;
                     printing the USB VID/PID in the device info; fix to sg
                     helper to support large systems; many changes in support
                     of dual actuators (example: warning that EPC settings
                     affect multiple LUNs); overhaul to USB device detection
                     and support, incorporating a new USB hacks and workarounds
                     approach which uses a lookup table listing various USB
                     bridge VIDs/PIDs and their specific issues; separate
                     Seagate SAS SN and PCBA SN.
v2.1.2  13-Apr-2020  1_21_30 libraries, fix memory allocation during the scan
                     command.
v3.0.0  20-Nov-2020  Changed how scan-flags are parsed. CSMI rewrite and initial
                     Intel RST NVMe support added. Numerous code quality improvements
                     which fixed many potential bugs and memory leaks. Improved
                     support for openfabrics NVMe drivers. Changed permissions
                     detection to show warnings rather than errors. Removed obsolete
                     CSMI and SAT 12B CDB options. CSMI handles now show as csmi:?:?:?
                     Depopulation options are being moved to SeaChest_Format in future
                     releases. Supported in this version, but will be moved in the future.
                     Removed Trim/Unmap from supported erase methods and quickest erase
                     since these are "hints" that may cause an erase, but are not guaranteed.
v3.0.3  12-Feb-2021  Improved argument parsing to accept hex in addition to decimal for
                     many different options.
                     Marking depopulate & getPhysicalElement status options as obsolete
                     as they have been migrated to SeaChest_Format.
                     Setting fast-format to hold busy until complete for better results.
                     More messages are now displayed warning not to interrupt format/fast
                     format operations and depopulate.
                     opensea-transport code pulled in enhancements to attempt to block
                     other applications and the OS from interrupting format, fast format,
                     depopulate, and ATA security erase to prevent potential problems
                     during these operations or which may leave the drive in a bad state
                     if they are interrupted.
v3.1.0  27-Apr-2021  SATA write same automatically implied poll since progress checks
                     are not possible without stopping the write same that is in progress.
                     Fixed bugs in SAS write same detection.
v3.1.1  16-Jun-2021  Added more information about Seagate PSIDs to assist with
                     troubleshooting why a revert or revertSP may have failed.
                     Minor USB compatibility improvements and more products added
                     to the list with their specific workarounds.
                     Updated NVMe compatibility for FreeBSD 11.
                     Support for detection and showing of concurrent positioning 
                     (new multi-actuator support from the standards).
v4.1.0  28-Feb-2023  Includes new --noBanner option and new fast discovery option
                     that can be used in situations where super critical performance
                     is required at a loss of information about a drive's capabilities.
                     Help now has many more examples of the options in the tool.
                     Added nvm format to list of options to do user secure erase. This
                     has also been pulled into the performQuickestErase option.
                     Fixed error in parsing --psid option causing it to report it was
                     always missing.
v4.1.0  27-Mar-2023  opensea-operations library updated to fix to add
                     workaround for overwrite not erasing some drives in Windows.
                     opensea-transport updated to fix CSMI scan duplicating devices 
                     found in certain scenarios.
v4.3.6  01-Dec-2023  Updated to newer opensea-libs to pull in low-level fixes.
                     Added whether an erase qualifies as clear vs purge according
                     to IEEE 2883 in --showEraseSupport output.
                     Fixed a bug in Windows translating NVMe deallocate to SCSI unmap.
                     Improved Deallocate support detection for NVMe drives in Windows
                     with other NVMe drivers.
                     Added --eraseRestoreMaxPrep to handle restoring maxLBA taking
                     into account HPA, DCO, and AMAC features on ATA drives ahead of erasure.
                     Added --zeroVerify option to check a drive is filled with zeroes.
                     Stopped reading /etc/passwd file to show username in banner.
                     Banner will now show either "admin"/"root" or "current user".
                     Improved parsing of linux distro/release information from
                     /etc/os-release file.
                     Fixed a bug in byte swap string used to get ATA MN, SN, FW.
                     Fixed a bug in getting/reporting power on hours as years, 
                     days, hours, etc where days was being truncated.
                     Fixed error reading NVMe features in Windows for drive info.
                     Fixed SAS Date of manufacture in drive info.
                     Added detection of HPA security feature.
                     Added more SMART attributes definitions for Seagate HDDs & SSDs,
                     and more definitions for Maxtor HDDs.
                     Improved temperature detection from older HDDs with only
                     SMART attribute 194 reporting current temperature.
                     Added separate warning for SMART attributes below threshold that
                     are not considered prefail/warranty attributes (aka failures).
                     Fixed output of Seagate Airflow temperature SMART attribute.
                     Added showing new capacity after changing Max LBA.
                     Fixed possible segmentation fault when reading /etc/mtab in Linux.
                     Workaround for some SAS drives on some HBAs reporting incorrect
                     response to SAT A1h CDB.
                     Fixed a bug in FreeBSD causing non-data ATA commands to report
                     all zeroes instead of expected output in RTFRs.
