History log of /freebsd-current/usr.bin/iscsictl/iscsictl.c
Revision Date Author Comments
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

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


# ef7d10fd 30-Jan-2023 Phil Shafer <phil@FreeBSD.org>

Add missing check for xo_parse_args return code.


# bd6bb493 25-Feb-2022 Richard Scheffenegger <rscheff@FreeBSD.org>

iscsi: per-session timeouts and rapid teardown of session on reconnect

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


# bce7ee9d 28-Oct-2020 Edward Tomasz Napierala <trasz@FreeBSD.org>

Drop "All rights reserved" from all my stuff. This includes
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


# 4dfbcffb 24-Oct-2020 Richard Scheffenegger <rscheff@FreeBSD.org>

Add network QoS support for PCP to iscsi initiator.

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


# bfabdade 09-Oct-2020 Richard Scheffenegger <rscheff@FreeBSD.org>

Add DSCP support for network QoS to iscsi initiator.

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


# be3d357e 10-Mar-2018 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make iscsictl(1) display "Disabled" status for disabled sessions.

MFC after: 2 weeks


# 1de7b4b8 27-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

various: general adoption of SPDX licensing ID tags.

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.


# 37ab1314 22-Nov-2017 Niclas Zeising <zeising@FreeBSD.org>

Fix language in a bunch of error messages.

Reviewed by: emaste
Approved by: emaste
MFC after: 1 month
Differential Revision: D13193


# 25b20d78 22-Jan-2017 Edward Tomasz Napierala <trasz@FreeBSD.org>

Move values displayed by "iscsictl -v" one character to the right,
to line up output from "iscsictl -v" with "ctladm islist -v".

MFC after: 2 weeks


# d6a85ec2 20-Jan-2017 Alexander Motin <mav@FreeBSD.org>

Remove some unused code.

MFC after: 2 weeks


# 97b84d34 24-Aug-2016 Navdeep Parhar <np@FreeBSD.org>

Make the iSCSI parameter negotiation more flexible.

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


# 4e5408f1 05-Jun-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

Report negotiated MaxBurstLength and FirstBurstLength in "iscsictl -v"
and "ctladm islist -v" outputs.

MFC after: 1 month


# ba165a31 31-May-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add "iscsictl -e". Among other things, it makes it possible to perform
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


# 806ea85a 31-May-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make iscsictl(8) error messages more consistent.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 54fc4636 26-May-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

Do libxo cleanup even in case of errors.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# aa63d825 26-May-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make iscsictl(8) actually report non-zero status on errors. The "failed"
is negative, because the error returned from calls to ioctl(2) is negative.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# b0b3f0e1 06-May-2016 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add the "-r" flag to iscsictl(8).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# af7ca7c8 01-May-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

usr.bin: minor spelling fixes on comments.

No functional change.


# fd3996c9 17-Oct-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Remove write-only variable.

Submitted by: Dominic Marks
MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 1dba27c1 17-Oct-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add -w flag to iscsictl(8) utility, to make it wait for successfull
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


# 01d54ad2 12-Apr-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add libxo(3) support to iscsictl(8).

PR: 198396
Submitted by: Marie Helene Kvello-Aune <marieheleneka at gmail.com>
MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 82babffb 04-Feb-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make it possible to set (via iscsi.conf(5)) and query (via iscsictl -v)
initiator iSCSI offload. Pass maximum data segment size supported by
chosen offload module to iscsid(8), and make iscsid(8) not try to negotiate
anything larger than that.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# c7ee47a7 14-Nov-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make it possible to do "iscsictl -Rt xxx -p yyy", to remove a session
that matches both -t and -p.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 2bd28269 22-Oct-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Whitespace fixes.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# b7a65e39 21-Aug-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make the iSCSI stack use __FBSDID() properly.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation


# 4d478469 18-Jun-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Rename a variable; no functional changes.

Sponsored by: The FreeBSD Foundation


# 0262f2e0 18-Jun-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add "iscsictl -M", which allows one to change session parameters
without removing it and adding back.

Sponsored by: The FreeBSD Foundation


# 45cf0eab 26-Feb-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

There is no need to prevent iscsictl from adding iSER session when there
is no iSER support in ctld and/or kernel; should the user make that mistake,
the output from "iscsictl -L" is enough to determine what the problem is.

Sponsored by: The FreeBSD Foundation


# d5874fc4 10-Feb-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Remove unused variable.

Sponsored by: The FreeBSD Foundation


# 868ab635 10-Nov-2013 Edward Tomasz Napierala <trasz@FreeBSD.org>

Fix typo in "iscsictl -v".

MFC after: 3 days
Sponsored by: The FreeBSD Foundation


# abec6193 30-Oct-2013 Edward Tomasz Napierala <trasz@FreeBSD.org>

Rename '-h' option to '-p', and use "portal" instead of "host" or "address",
in order to be consistent with iSCSI terminology. Besides, calling the
option '-h' was just wrong.

This changes usage for newly added iscsictl(8), and two newly added
subcommands to ctladm(8). This breaks POLA between CURRENT and 10,
but since 10.0 has not been released yet, it's still ok to do.

MFC after: 3 days
Discussed with: re (glebius)
Sponsored by: FreeBSD Foundation


# c76e8a9a 18-Sep-2013 Edward Tomasz Napierala <trasz@FreeBSD.org>

Make iscsictl(8) automatically try to load the iscsi module. While here,
improve module loading in iscsid(8) and ctld(8).

Approved by: re (delphij)


# 009ea47e 14-Sep-2013 Edward Tomasz Napierala <trasz@FreeBSD.org>

Bring in the new iSCSI target and initiator.

Reviewed by: ken (parts)
Approved by: re (delphij)
Sponsored by: FreeBSD Foundation