aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/iscsictl
Commit message (Collapse)AuthorAgeFilesLines
* manpages: prefer linking to xo_options.7 over xo_parse_args.3Alan Somers2025-07-161-3/+3
| | | | | | | | | | | | | | | Most libxo-enabled utilities link to xo_parse_args.3. But that man page doesn't actually describe how to format command-line arguments. Rather, xo_options.7 does. I suspect that these utilities link to the former because the latter man page did not exist until libxo-0.7.2 (8a6eceff3ce). And newer utilities have probably been copy/pasting the same text from older ones. But the superior man page does exist now, so we should link to it instead. MFC after: 2 weeks Sponsored by: ConnectWise Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D51354
* iscsi: Move valid_iscsi_name to libiscsiutilJohn Baldwin2025-01-243-107/+6
| | | | | | | | While here, use isxdigit(3) instead of a home-rolled version. Reviewed by: mav, asomers Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D48593
* iscsictl(8): Complete libxo transitionYan-Hao Wang2024-10-121-15/+16
| | | | | | Reviewed by: des MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41423
* iscsictl: Add version information to libxo outputBram2024-09-062-0/+3
| | | | | | | | Add version information to libxo output so that libxo content consumers can track changes. Reviewed by: imp, markj Pull Request: https://github.com/freebsd/freebsd-src/pull/1350
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-162-4/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-162-4/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-163-6/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-124-4/+4
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-2/+1
|
* Add missing check for xo_parse_args return code.Phil Shafer2023-01-301-0/+3
|
* iscsi: per-session timeouts and rapid teardown of session on reconnectRichard Scheffenegger2022-02-255-2/+78
| | | | | | | | | | Add per-Session configurable ping (SCSI NOP) and login timeouts. Remove the torn down, old iSCSI session quickly, when performing a reconnect. Reviewed By: trasz Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D34198
* Retire obsolete iscsi_initiator(4)Ed Maste2021-10-262-19/+1
| | | | | | | | | | | The new iSCSI initiator iscsi(4) was introduced with FreeBSD 10.0, and the old intiator was marked obsolete shortly thereafter (in commit d32789d95cfbf, MFC'd to stable/10 in ba54910169c4). Remove it now. Reviewed by: jhb, mav Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32673
* iscsi.conf(5): Fix a mandoc warningGordon Bergling2020-11-201-3/+3
| | | | | | | - new sentence, new line Notes: svn path=/head/; revision=367898
* [iscsictl] Fix compile issues that creep up with gcc-6.4Adrian Chadd2020-11-011-2/+1
| | | | | | | | | | | | | | This fixes two warnings: * double-definition of a symbol in a yacc header * Comparison of an unsigned int being >= 0; that's always going to be true. Reviewed by: imp, rscheff Differential Revision: https://reviews.freebsd.org/D27036 Notes: svn path=/head/; revision=367248
* Drop "All rights reserved" from all my stuff. This includesEdward Tomasz Napierala2020-10-285-5/+0
| | | | | | | | | | | | Foundation copyrights, approved by emaste@. It does not include files which carry other people's copyrights; if you're one of those people, feel free to make similar change. Reviewed by: emaste, imp, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D26980 Notes: svn path=/head/; revision=367105
* Add network QoS support for PCP to iscsi initiator.Richard Scheffenegger2020-10-245-0/+39
| | | | | | | | | | | | | | Make the Ethernet PCP codepoint configurable for L2 local traffic, to allow lower latency for iSCSI block IO. This addresses the initiator side only. Reviewed by: mav, trasz, bcr Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26739 Notes: svn path=/head/; revision=367023
* Add DSCP support for network QoS to iscsi initiator.Richard Scheffenegger2020-10-096-2/+89
| | | | | | | | | | | | | | | Allow the DSCP codepoint also to be configurable for the traffic in the direction from the initiator to the target, such that writes and any requests are also treated in the appropriate QoS class. Reviewed by: mav MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26714 Notes: svn path=/head/; revision=366573
* Stop hardcoding WARNS in iscsictl(8).Edward Tomasz Napierala2020-04-011-1/+0
| | | | | | | | MFC after: 2 weeks Sponsored by: DARPA Notes: svn path=/head/; revision=359508
* iscsictl.8: Add missing flag parametersMateusz Piotrowski2018-12-271-17/+19
| | | | | | | | | | | | | | | - Add missing parameters to flags in the description of available options. - Remove spaces between alternative parameters and "|". - Align descriptions of options to the longest option. - Use em dash instead of a hyphen. Reviewed by: bcr Approved by: doc (bcr) Approved by: krion (mentor, implicit), mat (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D18608 Notes: svn path=/head/; revision=342553
* Make iscsictl(1) display "Disabled" status for disabled sessions.Edward Tomasz Napierala2018-03-101-1/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=330741
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-275-1/+11
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* Fix language in a bunch of error messages.Niclas Zeising2017-11-221-27/+27
| | | | | | | | | | Reviewed by: emaste Approved by: emaste MFC after: 1 month Differential Revision: D13193 Notes: svn path=/head/; revision=326099
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Adopt SRCTOP in usr.binWarner Losh2017-03-121-1/+1
| | | | | | | | | | | | Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo over ${.CURDIR}/../foo for paths in Makefiles. Differential Revision: https://reviews.freebsd.org/D9932 Sponsored by: Netflix Silence on: arch@ (twice) Notes: svn path=/head/; revision=315170
* Move values displayed by "iscsictl -v" one character to the right,Edward Tomasz Napierala2017-01-221-25/+25
| | | | | | | | | to line up output from "iscsictl -v" with "ctladm islist -v". MFC after: 2 weeks Notes: svn path=/head/; revision=312652
* Remove some unused code.Alexander Motin2017-01-202-30/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=312539
* Make the iSCSI parameter negotiation more flexible.Navdeep Parhar2016-08-251-25/+29
| | | | | | | | | | | | | | | | | | | | | | Decouple the send and receive limits on the amount of data in a single iSCSI PDU. MaxRecvDataSegmentLength is declarative, not negotiated, and is direction-specific so there is no reason for both ends to limit themselves to the same min(initiator, target) value in both directions. Allow iSCSI drivers to report their send, receive, first burst, and max burst limits explicitly instead of using hardcoded values or trying to derive all of them from the receive limit (which was the only limit reported by the drivers prior to this change). Display the send and receive limits separately in the userspace iSCSI utilities. Reviewed by: jpaetzel@ (earlier version), trasz@ Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7279 Notes: svn path=/head/; revision=304787
* Report negotiated MaxBurstLength and FirstBurstLength in "iscsictl -v"Edward Tomasz Napierala2016-06-051-0/+4
| | | | | | | | | and "ctladm islist -v" outputs. MFC after: 1 month Notes: svn path=/head/; revision=301437
* Add "iscsictl -e". Among other things, it makes it possible to performEdward Tomasz Napierala2016-05-316-10/+94
| | | | | | | | | | | | | | discovery without attaching to the targets ("iscsictl -Ad ... -e off"), and then attach to selected ones ("iscsictl -Mi ... -e on"). PR: 204129 MFC after: 1 month Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6633 Notes: svn path=/head/; revision=301033
* Make iscsictl(8) error messages more consistent.Edward Tomasz Napierala2016-05-311-24/+22
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=301025
* Do libxo cleanup even in case of errors.Edward Tomasz Napierala2016-05-261-2/+3
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=300746
* Make iscsictl(8) actually report non-zero status on errors. The "failed"Edward Tomasz Napierala2016-05-261-1/+1
| | | | | | | | | | is negative, because the error returned from calls to ioctl(2) is negative. MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=300745
* Add the "-r" flag to iscsictl(8).Edward Tomasz Napierala2016-05-062-4/+25
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=299175
* Document the "Protocol" field of iscsi.conf(5).Edward Tomasz Napierala2016-05-061-1/+9
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=299174
* usr.bin: minor spelling fixes on comments.Pedro F. Giffuni2016-05-011-1/+1
| | | | | | | No functional change. Notes: svn path=/head/; revision=298879
* MFHGlen Barber2016-03-021-6/+0
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318
| * DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-6/+0
| | | | | | | | | | | | | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* | Include correct is*ct*l program in iscsi package, and package theGlen Barber2016-02-161-0/+1
|/ | | | | | | | | | legacy version separately. Submitted by: trasz Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295640
* mdoc: sort XrJoel Dahl2016-01-181-3/+3
| | | | Notes: svn path=/head/; revision=294290
* Add more text to explain --libxo flag.Craig Rodrigues2015-12-011-2/+11
| | | | Notes: svn path=/head/; revision=291607
* META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery2015-12-011-0/+28
| | | | | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291563
* Make libxo depend on libutil because it uses humanize_number after r287111Enji Cooper2015-10-181-1/+1
| | | | | | | | | | | Remove overlinking in lib/libxo/tests, sbin/savecore, and usr.bin/{iscsictl,wc,xo} PR: 203673 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289490
* Remove write-only variable.Edward Tomasz Napierala2015-10-171-2/+0
| | | | | | | | | Submitted by: Dominic Marks MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=289459
* Add -w flag to iscsictl(8) utility, to make it wait for successfullEdward Tomasz Napierala2015-10-172-7/+89
| | | | | | | | | | | | session establishment. Scripting is kind of hard without it. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3872 Notes: svn path=/head/; revision=289453
* Upgrade libxo to 0.4.5.Marcel Moolenaar2015-08-241-1/+1
| | | | | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=287111
* Add libxo(3) support to iscsictl(8).Edward Tomasz Napierala2015-04-124-165/+228
| | | | | | | | | | PR: 198396 Submitted by: Marie Helene Kvello-Aune <marieheleneka at gmail.com> MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=281461
* iscsictl(8) does not actually needs to be linked to libcam nor libutilBaptiste Daroussin2015-04-091-2/+0
| | | | Notes: svn path=/head/; revision=281328
* Add IPv6 example to iscsi.conf(5) and tweak ordering.Edward Tomasz Napierala2015-04-021-3/+9
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=280984