Select Git revision
test_hg_beam.py
-
Daniel Brown authored
adding in block selector to loadkatfile and parsecommands, so that it only reads in certain blocks. Fixed factorial code in HG_beam
Daniel Brown authoredadding in block selector to loadkatfile and parsecommands, so that it only reads in certain blocks. Fixed factorial code in HG_beam
drivedb.h 135.63 KiB
/*
* drivedb.h - smartmontools drive database file
*
* Home page of code is: http://smartmontools.sourceforge.net
*
* Copyright (C) 2003-11 Philip Williams, Bruce Allen
* Copyright (C) 2008-15 Christian Franke
*
* 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, see <http://www.gnu.org/licenses/>.
*
*/
/*
* Structure used to store drive database entries:
*
* struct drive_settings {
* const char * modelfamily;
* const char * modelregexp;
* const char * firmwareregexp;
* const char * warningmsg;
* const char * presets;
* };
*
* The elements are used in the following ways:
*
* modelfamily Informal string about the model family/series of a
* device. Set to "" if no info (apart from device id)
* known. The entry is ignored if this string starts with
* a dollar sign. Must not start with "USB:", see below.
* modelregexp POSIX extended regular expression to match the model of
* a device. This should never be "".
* firmwareregexp POSIX extended regular expression to match a devices's
* firmware. This is optional and should be "" if it is not
* to be used. If it is nonempty then it will be used to
* narrow the set of devices matched by modelregexp.
* warningmsg A message that may be displayed for matching drives. For
* example, to inform the user that they may need to apply a
* firmware patch.
* presets String with vendor-specific attribute ('-v') and firmware
* bug fix ('-F') options. Same syntax as in smartctl command
* line. The user's own settings override these.
*
* The regular expressions for drive model and firmware must match the full
* string. The effect of "^FULLSTRING$" is identical to "FULLSTRING".
* The form ".*SUBSTRING.*" can be used if substring match is desired.
*
* The table will be searched from the start to end or until the first match,
* so the order in the table is important for distinct entries that could match
* the same drive.
*
*
* Format for USB ID entries:
*
* modelfamily String with format "USB: DEVICE; BRIDGE" where
* DEVICE is the name of the device and BRIDGE is
* the name of the USB bridge. Both may be empty
* if no info known.
* modelregexp POSIX extended regular expression to match the USB
* vendor:product ID in hex notation ("0x1234:0xabcd").
* This should never be "".
* firmwareregexp POSIX extended regular expression to match the USB
* bcdDevice info. Only compared during search if other
* entries with same USB vendor:product ID exist.
* warningmsg Not used yet.