Skip to content

v0.0.1

Latest
Compare
Choose a tag to compare
@bensallen bensallen released this 08 Apr 20:42
· 1 commit to master since this release
3097871

Changelog

fa5b828 1. Update updateEnclosure to take a param to specify the number of elements to compare against. 2. Update ScsiDevices to detect ErrUnknownType, and delete the device from the Devices map.
dd1283f Add BSD 3-clause license
e4a3e17 Add a disk struct
8b64842 Add comments to struct attributes
a30db52 Add enclosure struct
52442ec Add finding the HBA Phy identifiers
3b78d29 Add functionality into updateEnclSlot to use bay_identifer from sysfs if available
a30bd1f Add getting the serial for the SA4600 enclosure via sg_ses
1611919 Add go-sysfs vendored submodule
94d4de6 Add goreleaser config
53af0ba Add more testing prints
83bc30d Add trimming of null and spaces from serials, use vpd80 for drive serials
684ab32 Add vendored packages
7c58fbf Change enclosure slots to ints, add Vendor() and Model() to Enclosure, which naively returns the first path's version of the named attribute
81e133f Change how to find multipaths, create two maps that index by serial and sasaddress, than use those maps to find the paths
6f5bb93 Check if sg device exists, better log messages
c33790f Convert to using /sys/class/scsi_devices instead of /proc/scsi/sg/devices, move go-sysfs to forked repo
4244008 Correct import, print out devices in a loop since they're pointers
a5e38bf Create full summary output, sort slots for output
9be4ddb For now patch go-sysfs to have a OpenRO method
288a57a Ignore sastopo binary
def3121 Integrated cobra cli
0e038ce Make Device Slots an Int, Set the default device type to -1 since Disks are 0, deal with go-sysfs returning error as part of SubObject(), only assign disks (type 0) to Enclosure slots, create Model (), Vendor(), and Serial() for MultiPathDevice, which currently returns the first instance of each attribute. In the future these should probably return an error as well if there's a mismatch between attributes of each multipath device
04a31f9 Move some of the common functions to a utils file
3097871 Move to Gomodules. Fix old gitlab import paths.
27b83fa Move to using a MultiPathDevice struct so we can use pointers to a single struct in all devices that represent a path, extend updatePathVars to create or assign a HBA struct based on sysfs path to a device
0598a07 Move to using golang/dep for vendoring instead of submodules
2e801af Pass 8, so we compare the first 8 elements of the enclosure sysfs path to device sysfs path
b33a6df Removing extra space
4563ab2 Removing using gvt for vendoring, no longer using yacr
0abbcf7 Rename ddnSA4600EnclosureSerial to sgSesEnclosureSerial, add params for offset and length to specify where in page 7 the serial number is located. Now supports getting IBM DCS3700 enclosure midplane serial
f919f99 Rename scsi directory to lib, move SgAttributes to a Device method updateSysfsAttrs
3080c83 Rename sg to device.go, significant functionality updates
bf0e99c Rework updateMultiPaths to create unique MultiPathDevices per unique device, add updateEnclosure to add Enclosure attribute to devices based on leading 8 elements of sysfs path, create Enclosures function and use EnclMap to populate it. Update main to print summary stats.
b3a8183 Some initial functionality parsing /proc/scsi/sg/devices
bc45f7a Start adding serial number fetching functionality
3391273 Update comment to match new function name
cbfa288 Update deps
f6c8f69 Update license
999d51a Update vendored deps
ccefa1b Update yaml.v2
990f32b Use errors.New for ErrUnkownType so its easier to check against