summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Remove __FreeBSD__ ifdefs.glebius2013-11-221-6/+1
|
* Rewrite usage() so that its source code resembles what is printed.glebius2013-11-221-7/+7
|
* - Purge one more reference to ad(4)[1].pluknet2013-11-221-6/+4
| | | | | | | - NSWAPDEV limit has gone. Noticed by: Sergey V. Dyatko [1] MFC after: 1 week
* Add "resize" verb to gmirror(8) and such functionality to geom_mirror(4).ae2013-11-192-1/+118
| | | | | | | | | Now it is easy to expand the size of the mirror when all its components are replaced. Also add g_resize method to geom_mirror class. It will write updated metadata to new last sector, when parent provider is resized. Silence from: geom@ MFC after: 1 month
* Check for special status code from FIRMWARE_ACTIVATE commandjimharris2013-11-121-11/+24
| | | | | | | | | signifying that a reboot is required to complete activation of the requested firmware image. Reported by: Joe Golio <joseph.golio@emc.com> Sponsored by: Intel MFC after: 3 days
* Fix a typo: s/wriable/writable/dteske2013-11-121-1/+1
|
* devd: lower priority of action execution logging to infoavg2013-11-071-1/+1
| | | | Reviewed by: asomers
* devd: fix a typo in a commentavg2013-11-071-1/+1
| | | | Reviewed by: asomers
* Axe IFF_SMART.glebius2013-11-051-1/+1
| | | | Submitted by: pluknet
* Correct alignment.pjd2013-11-031-1/+1
|
* Do not exit with error status after printing data for perftest.jimharris2013-11-011-2/+0
| | | | | | Sponsored by: Intel Reported by: Joe Golio <joseph.golio@emc.com> MFC after: 3 days
* printf() specifier updates to CAM to handle either 32-bit or 64-bit lun_id_t.nwhitehorn2013-10-301-2/+2
| | | | MFC after: 2 weeks
* Make userland tools honor WITHOUT_PF build option.glebius2013-10-291-0/+2
| | | | Tested by: dt71@gmx.com
* Don't call arc4random_stir() explicitly. To quote arc4random(3)delphij2013-10-291-4/+2
| | | | | | | | | | | manual page: There is no need to call arc4random_stir() before using arc4random() functions family, since they automatically initialize themselves. No objection: des MFC after: 2 weeks
* Import pf_print_state.c 1.54 from OpenBSDbapt2013-10-271-0/+5
| | | | | | | | | | | Original log: pfctl -ss printed state levels for ICMPv6. Disable this the same way it has already been done for ICMPv4. Difference with OpenBSD: - WITHOUT_INET6 safe Obtained from: OpenBSD
* bump date forgotten in r257165jmg2013-10-261-1/+1
|
* Document that -a will output the device name when -u is not specified..jmg2013-10-261-6/+12
| | | | | | | | | | when -u is specified it is not... update the docs to say that you can use full device names w/ -u, and update the examples... Submitted by: #vbsdcon MFC after: 3 days
* Make hastctl list command output current queue sizes.trociny2013-10-265-1/+92
| | | | | Reviewed by: pjd MFC after: 1 month
* Merging local and remote bitmaps must be protected by hr_amp lock.trociny2013-10-261-1/+1
| | | | | | | | | | This is believed to fix hastd crashes, which might occur during synchronization, triggered by the failed assertion: Assertion failed: (amp->am_memtab[ext] > 0), function activemap_write_complete, file activemap.c, line 351. MFC after: 1 week
* Return 0 if:hrs2013-10-241-6/+12
| | | | | | | | | | | | 1. "-u N" specified, no -f, and mdN found, 2. no -u, "-f /pathname" specified, and mdN associated with /pathname found, 3. "-u N" specified, "-f /pathname" specified, and both of them found, 4. "-l" specified and no -f, 5. "-l" specified, "-f /pathname" specified, and /pathname found. otherwise return -1. Spotted by: Julian H. Stacey
* UFS2: make di_extsize unsigned.pfg2013-10-242-2/+2
| | | | | | | | di_extsize is the EA size and as such it should be unsigned. Adjust related types for consistency. Reviewed by: mckusick (previous version) MFC after: 3 weeks
* sbin/geom/class/part/geom_part.casomers2013-10-231-3/+31
| | | | | | | | | Always validate the return of find_geomcfg(). It could be NULL, for example when the geom is withering. Approved by: ken (mentor) Sponsored by: Spectra Logic Corporation MFC after: 3 weeks
* Provide a working example line for an interface with 1 address runningglebius2013-10-211-2/+2
| | | | | | | | | | | | | with CARP. Currently, we've got a problem that interface isn't IFF_UP at the time we assign it a redundant address, and the latter gets stuck in INIT state. Additional SIOCSIFFLAGS from ifconfig(8) kicks it to a working state. A proper fix is kernel side and appeared to be non-trivial, not to be checked in before 10.0-RELEASE. Submitted by: Ole Myhre <ole.myhre dataoppdrag.no>
* Do not error out when adding an interface to a group to which itdes2013-10-191-2/+2
| | | | | | | | | already belongs or removing it from a group to which it does not belong. This makes it possible to include group memberships in ifconfig_foo0 in rc.conf without fear of breaking "service netif restart foo0". MFC after: 3 days
* Use long explicitly for the time difference.hrs2013-10-181-1/+2
|
* - Add relative specification in expiration time.hrs2013-10-173-11/+43
| | | | | - Add proto3 option for RTF_PROTO3. - Use %lu for members of struct rt_metrics.
* Check for EHOSTUNREACH when establishing a connection.kevlo2013-10-171-0/+1
| | | | Reviewed by: trasz
* Prevent an unlikely, but real double free issue in gvinum(8).delphij2013-10-151-7/+10
| | | | Coverity ID: 1018965
* Use INADDR_NONE instead of -1 to check inet_addr() result.kevlo2013-10-151-1/+1
| | | | Reviewed by: glebius
* Fix mode page length calculation to remove last garbage line from themav2013-10-111-2/+2
| | | | | | | | `camcontrol mode daX -l` output. PR Approved by: re (gjb) MFC after: 2 weeks
* Remove unimplemented options from iscsi.conf(5) manual page, mentiontrasz2013-10-101-31/+6
| | | | | | | | that it's being used by both initiators, and change the title to make it more easily searchable. Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Extend some 32-bit fields and variables to 64-bit to prevent overflowjimharris2013-10-081-5/+7
| | | | | | | | | | when calculating stats in nvmecontrol perftest. Sponsored by: Intel Reported by: Joe Golio <joseph.golio@emc.com> Reviewed by: carl Approved by: re (hrs) MFC after: 1 week
* When destination parameter is missing, exit with a clear synopsis,glebius2013-10-081-0/+5
| | | | | | | | instead of writing to kernel and printing EINVAL description. PR: bin/181532 Submitted by: Kurt Jaeger <fbsd-pr opsec.eu> Approved by: re (hrs)
* Fix an inverted check for the master user in "camcontrol security -U".markj2013-10-081-1/+1
| | | | | | | PR: bin/182703 Submitted by: Scott Burns <scott@bqinternet.com> Approved by: re (gjb) MFC after: 3 days
* Fix resource leaksemaste2013-10-071-0/+2
| | | | | Found by: Coverity Scan, CID 1016673, 1007118 Approved by: re
* Sweep man pages replacing ad -> ada.pluknet2013-10-0113-61/+61
| | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only
* Improve grammar and readability.hiren2013-09-201-3/+3
| | | | | Reviewed by: sbruno, loos Approved by: re (gjb)
* Fix a range check and a display string.hiren2013-09-201-2/+2
| | | | | | Reviewed by: loos Approved by: sbruno (mentor, implicit) Approved by: re (glebius)
* Fix comments.trociny2013-09-191-3/+2
| | | | | Approved by: re (marius) MFC after: 3 days
* When updating the map of dirty extents, most recently used extents aretrociny2013-09-192-9/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | kept dirty to reduce the number of on-disk metadata updates. The sequence of operations is: 1) acquire the activemap lock; 2) update in-memory map; 3) if the list of keepdirty extents is changed, update on-disk metadata; 4) release the lock. On-disk updates are not frequent in comparison with in-memory updates, while require much more time. So situations are possible when one thread is updating on-disk metadata and another one is waiting for the activemap lock just to update the in-memory map. Improve this by introducing additional, on-disk map lock: when in-memory map is updated and it is detected that the on-disk map needs update too, the on-disk map lock is acquired and the on-memory lock is released before flushing the map. Reported by: Yamagi Burmeister yamagi.org Tested by: Yamagi Burmeister yamagi.org Reviewed by: pjd Approved by: re (marius) MFC after: 2 weeks
* Use cv_broadcast() instead of cv_signal() when waking up threadstrociny2013-09-192-3/+3
| | | | | | | | | | | | | | | | | | | | waiting on an empty queue as the queue may have several consumers. Before the fix the following scenario was possible: 2 threads are waiting on empty queue, 2 threads are inserting simultaneously. The first inserting thread detects that the queue is empty and is going to send the signal, but before it sends the second thread inserts too. When the first sends the signal only one of the waiting threads receive it while the other one may wait forever. The scenario above is is believed to be the cause of the observed cases, when ggate_recv_thread() was getting stuck on taking free request, while the free queue was not empty. Reviewed by: pjd Tested by: Yamagi Burmeister yamagi.org Approved by: re (marius) MFC after: 2 weeks
* Bring in the new iSCSI target and initiator.trasz2013-09-142-0/+2
| | | | | | Reviewed by: ken (parts) Approved by: re (delphij) Sponsored by: FreeBSD Foundation
* - Begin sentence on a new line.joel2013-09-071-14/+25
| | | | - Minor language fixes.
* newfs_msdos: fix inaccurate comments.pfg2013-09-071-2/+2
| | | | | | | | | | The fields from deMTime and deMDate in the DOS directory entry are actually the last-modified time/date. According to some online documentation these are the only timestamps available in FAT12/FAT16. MFC after: 3 days
* Update ipfilter 4.1.28 --> 5.1.2.cy2013-09-063-18/+42
| | | | | Approved by: glebius (mentor) BSD Licensed by: Darren Reed <darrenr@reed.wattle.id.au> (author)
* Bump .Dd after r255307 and r255310bryanv2013-09-061-1/+1
| | | | Requested by: joel
* Add firmware downloading support for Samsung drivesbryanv2013-09-062-0/+4
| | | | Tested on Samsung SM1625 SSDs.
* Add camcontrol support for the SCSI sanitize commandbryanv2013-09-062-1/+544
| | | | | Reviewed by: ken, mjacob (eariler version) Sponsored by: Netapp
* Style clean-ups.hrs2013-09-051-54/+48
| | | | Reviewed by: md5
* Enable "late" option when a file= option is specified in /etc/fstab.hrs2013-09-051-4/+11
| | | | | | The file= option requires rw mount where the backing store exists but it does not work because rc.d/swap runs before rc.d/fsck. Reported by: wblock
OpenPOWER on IntegriCloud