allanjude
33a91f2762
Fix typo in jail(8) man page
...
PR: 198790
Differential Revision: https://reviews.freebsd.org/D2111
Submitted by: Jimmy Olgeni
Approved by: wblock (mentor)
Sponsored by: ScaleEngine Inc.
2015-03-22 20:38:28 +00:00
dteske
7527b791eb
Update copyright(s)
...
MFC after: 3 days
X-MFC-to: stable/10
2015-03-21 03:54:11 +00:00
dteske
85a1f00de7
Whitespace cleanup(s).
...
MFC after: 3 days
X-MFC-to: stable/10
2015-03-21 03:52:43 +00:00
mav
54b9845962
Add missing variable initialization.
...
Reported by: Coverity
CID: 1288938
MFC after: 3 days
2015-03-20 16:05:13 +00:00
mav
7904a438e5
Add comment explaining existing powerd behavior on SMP systems.
...
MFC after: 1 week
2015-03-20 15:07:05 +00:00
allanjude
746d3f6f85
Remove a non-required unsafe condition added in the previous commit
...
Reviewed by: bapt
Approved by: dteske
Sponsored by: ScaleEngine Inc.
2015-03-18 23:47:30 +00:00
allanjude
19ab8c6fb0
Fix the handbook install option in bsdinstall
...
bsdconfig's f_package_add doesn't seem to support using the pkg repo from /etc/pkg/FreeBSD.conf, it also tries to run the commands on the installer image, not in the destination chroot
Instead, manually bootstrap pkg in the chroot, and then install the requested packages (in the chroot)
Doesn't use pkg -c, because pkg is not installed on the installer image
PR: 196250
Differential Revision: https://reviews.freebsd.org/D2026
Approved by: bapt
Sponsored by: ScaleEngine Inc.
2015-03-18 23:24:38 +00:00
mav
55b7ea0246
Report that we may have write cache, and that we do support FLUSH.
...
FreeBSD guest driver does not use that legacy flag, but Linux seems does.
MFC after: 2 weeks
2015-03-16 20:13:25 +00:00
mav
cfdd687fd7
Increase S/G list size of 32 to 33 entries.
...
32 entries are not enough for the worst case of misaligned 128KB request,
that made FreeBSD to chunk large quests in odd pieces.
MFC after: 2 weeks
2015-03-16 09:15:59 +00:00
mav
2b87ed684f
Pre-allocate one extra request per processing thread.
...
Processing threads call callbacks before freeing requests. As result,
new requests may arrive before old ones are freed.
MFC after: 2 weeks
2015-03-15 22:44:53 +00:00
mav
0a32d97912
According to Linux and QEMU, s/n equal to buffer is not zero-terminated.
...
This makes same s/n reported for both virtio and AHCI drivers.
MFC after: 2 weeks
2015-03-15 17:45:16 +00:00
mav
72856e7d90
Close potential race on blockif_close().
...
Reported by: vangyzen
MFC after: 2 weeks
2015-03-15 16:18:03 +00:00
mav
2088070eaf
Fix networking problem after r280026.
...
I've missed that network driver sometimes returns taken request back to
available queue without processing. Add new helper function for that case.
Reported by: flo
MFC after: 2 weeks
2015-03-15 16:09:39 +00:00
mav
cd363583ce
Give AHCI disk serial based on backing file path same as for virtio block.
...
It is still not good that they may intersect on different hosts, but that
is better then intersecting on the same host.
MFC after: 2 weeks
2015-03-15 15:29:03 +00:00
mav
15ba37b7de
Rewrite virtio block device driver to work asynchronously and use the block
...
I/O interface.
Asynchronous operation, based on r280026 change, allows to not block virtual
CPU during I/O processing, that on slow/busy storage can take seconds.
Use of recently improved block I/O interface allows to process multiple
requests same time, that improves random I/O performance on wide storages.
Benchmarks of virtual disk, backed by ZVOL on RAID10 pool of 4 HDDs, show
~3.5 times random read performance improvements, while no degradation on
linear I/O. Guest CPU usage during test dropped from 100% to almost zero.
MFC after: 2 weeks
2015-03-15 14:57:11 +00:00
mav
42641f98a6
Modify virtqueue helpers added in r253440 to allow queuing.
...
Original virtqueue design allows queued and out-of-order processing, but
helpers added in r253440 suppose only direct blocking in-order one.
It could be fine for network, etc., but it is a huge limitation for storage
devices.
2015-03-15 11:37:07 +00:00
mav
476187cac8
Block delete capability for read-only devices.
...
Submitted by: neel
MFC after: 2 weeks
2015-03-15 08:09:56 +00:00
mav
eb63aed246
Give block I/O interface multiple (8) execution threads.
...
On parallel random I/O this allows better utilize wide storage pools.
To not confuse prefetcher on linear I/O, consecutive requests are executed
sequentially, following the same logic as was earlier implemented in CTL.
Benchmarks of virtual AHCI disk, backed by ZVOL on RAID10 pool of 4 HDDs,
show ~3.5 times random read performance improvements, while no degradation
on linear I/O.
MFC after: 2 weeks
2015-03-14 21:15:45 +00:00
mav
efa8369c49
Add checksums to identify data and NCQ command error log.
...
MFC after: 2 weeks
2015-03-14 14:06:37 +00:00
mav
75e831bbaa
Slightly polish virtual AHCI CD reporting.
...
MFC after: 2 weeks
2015-03-14 12:18:26 +00:00
mav
dd99a4abcb
Fix NOP and IDLE commands for virtual AHCI disks.
...
MFC after: 2 weeks
2015-03-14 10:38:25 +00:00
mav
36590090f2
Add support for NCQ variant of DSM TRIM for virtual AHCI disks.
...
The code is not really tested yet due to lack of initiator support.
Requested by: imp
MFC after: 2 weeks
2015-03-14 09:46:43 +00:00
mav
9ac55a7e33
Improve NCQ errors reporting for virtual AHCI disks.
...
While this implementation is still not perfect, previous was just broken.
MFC after: 2 weeks
2015-03-14 08:45:54 +00:00
mav
48507f436f
Remove incorrect SERR register setting.
...
At this point we have nothing to report through that register.
MFC after: 2 weeks
2015-03-13 21:01:25 +00:00
mav
358865b66d
Change prdbc value reporting.
...
MFC after: 2 weeks
2015-03-13 20:56:17 +00:00
mav
9d7a73f956
Polish AHCI disk identify data and fix speed negotiation.
...
MFC after: 2 weeks
2015-03-13 20:14:35 +00:00
mav
eded307e2f
Add support for PIO variants of READ/WRITE commands for AHCI disks.
...
AHCI API hides all PIO specifics, so this functionality is almost free.
MFC after: 2 weeks
2015-03-13 18:35:38 +00:00
mav
7435136f27
Use ahci_write_fis_d2h() for commands completion.
...
MFC after: 2 weeks
2015-03-13 18:04:07 +00:00
mav
ec9fb407ff
Add DSM TRIM command support for virtual AHCI disks.
...
It works only for virtual disks backed by ZVOLs and raw devices supporting
BIO_DELETE. Virtual disks backed by files won't report this capability.
MFC after: 2 weeks
Relnotes: yes
2015-03-13 16:43:52 +00:00
trasz
7d384a730d
Add -noauto autofs map, for automatic handling of fstab entries
...
marked "noauto".
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-13 12:44:46 +00:00
trasz
712aeceb14
Get executable direct maps to work.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-13 12:27:59 +00:00
trasz
29dcbee988
Rework the concat() algorithm to be correct in all cases.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-13 11:26:02 +00:00
trasz
e2d017a584
Make "automount -LL -o whatever" present options in the same order
...
as used by automountd(8).
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-12 12:36:08 +00:00
trasz
e47fa13bc5
Make concat() accept NULL arguments.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-12 12:17:15 +00:00
trasz
724f53c3cf
Options from auto_master must be appended to options from maps,
...
not prepended.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-12 12:14:11 +00:00
kmoore
3247c2766c
- Include commas in valid file-name chars freebsd-update will support
...
Approved by: cperciva
2015-03-12 06:41:01 +00:00
trasz
bf5182c099
Fix typo.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 14:43:07 +00:00
trasz
09be0092bd
Properly pass options for direct maps.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 12:25:05 +00:00
trasz
6892ebe639
Fix handling of direct maps, broken in r275756. Previously, running
...
automount(8) would unmount direct map trigger nodes every second time.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 11:59:33 +00:00
trasz
1970982572
Refactor.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 09:53:15 +00:00
trasz
69b4b7af49
Erm, revert chunk committed by mistake.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 15:44:36 +00:00
trasz
155cef1fdb
Make things more readable; no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 15:31:33 +00:00
trasz
9d17bb3d2b
Remove some particularly bad code; no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 15:20:12 +00:00
trasz
558260a403
Fix memory leak.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 13:21:00 +00:00
trasz
622e1a5d99
Improve separated_concat() to properly handle the case of concatenating
...
"/" and "/foo".
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 13:00:59 +00:00
trasz
8822ff21ce
Minor optimization/cleanup in node_path(); no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 11:59:58 +00:00
loos
5599179cc4
Put the new sentence on a new line.
...
Found with igor.
2015-03-08 21:11:08 +00:00
loos
04b6b93c32
Add a new ioctl to allow the setting of GPIO pin names.
...
When a gpiobus child is added, use its name to identify the mapped pin
names.
Make the respective changes to libgpio.
Add a new '-n' flag to gpioctl(8) to set the pin name.
Differential Revision: https://reviews.freebsd.org/D2002
Reviewed by: rpaulo
Requested by: many
2015-03-08 00:47:50 +00:00
mav
a0ef792dfe
Add variable initialization missed by me and clang.
...
Reported by: grehan
MFC after: 2 weeks
2015-03-05 20:29:18 +00:00
mav
710980f2ff
Fix error translation broken in r279658.
...
Reported by: grehan
MFC after: 2 weeks
2015-03-05 20:24:34 +00:00