summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctladm
Commit message (Collapse)AuthorAgeFilesLines
* MFC r316050,r316051:ngie2017-03-301-12/+11
| | | | | | | | | | | | | | | | r316050: ctld: sort #includes per style(9) - Only include sys/types.h or sys/param.h, not both. - Sort alphabetically. r316051: ctldadm: sort #includes per style(9) - Only include sys/types.h or sys/param.h, not both. - Sort alphabetically.
* MFC r312694: Make CTL ramdisk backend a real RAM disk.mav2017-02-071-2/+17
| | | | | | | | | | | | | | | | | If "capacity" LU option is set, ramdisk backend now implements featured thin provisioned disk, storing data in malloc(9) allocated memory blocks of pblocksize bytes (default PAGE_SIZE or 4KB). Additionally ~0.2% of LU size is used for indirection tree (bigger pblocksize reduce the overhead). Backend supports all unmap and anchor operations. If configured capacity is overflowed, proper error conditions are reported. If "capacity" LU option is not set, the backend operates mostly the same as before without allocating real storage: writes go to nowhere, reads return zeroes, reporting that all LBAs are unmapped. This backend is still mostly oriented on testing and benchmarking (it is still a volatile RAM disk), but now it should allow to run real FS tests, not only simple dumb dd.
* MFC r310356: Add support for locally assigned RFC 4122 UUID LUN identifiers.mav2017-01-051-2/+5
|
* MFC r307374: Add LU option to control reported provisioning type.mav2016-10-291-1/+7
|
* MFC r307350: Add LUN options to limit UNMAP and WRITE SAME sizes.mav2016-10-291-1/+8
| | | | | | | CTL itself has no limits on on UNMAP and WRITE SAME sizes. But depending on backends large requests may take too much time. To avoid that new configuration options allow to hint initiator maximal sizes it should not exceed.
* MFC r288310: Add to CTL initial support for CDROMs and removable devices.mav2015-10-051-3/+4
| | | | Relnotes: yes
* MFC r288259: Remove some duplicate, legacy, dead and questionable code.mav2015-10-052-596/+26
|
* MFC r287707: CTL documentation update, mostly for HA.mav2015-10-051-2/+5
|
* MFC r287620: Remove unused target and initiator IDs.mav2015-10-052-213/+125
|
* MFC r287500: Allow LUN options modification via CTL_LUNREQ_MODIFY.mav2015-10-052-4/+88
| | | | Not all changes take effect, but that is a different question.
* MFC r287455, r287458, r287459: Remove some dead code.mav2015-10-051-1/+0
|
* MFC r286806: Drop "internal" CTL frontend.mav2015-10-052-255/+1
| | | | | | Its idea was to be a simple initiator and execute several commands from kernel level, but FreeBSD never had consumer for that functionality, while its implementation polluted many unrelated places.
* make ctdladm(8) return 0 is everything was ok.bapt2015-07-281-0/+3
| | | | | | | | | | | | | retval is used to test the return of XML_Parse function which is ok if 1 is returned and retval it directly returned to the main function and used as an exit value. if all the parsing part is done reset retval to 0 so that the command return 0 if everything ok Differential Revision: https://reviews.freebsd.org/D3102 Reviewed by: trasz Sponsored by: gandi.net
* MFC r283285:trasz2015-06-211-2/+3
| | | | | | Advertise ctlstat(8) a little better. Sponsored by: The FreeBSD Foundation
* MFC r278316:trasz2015-05-151-2/+6
| | | | | | | | | | Make "ctladm islist" ignore unknown elements, so the old version continues to work with newer kernel. Other ctladm(8) "*list" subcommands seem to already handle it in a reasonable way. Sponsored by: The FreeBSD Foundation
* MFC r278161: Bring some more order into iSCSI portal group tags support.mav2015-02-191-0/+1
| | | | | | | While ctld(8) still does not allow multiple portal groups per target to be configured, kernel should now be able to handle it. Sponsored by: iXsystems, Inc.
* MFC r278037: CTL LUN mapping rewrite.mav2015-02-192-7/+108
| | | | | | | | | | | | | | | | | | | Replace iSCSI-specific LUN mapping mechanism with new one, working for any ports. By default all ports are created without LUN mapping, exposing all CTL LUNs as before. But, if needed, LUN mapping can be manually set on per-port basis via ctladm. For its iSCSI ports ctld does it via ioctl(2). The next step will be to teach ctld to work with FibreChannel ports also. Respecting additional flexibility of the new mechanism, ctl.conf now allows alternative syntax for LUN definition. LUNs can now be defined in global context, and then referenced from targets by unique name, as needed. It allows same LUN to be exposed several times via multiple targets. While there, increase limit for LUNs per target in ctld from 256 to 1024. Some initiators do not support LUNs above 255, but that is not our problem. Relnotes: yes Sponsored by: iXsystems, Inc.
* MFC r278621: Fix man page to match real option names.mav2015-02-151-4/+4
|
* MFC r275865:mav2014-12-241-1/+8
| | | | | | | | | Add configuration options to override physical and UNMAP blocks geometry. While in most cases CTL should correctly fetch those values from backing storages, there are some initiators (like MS SQL), that may not like large physical block sizes, even if they are true. For such cases allow override fetched values with supported ones (like 4K).
* MFC r275959: Report initiator id in portlist XML in more formalized way.mav2014-12-231-11/+16
|
* MFC r275958: Report XML parsing errors.mav2014-12-231-3/+12
|
* MFC r275482: Document r275481 changes.mav2014-12-181-1/+2
|
* MFC r275568:mav2014-12-181-1/+8
| | | | | | | | | | | | | | | | Count consecutive read requests as blocking in CTL for files and ZVOLs. Technically read requests can be executed in any order or simultaneously since they are not changing any data. But ZFS prefetcher goes crasy when it receives consecutive requests from different threads. Since prefetcher works on level of separate blocks, instead of two consecutive 128K requests it may receive 32 8K requests in mixed order. This patch is more workaround then a real fix, and it does not fix all of prefetcher problems, but it improves sequential read speed by 3-4x times in some configurations. On the other side it may hurt performance if some backing store has no prefetch, that is why it is disabled by default for raw devices.
* MFC r273464:trasz2014-11-222-29/+29
| | | | | | Whitespace fixes. Sponsored by: The FreeBSD Foundation
* MFC r274154, r274163:mav2014-11-201-1/+9
| | | | | | | | | Add to CTL support for logical block provisioning threshold notifications. For ZVOL-backed LUNs this allows to inform initiators if storage's used or available spaces get above/below the configured thresholds. Sponsored by: iXsystems, Inc.
* MFC r273687:mav2014-11-021-1/+7
| | | | Add "rpm" and "formfactor" LUN options to match istgt functionality.
* MFC r272978: Improve and document `ctladm portlist` subcommand.mav2014-10-202-18/+74
| | | | | | Make this subcommand less FC-specific, reporting target and port addresses in more generic way. Also make it report list of connected initiators in unified way, working for both FC and iSCSI, and potentially others.
* MFC r272911:mav2014-10-201-19/+31
| | | | | | | | Make ctld start even if some LUNs are unable to open backing storage. Such LUNs will be visible to initiators, but return "not ready" status on media access commands. If backing storage become available later, `ctladm modify ...` or `service ctld reload` can trigger its reopen.
* MFC r272748:mav2014-10-201-1/+4
| | | | Implement software (mode page) and hardware (config) write protection.
* MFC r271507:mav2014-10-061-0/+7
| | | | | | | | | Implement control over command reordering via options and control mode page. It allows to bypass range checks between UNMAP and READ/WRITE commands, which may introduce additional delays while waiting for UNMAP parameters. READ and WRITE commands are always processed in safe order since their range checks are almost free.
* MFC r271505:mav2014-10-061-2/+6
| | | | | | | Add "readcache" and "writecache" LUN options to control default behavior. Default values are "on". Disabling requires backend to support IO_DIRECT and IO_SYNC flags respectively, or some alternatives.
* MFC r268767:mav2014-07-301-0/+8
| | | | | | | | | | | | | | | | Add support for VMWare dialect of EXTENDED COPY command, aka VAAI Clone. This allows to clone VMs and move them between LUNs inside one storage host without generating extra network traffic to the initiator and back, and without being limited by network bandwidth. LUNs participating in copy operation should have UNIQUE NAA or EUI IDs set. For LUNs without these IDs VMWare will use traditional copy operations. Beware: the above LUN IDs explicitly set to values non-unique from the VM cluster point of view may cause data corruption if wrong LUN is addressed! Sponsored by: iXsystems, Inc.
* MFC r268457 (by pluknet):mav2014-07-241-2/+2
| | | | Fix typos.
* MFC r268289:mav2014-07-241-1/+1
| | | | Fix minor copy-paste bug in r268284.
* MFC r268447:mav2014-07-151-1/+5
| | | | Add LUN options to specify 64-bit EUI and NAA identifiers.
* MFC r268363:mav2014-07-151-0/+4
| | | | Add support for READ FULL STATUS action of PERSISTENT RESERVE IN command.
* MFC r268293:mav2014-07-151-0/+2
| | | | | | | | | | | | | Burry devid port method, which was a gross hack. Instead make ports provide wanted port and target IDs, and LUNs provide wanted LUN IDs. After that core Device ID VPD code only had to link all of them together and add relative port and port group numbers. LUN ID for iSCSI LUNs no longer created by CTL, but by ctld, and passed to CTL as "scsiname" LUN option. This makes LUNs to report the same set of IDs, independently from the port through which it is accessed, as required by SCSI specifications.
* MFC r268284:mav2014-07-151-1/+270
| | | | | | Introduce new IOCTL CTL_PORT_LIST reporting in more flexible XML format. Leave old CTL_GET_PORT_LIST in place so far. Garbage-collect it later.
* MFC r267516i (by joel):mav2014-07-021-2/+2
| | | | mdoc: add missing width to Bl -tag.
* MFC r267506:mav2014-07-021-1/+24
| | | | Document additional LUN/backend options.
* MFC r257379:trasz2013-11-022-39/+39
| | | | | | | | | | | | | | | | | 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 r257380: Bump .Dd after r257379. Approved by: re (glebius) Sponsored by: The FreeBSD Foundation
* Fix two off-by-ones.trasz2013-10-091-2/+2
| | | | | | Coverity CID: 1087999, 1011375 Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Fix incorrect use of sizeof().trasz2013-10-091-1/+1
| | | | | | Coverity CID: 1011303 Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Bring in the new iSCSI target and initiator.trasz2013-09-142-2/+467
| | | | | | Reviewed by: ken (parts) Approved by: re (delphij) Sponsored by: FreeBSD Foundation
* Check the return value of sbuf_finish().jh2013-05-101-2/+4
| | | | MFC after: 1 week
* Remove contractions.joel2013-04-111-1/+1
|
* Make ctladm(8) try to load ctl.ko kernel module if needed.trasz2013-04-101-0/+10
| | | | Reviewed by: ken
* Fix dates in manual pages modified in 249009.trasz2013-04-021-1/+1
|
* Make it possible to build CTL as a module.trasz2013-04-021-1/+2
| | | | | Reviewed by: ken Sponsored by: FreeBSD Foundation
* More -Wmissing-variable-declarations fixes.ed2012-10-192-5/+5
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
OpenPOWER on IntegriCloud