aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-16Rename LICENSE moduleplatform-tools-34.0.1platform-tools-34.0.0platform-tools-33.0.4main-16k-with-phonesCole Faust
It being named the same as the LICENSE file was causing a circular dependency in bazel. Test: Presubmits Change-Id: I519fd1e46761edcec5339df8dec431bfb965d277
2022-12-15Merge "Add Android.bp"Treehugger Robot
2022-11-28Add Android.bpBart Van Assche
Change-Id: Idfcbfb3a2a03bda1abe5ec6d4c657b0a171377f6 Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-11-23Add LICENSE and OWNERS files am: 18b1b2ee6cBart Van Assche
Original change: https://android-review.googlesource.com/c/platform/external/sg3_utils/+/2315503 Change-Id: Ib8cd9a38262e0185e5c0a53542139ed6004bc91d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-23Add LICENSE and OWNERS filesBart Van Assche
The LICENSE file conforms with the instructions from https://g3doc.corp.google.com/company/thirdparty/android.md. Bug: 242556256 Change-Id: I56e3d2f2ddfc792fb0b99f113e413c3fc7d844fc Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-11-23Merge remote-tracking branch 'aosp/upstream-main' into HEAD am: 448b67b18aBart Van Assche
Original change: https://android-review.googlesource.com/c/platform/external/sg3_utils/+/2312210 Change-Id: I9990441975206fdea5b55263064471fa1c5ac90d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-22Merge remote-tracking branch 'aosp/upstream-main' into HEADBart Van Assche
Change-Id: Iebf400937d2010e8cc6efcece2105209cf78032a
2022-11-18Initial empty repositoryUmer Abdullah
2022-11-13sg_logs: fix clang compile warningDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@983 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-11-13sg_logs: more json work, encoreDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@982 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-11-07more sg_logs json work; fix debian package build breakage due to last commitDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@981 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-11-04add two new exit status values: SG_LIB_CAT_STANDBY and ↵Douglas Gilbert
SG_LIB_CAT_UNAVAILABLE which refine the 'not ready' exit status git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@980 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-11-04remove archive directory (and its contents) ↵Douglas Gilbert
[github.com/doug-gilbert/sg3_utils/pull/31]; more sg_logs JSON work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@979 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-11-01sg_read_block_limits: fix granularity value, add --mloi option; sg_lib: add ↵Douglas Gilbert
sg_ll_read_block_limits_v2(); sg_logs: json work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@978 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-10-28sg_stream_ctl: --get fix better; sg_rem_rest_elem: cleanupDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@977 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-10-27sg_stream_ctl: fix --get indexing; fix some './configure --enable-debug' issuesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@976 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-10-21build cleanups for 'make distcheck'Douglas Gilbert
See https://github.com/doug-gilbert/sg3_utils/pull/26, 27 and 28; still need svn:ignore property or maybe global-ignores. More testing/*_dd.c* cleanups for retiring HIPRI and relacing with POLLED (for calling bio_poll() in kernel). git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@975 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-10-07sg3_utils: freestanding sg_pr2serr.c pr_s 25+26Douglas Gilbert
In order to use the new JSON code in pr2serr.[hc] in the lsscsi package, changes were made to remove dependencies on the rest of the sg_lib library. https://github.com/doug-gilbert/sg3_utils/pull/25 and .../pull/26 applied with minor change. More pull requests await the next revision. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@974 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-09-30rescan-scsi-bus: speed large multipath scansDouglas Gilbert
Speed multipath scans with many LUNs by caching multipath LUN info in temporary file, see: https://github.com/doug-gilbert/sg3_utils/issues/22 Fix small bug in last commit, see: https://github.com/doug-gilbert/sg3_utils/issues/24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@973 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-09-26rescan-scsi-bus.sh speed testonline()Douglas Gilbert
speed testonline() function when peripheral_qualifier != 0 in the standard INQUIRY response. See: https://github.com/doug-gilbert/sg3_utils/issues/24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@972 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-09-18sg_inq+sg_vpd: ongoing JSON updatesDouglas Gilbert
Probably at the end of the JSON work for sg_inq since it only has four vendor specific VPD pages. sg_vpd has a lot more vendor specific VPD pages which are yet to be 'jsonified'. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@971 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-09-05sg_inq+sg_vpd: ongoing updates; rescan_scsi_bus.shDouglas Gilbert
https://github.com/doug-gilbert/sg3_utils/pull/21 change to rescan_scsi_bus.sh was applied in an earlier commit but not noted. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@970 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-08-18sg_inq+sg_vpd: more updates but not finishedDouglas Gilbert
The sg_inq+sg_inq work is mainly JSON additions. sg_vpd has a new --sinq_inraw=RFN option. Update and place names for the 64 TapeAlert flags in the library. This improves TapeAlert reporting for sg_inq, sg_vpd and sg_logs. Refine the description of the VPD page merge of processing for sg_inq and sg_vpd to only include _T10_ defined pages, so the vendor specific VPD page processings of those utilities are still separate. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@969 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-08-12Prepare for removing /proc/scsi from the Linux kernelDouglas Gilbert
From: Bart Van Assche <bvanassche@acm.org> The sg3_utils package is the only /proc/scsi user I know of. Although support for systems without /proc/scsi was added to rescan_scsi_bus.sh more than ten years ago, a few references to /proc/scsi remain. Convert these references into the recommended interfaces. Posted to linux-scsi@vger.kernel.org on 20220810 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@968 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-08-12rescan-scsi-bus.sh: add option --no-lip-scanDouglas Gilbert
lip is a FC operation and can be used to rescan device but it can not specify the channel and target. So add a new option to scan FC hosts according to the SCSI general interface in sysfs: /sys/class/scsi_host/hostX/scan. The default value of no_lip_scan is 0 which does not change the default behavior. Fix https://github.com/doug-gilbert/sg3_utils/issues/20 Signed-off-by: Wenchao Hao <haowenchao@huawei.com> git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@967 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-08-12sg_inq+sg_vpd: more JSON work (add SG_C_CPP_ZERO_INIT)Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@966 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-08-07rescan-scsi-bus: sgdevice26: do not traverse sg class if scsi_device isnot addedDouglas Gilbert
For system which has a massive number of scsi_devices, it would takes a long time to traverse /sys/class/scsi_generic to find a related sg. If the scsi_device of specific scsiid host:channel:target:lun did not added, the traverse would find no sg neither. Signed-off-by: Wenchao Hao <haowenchao@huawei.com> From: https://github.com/doug-gilbert/sg3_utils/pull/21 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@965 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-08-07sg_inq+sg_vpd: more JSON work (tpc)Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@964 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-29cleanup warning and C++20 building issuesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@963 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-27rescan-scsi-bus.sh: fix handling of '-I <secs>' option ; sg_inq+sg_vpd: more ↵Douglas Gilbert
JSON work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@962 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-19another round of sgj_* function renaming; sg_inq+sg_vpd: add new Block ↵Douglas Gilbert
Limits VPD page code git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@961 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-15sg_inq+sg_vpd: JSON work continuesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@960 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-11sg_inq+sg_vpd: merge VPD page processingDouglas Gilbert
This is being done so that ongoing JSON work is not duplicated for both sg_vpd and sg_inq. This might lead to small changes in formatting of VPD (and standard INQUIRY) output. That in turn might break parsing code expecting the former output. Hopefully this will push folks who are parsing to try out JSON output. However JSON output format may not be that stable, hoping for feedback on that front. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@959 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-06sg_vpd: more JSON workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@958 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-07-02sg3_utils.spec: change tarball extension from .tgz to .tar.gz ; fix build ↵Douglas Gilbert
issue with Fedora 36; minor work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@957 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-06-27more JSON work: sense data and vpd device id, start on sg_vpdDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@956 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-06-25sg_rem_rest_elem: new utility for removing or restoring elements; bug fixesDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@955 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-06-02more sg_get_elem_status workDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@954 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-05-24sg_get_elem_status: change '--maxlen=' option default to 1056 (was 32), ↵Douglas Gilbert
other cleanups git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@953 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-05-12sg_lib: document internal json interface in include/sg_pr2serr.h; codespell ↵Douglas Gilbert
fixes git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@952 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-05-06sg_inq: add support for Hitachi/HP open-v ldev names; sg_rep_zone: more json ↵Douglas Gilbert
work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@951 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-05-02sg_rep_zones: add experimental --json[=JO] option and generationDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@950 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-04-24autoconf: 2.71; automake: 1.16.5; libtool: 2.4.6; updates from Ubuntu 22.04Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@949 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-04-21test commit to test 'continuous integration'Douglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@948 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-04-21Merge pull request #16 from bvanassche/masterDouglas Gilbert
Enable continuous integration git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@947 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-04-21https://github.com/doug-gilbert/sg3_utils/pull/17 applied with tweaks: add ↵Douglas Gilbert
timeout parameter git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@946 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-04-21sg_opcodes: add --inhex=FN to process earlier -HHH, add experimental ↵Douglas Gilbert
--json[=JO] option; sg_turs: change nanosleep() to Sleep() in MinGW git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@945 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-04-17sg_lib: add hex2fp(); sg_rtpg: ↵Douglas Gilbert
https://github.com/hreinecke/sg3_utils/pull/79 applies; json_builder work git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@944 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-03-10sg_ses: add exp_sas_addr acronym for getting expander's SAS addressDouglas Gilbert
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@943 6180dd3e-e324-4e3e-922d-17de1ae2f315
2022-03-09sg_logs: add --exclude and --undefined options, improve 'last_n' log pages; ↵Douglas Gilbert
add inhex/logs_last_n.hex git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@942 6180dd3e-e324-4e3e-922d-17de1ae2f315