summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Close race in r268291 between port destruction, delayed by sessionsmav2014-07-061-0/+8
| | | | | | | teardown, and new port creation during `service ctld restart`. Close it by returning iSCSI port internal state, that allows to identify dying ports, which should not be counted as existing, from really alive.
* Make iSCSI initiator keep Initiator Session ID (ISID) across reconnects.mav2014-07-063-24/+10
| | | | | | | | | Previously ISID was changed every time, that made impossible correct persistent reservation, because reconnected session was identified as completely new one. Reviewed by: trasz MFC after: 1 week
* Pass through iSCSI session ISID from LOGIN request to the CTL frontend.mav2014-07-053-0/+6
| | | | | ISID is an important part of initiator transport ID for iSCSI. It is not used now, but should be to properly implement persistent reservation.
* Use %zu not %zd for printing size_t.gavin2014-07-051-1/+1
| | | | | | PR: 185007 Submitted by: saper saper.info MFC after: 3 days
* Correct format string to fix build of uhsoctl when DEBUG is definedgavin2014-07-051-1/+1
| | | | | | PR: 185007 Submitted by: saper saper.info MFC after: 3 days
* Burry devid port method, which was a gross hack.mav2014-07-052-15/+15
| | | | | | | | | | | 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.
* Create separate CTL port for every iSCSI target (and maybe portal group).mav2014-07-053-52/+288
| | | | | | | | | | | | | | | Having single port for all iSCSI connections makes problematic implementing some more advanced SCSI functionality in CTL, that require proper ports enumeration and identification. This change extends CTL iSCSI API, making ctld daemon to control list of iSCSI ports in CTL. When new target is defined in config fine, ctld will create respective port in CTL. When target is removed -- port will be also removed after all active commands through that port properly aborted. This change require ctld to be rebuilt to match the kernel. As a minor side effect, this allows to have iSCSI targets without LUNs. While that may look odd and not very useful, that is not incorrect.
* Fix minor copy-paste bug in r268284.mav2014-07-051-1/+1
|
* Introduce new IOCTL CTL_PORT_LIST reporting in more flexible XML format.mav2014-07-051-1/+270
| | | | Leave old CTL_GET_PORT_LIST in place so far. Garbage-collect it later.
* Extend capabilities to 64-bits in preparation for some API changes.grehan2014-07-051-1/+1
| | | | | The v1.0 virtio spec supports an extended size for guest/host caps, but in practice 64-bits should last for a long time.
* After EFI support was added to the installer, it needed to allow bootnwhitehorn2014-07-041-2/+23
| | | | | | | | | | | | | partitions of types other than "freebsd-boot" (in particular, "efi"). This allows the removal of some nasty hacks for supporting PowerPC systems, in particular aliasing freebsd-boot to apple-boot on APM and an IBM-specific code on MBR. This changes the installer to use the correct names, which also breaks a degeneracy in the meaning of "freebsd-boot" that allows the addition of support for some newer IBM systems that can boot from GPT in addition to MBR. Since I have no idea how to detect which those systems are, leave the default on IBM PPC systems as MBR for now.
* Add an option, -p, which makes gstat(8) to only display physical providersdelphij2014-07-032-5/+13
| | | | | | (those with rank of 1). MFC after: 2 weeks
* Use correct flag for event index.grehan2014-07-031-1/+1
| | | | | | Submitted by: luigi Obtained from: Vincenzo Maffione, Universita` di Pisa MFC after: 1 week
* Fix vt(4) detection in kbdcontrol and vidcontrolemaste2014-07-022-8/+10
| | | | | | | As sc(4) and vt(4) coexist and are both enabled in GENERIC, the existence of a vt(4) sysctl is not sufficient to determine that vt(4) is in use. Reported by: Trond Endrestøl
* chown: add a testeadler2014-06-303-0/+36
| | | | | Add a test for the chown utility. This sets up chown(8) to be capable of being tested. As such, only add one test for now as an example.
* Don't accidently skip every second line when calculating thedwmalone2014-06-281-1/+0
| | | | | | idle time. MFC after: 2 weeks
* Simplify the code a little bit using the update_sensor_sysctl() routine toloos2014-06-271-9/+5
| | | | | | | | | retrieve the sensor temperature. This also avoid the overflow that could happen on sysctlnametomib(3) because the code was not checking the length of the mib array. CID: 1222504
* pw: fix up deletion of users from groupsmjg2014-06-271-4/+3
| | | | | | | | | Previuosly given 'foo,bar' members, removing 'foo' would result in an infinite loop. PR: 191427 Submitted by: Voradesh Yenbut <yenbut cs.washington.edu> MFC after: 1 week
* Correct the buffer length check to avoid overflows.loos2014-06-271-3/+6
| | | | | Found with: Coverity Scan CID: 1222502, 1222503
* Add post-mortem debugging for "EPT Misconfiguration" VM-exit. This errorneel2014-06-271-1/+25
| | | | | | is hard to reproduce so try to collect all the breadcrumbs when it happens. Reviewed by: grehan
* Sort command flags in usage output and the manpages.jhb2014-06-274-70/+70
|
* Set the version and date to fixed fields rather than usinggrehan2014-06-271-2/+2
| | | | | | | | | | | | | | | | | | | | | preprocessor macros that don't allow reproducible builds. As a side-effect, the date string is now spec-compliant. root@bhyve:~ # dmidecode # dmidecode 2.12 SMBIOS 2.4 present. 12 structures occupying 514 bytes. Table at 0x000F101F. Handle 0x0001, DMI type 0, 24 bytes BIOS Information Vendor: BHYVE Version: 1.0 Release Date: 03/14/2014 Submitted by: des (original version) Reviewed by: tychon MFC after: 1 week
* - Document -b to enable the bvmcons console (but mark it as deprecatedjhb2014-06-262-7/+21
| | | | | | | | similar to -g.) - Document -U to set the SMBIOS UUID. - Add missing options to the usage output and to the manpage Synopsis. - Don't claim that bvmdebug is amd64-only (it is also a device, not an option).
* Fix issues in config parser relating to lun serial numbers.jpaetzel2014-06-242-2/+16
| | | | | | | | Without this fix some serial numbers needed to be quoted to avoid the config parser bailing out. Submitted by: delphij Sponsored by: iXsystems
* Provide APIs to directly get 'lowmem' and 'highmem' size directly.neel2014-06-244-21/+10
| | | | | | | | Previously the sizes were inferred indirectly based on the size of the mappings at 0 and 4GB respectively. This works fine as long as size of the allocation is identical to the size of the mapping in the guest's address space. However, if the mapping is disjoint then this assumption falls apart (e.g., due to the legacy BIOS hole between 640KB and 1MB).
* With the move away from GNATS, drop the CTM config file for downloadinggavin2014-06-231-8/+0
| | | | the GNATS database, it will be going away soon.
* convert to using pidfile... This prevents multiple wpa_supplicantsjmg2014-06-225-6/+12
| | | | | | | | | | running at the same time causing problems w/ wifi not working.. the patch will be submitted upstream... The next step if someone wants to push it upstream is to break os_unix.c up so that all these other utilities don't need libutil.. Reviewed by: rpaulo
* Fix a code typo that prevented mkdir from firing (unnoticeddteske2014-06-201-1/+1
| | | | | | | usually because another part of the code succeeded in making the same directory). MFC after: 3 days
* Restore the ABI of the cpuctl(4) ioctl request CPUCTL_CPUID, usekib2014-06-201-1/+1
| | | | | | | | | separate argument structure with added level_type field for CPUID_CPUID_COUNT request. Reviewed by: attilio (previous version) Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* Fix changing the usernamebapt2014-06-201-1/+1
| | | | | | PR: 189172 Submitted by: fullermd@over-yonder.net MFC after: 1 week
* Removed compatibility with pre FreeBSD 2.2 pw_mkdb commandbapt2014-06-201-13/+2
| | | | | | | | Fix some broken indentattion PR: 189173 Submitted by: fullermd@over-yonder.net MFC after: 1 week
* use .Mt to mark up email addresses consistently (part2)bapt2014-06-20126-210/+198
| | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* Following comments in r242565 add the possibility to specify ecx whenattilio2014-06-192-2/+66
| | | | | | | | | | performing cpuid calls. Add also a new way to specify the level type to cpucontrol(8) as reported in the manpage. Sponsored by: EMC / Isilon storage division Reviewed by: bdrewery, gcooper Testerd by: bdrewery
* serial_num and device_id fields are not necessarily null-terminated.mav2014-06-191-2/+2
| | | | | | | Before this it was impossible to use all 16 bytes of serial number, and client always got serial number NULL-terminated, that is not required. MFC after: 2 weeks
* Use Mt macro to properly format mailto linksskreuzer2014-06-192-2/+2
| | | | Approved by: hrs (mentor)
* Implement redirection handling in initiator.trasz2014-06-182-2/+62
| | | | Sponsored by: The FreeBSD Foundation
* Get rid of unneccessary argument.trasz2014-06-181-5/+8
| | | | Sponsored by: The FreeBSD Foundation
* Fix typo and rename macro KDB_SYS_FLAG to KBD_SYS_FLAG.neel2014-06-181-2/+2
| | | | Reviewed by: tychon
* Improve code a little; no functional changes.trasz2014-06-181-9/+21
| | | | Sponsored by: The FreeBSD Foundation
* Use proper term in debug messages.trasz2014-06-181-5/+5
| | | | | MFC after: 1 month Sponsored by: FreeBSD Foundation
* On discovery stage add set of TargetAddress keys to reply, reporting tomav2014-06-181-4/+47
| | | | | | | | the client all the portal groups addresses and ports. Reviewed by: trasz@ MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* mdoc: add missing width to Bl -tag.joel2014-06-151-2/+2
|
* Document additional LUN/backend options.mav2014-06-151-1/+24
|
* mdoc: use display block in the beginning of the EXAMPLES section.joel2014-06-151-4/+4
|
* Fix two issues:delphij2014-06-151-1/+1
| | | | | | | | | | - Check for rc.d directory's existence before traversing it; - Don't output * when rc.d directory is empty. PR: conf/190665 Submitted by: Oleg Ginzburg <olevole olevole ru> (with changes) MFC after: 2 weeks
* acpiconf(8): tell users not to use -keadler2014-06-101-1/+2
| | | | | | Add language from jhb Requested by: jhb, jkim
* r267169 should apply to 64-bit BARs as well.tychon2014-06-091-2/+2
| | | | Reviewed by: neel
* Remove blank lines.joel2014-06-091-2/+0
|
* acpiconf(8): check the calendareadler2014-06-091-1/+1
|
* acpiconf(8): bump .Ddeadler2014-06-091-1/+1
| | | | Reported by: gjb
OpenPOWER on IntegriCloud