Joel Dahl
245e0480d2
Remove obsolete objformat information.
...
Submitted by: db
2013-03-19 12:35:33 +00:00
Pawel Jakub Dawidek
a3d8ae5d2d
Reduce stack usage.
2013-03-18 21:11:31 +00:00
Joel Dahl
d1cd5e7cf3
Cross-reference gvinum(8) instead of vinum(8).
2013-03-16 22:02:47 +00:00
Joel Dahl
b63e03632c
Remove reference to vinum(4). The manual page was removed in r248370.
2013-03-16 21:50:06 +00:00
Pawel Jakub Dawidek
51ea07d722
Now that ioctl(2) is allowed in capability mode and we can limit ioctls for the
...
given descriptors, use Capsicum sandboxing for hastd in primary and secondary
modes. Allow for DIOCGDELETE and DIOCGFLUSH ioctls on provider descriptor and
for G_GATE_CMD_MODIFY, G_GATE_CMD_START, G_GATE_CMD_DONE and G_GATE_CMD_DESTROY
on GEOM Gate descriptor.
Sponsored by: The FreeBSD Foundation
2013-03-14 23:14:47 +00:00
Pawel Jakub Dawidek
9cb0633b1c
Minor corrections.
2013-03-14 23:11:52 +00:00
Pawel Jakub Dawidek
9bb2b7f535
Delete requests can be larger than MAXPHYS.
2013-03-14 23:03:48 +00:00
Dmitry Morozovsky
5632176c77
Rename 'status' command to 'list' and introduce new 'status' which produces
...
more terse output more observable for both scripts and humans.
Also, it shifts hastctl closer to GEOM utilities with their list/status command
pairs.
Approved by: pjd
MFC after: 4 weeks
2013-03-14 22:29:37 +00:00
Pawel Jakub Dawidek
2ee08bd197
Removed redundant includes.
2013-03-14 21:21:14 +00:00
Xin LI
d44ae92a69
Correct type for DIOCGSTRIPESIZE. Without this there
...
would be a stack overflow which will crash the program
later.
PR: bin/176953
Submitted by: r4721 tormail org
MFC after: 3 days
2013-03-14 20:05:49 +00:00
Joel Dahl
45f5d4d0c2
Minor mdoc fixes.
2013-03-14 18:55:41 +00:00
Sean Bruno
bd9fba0cfe
Add legacy support to geom raid to create a /dev/arX device for support
...
of upgrading older machines using ataraid(4) to newer releases.
This optional parameter is controlled via kern.geom.raid.legacy_aliases
and will create a /dev/ar0 device that will point at /dev/raid/r0 for
example.
Tested on Dell SC 1425 DDF-1 format software raid controllers installing from
stable/7 and upgrading to stable/9 without having to adjust /etc/fstab
Reviewed by: mav
Obtained from: Yahoo!
MFC after: 2 Weeks
2013-03-08 20:07:32 +00:00
Jung-uk Kim
067041766e
Use build_iovec() to make it less cryptic. This also fixes warnings.
2013-03-06 00:36:33 +00:00
Jung-uk Kim
7eb5d3cfa5
GC unused mount_* directories. mount_reiserfs was disconnected from build
...
with r158666. mount_ext2fs and mount_std were disconnected with r164527.
2013-03-05 23:53:37 +00:00
Jung-uk Kim
e8e60cfae2
Update the manual page to reflect reality. With r138509 and r152355,
...
"nostrictjoliet" option for mount_cd9660(8) was completely replaced with
"brokenjoliet" somehow.
MFC after: 3 days
2013-03-05 23:05:43 +00:00
Jung-uk Kim
7039dfb32f
GC unused variables. Prefer NULL over 0 for pointers.
2013-03-05 22:41:35 +00:00
Alexander V. Chernikov
f71133f64f
Do not suddenly fail on some rulesets if -n (syntax check only) is specified
...
and ipfw(4) module is not loaded.
MFC after: 2 weeks
2013-03-04 19:01:38 +00:00
Eitan Adler
4cb9d1beca
devd: Correct typo in comment.
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:31 +00:00
Eitan Adler
7d9e9c60a0
devd: Use simpler dst += *x instead of str.append(x, 1).
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:29 +00:00
Eitan Adler
a6393aa163
devd: Use string::empty() instea of string::length() == 0.
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:26 +00:00
Eitan Adler
1d9bf149ef
devd: Remove unnecessary empty default constructors.
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:24 +00:00
Eitan Adler
012148abc2
devd: Remove empty virtual destructor from class, which has noch subclasses.
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:22 +00:00
Eitan Adler
5a3b1a3d7c
devd: Avoid unnecessary temporary objects (and simplify the code) when handling std::string.
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:19 +00:00
Eitan Adler
6d58c721c6
devd: Use the standard constructor of std::string instead of string("").
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:17 +00:00
Eitan Adler
67ae3bf165
devd: Simplify while (1) { if (x) break; } to while (!x) {}.
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:15 +00:00
Eitan Adler
4efceb186c
devd: Remove call to _exit() from signal handler, which also sets a stop flag.
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:12 +00:00
Eitan Adler
fcdcaa8807
devd: Use volatile sig_atomic_t for the flag set by a signal handler.
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
Approved by: cperciva (mentor)
2013-03-04 02:21:08 +00:00
Eitan Adler
11fd1366bc
Constify where possible.
...
Approved by: cperciva (mentor)
2013-03-04 02:19:55 +00:00
Alexander V. Chernikov
579ed7bd05
Implement buffer size checking in ipfw(8) add cmd.
...
PR: bin/65961
Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
MFC after: 2 weeks
2013-03-03 14:05:03 +00:00
Alexander V. Chernikov
136b1ada11
Fix ipfw table argument parsing/printing.
...
Fix style.
PR: kern/175909
Submitted by: Daniel Hagerty <hag@linnaean.org>
MFC after: 2 weeks
2013-03-02 18:51:26 +00:00
Attilio Rao
737a61a1ee
Garbage collect NTFS bits which are now completely disconnected from
...
the tree since few months.
This patch is not targeted for MFC.
2013-03-02 18:40:04 +00:00
Attilio Rao
258bee160c
Garbage collect HPFS bits which are now already completely disconnected
...
from the tree since few months (please note that the userland bits
were already disconnected since a long time, thus there is no need
to update the OLD* entries).
This is not targeted for MFC.
2013-03-02 14:54:33 +00:00
Peter Holm
14951d4234
The .journal file needs to reside on the ROOTINO which must not extend
...
beyond direct blocks. A typo caused this check to fail.
2013-02-27 18:12:04 +00:00
Benno Rice
085c638420
Fix typo in EFI GPT GUID.
2013-02-27 03:43:16 +00:00
Nick Hibma
0e52eb5ac5
Clarify that overriding the -h/-D flags through flags in device.hints
...
only works for sio(4) but not for uart(4) which no longer has this flag.
2013-02-26 23:18:35 +00:00
Mikolaj Golub
6559a21f71
Fix casting.
...
MFC after: 3 days
2013-02-26 20:19:45 +00:00
Mikolaj Golub
2adbba660d
Add i/o error counters to hastd(8) and make hastctl(8) display
...
them. This may be useful for detecting problems with HAST disks.
Discussed with and reviewed by: pjd
MFC after: 1 week
2013-02-25 20:09:07 +00:00
Tim Kientzle
f2e472dcf4
Fix ARM build by assigning the computed time here to
...
a variable of the right type for printf.
2013-02-25 16:25:38 +00:00
Sergey Kandaurov
3dfcb0da4b
Catch up with internal API changes for initbarea() and getdatablk()
...
of fsck_ffs introduced with r247212.
Submitted by: David Wolfskill <david@catwhisker.org>
2013-02-24 19:32:43 +00:00
Kirk McKusick
ed75b5a156
When running with the -d option, instrument fsck_ffs to track the number,
...
data type, and running time of its I/O operations.
No functional changes.
2013-02-24 06:44:29 +00:00
Sergey Kandaurov
75dbe5f2b6
Reflect CARP media-type departure.
...
X-MFC after: never
2013-02-21 21:35:09 +00:00
Sergey Kandaurov
fe9a760737
Separate items in the list of System values with .Pp to ease readability.
2013-02-21 20:45:19 +00:00
Pawel Jakub Dawidek
d6e636c988
- Add support for 'memsync' mode. This is the fastest replication mode that's
...
why it will now be the default.
- Bump protocol version to 2 and add backward compatibility for version 1.
- Allow to specify hosts by kern.hostid as well (in addition to hostname and
kern.hostuuid) in configuration file.
Sponsored by: Panzura
Tested by: trociny
2013-02-17 21:12:34 +00:00
Sergey Kandaurov
fa358104b1
Remove write only assignments and thus fix the build after struct bufarea
...
TAILQ conversion (r246812).
2013-02-15 09:10:01 +00:00
Kirk McKusick
2ec5c91481
Update fsck_ffs buffer cache manager to use TAILQ macros.
...
No functional changes.
2013-02-15 01:00:48 +00:00
Pawel Jakub Dawidek
b93ca95c4f
Fix minor memory leak.
2013-02-10 15:56:47 +00:00
Pawel Jakub Dawidek
2d4b50b61e
Assert that if we are not dealing with keyfile we are dealing with passfile.
2013-02-10 15:56:20 +00:00
Pawel Jakub Dawidek
d4e5fe17e6
Use arc4random_buf(3) instead of reimplementing it.
2013-02-10 15:55:42 +00:00
Monthadar Al Jaberi
8904a305ae
Mark a mesh path to a mesh gate with a 'G'.
...
Approved by: adrian (mentor)
2013-02-07 21:23:03 +00:00
Niclas Zeising
71c2381938
Bump .Dd for the change in r246121.
...
Approved by: joel (mentor)
2013-02-05 14:29:37 +00:00