joel
048fb92f58
Remove EOL whitespace.
2013-03-21 11:22:13 +00:00
melifaro
d50a0fe376
Remove unused variable.
2013-03-20 10:36:38 +00:00
melifaro
31a6358fff
Add ipfw support for setting/matching DiffServ codepoints (DSCP).
...
Setting DSCP support is done via O_SETDSCP which works for both
IPv4 and IPv6 packets. Fast checksum recalculation (RFC 1624) is done for IPv4.
Dscp can be specified by name (AFXY, CSX, BE, EF), by value
(0..63) or via tablearg.
Matching DSCP is done via another opcode (O_DSCP) which accepts several
classes at once (af11,af22,be). Classes are stored in bitmask (2 u32 words).
Many people made their variants of this patch, the ones I'm aware of are
(in alphabetic order):
Dmitrii Tejblum
Marcelo Araujo
Roman Bogorodskiy (novel)
Sergey Matveichuk (sem)
Sergey Ryabin
PR: kern/102471, kern/121122
MFC after: 2 weeks
2013-03-20 10:35:33 +00:00
joel
0e15d94b89
Add simple example.
2013-03-19 21:40:14 +00:00
imp
d668ffd124
Add a comment about why aout support is still here: We need it for
...
compat2x, which is still in use, as evidence by recent bug reports.
2013-03-19 16:57:04 +00:00
joel
34ea777e7c
Remove obsolete objformat information.
...
Submitted by: db
2013-03-19 12:35:33 +00:00
pjd
ee34459918
Reduce stack usage.
2013-03-18 21:11:31 +00:00
joel
7b26e8ff4f
Cross-reference gvinum(8) instead of vinum(8).
2013-03-16 22:02:47 +00:00
joel
8b398d02b3
Remove reference to vinum(4). The manual page was removed in r248370.
2013-03-16 21:50:06 +00:00
pjd
3d6eb97a85
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
pjd
aa00097868
Minor corrections.
2013-03-14 23:11:52 +00:00
pjd
5f4ba049f3
Delete requests can be larger than MAXPHYS.
2013-03-14 23:03:48 +00:00
marck
1c72daa754
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
pjd
e07cb106fc
Removed redundant includes.
2013-03-14 21:21:14 +00:00
delphij
4824f82537
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
c3efd7a7bd
Minor mdoc fixes.
2013-03-14 18:55:41 +00:00
sbruno
22372779e5
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
jkim
f89a924f2d
Use build_iovec() to make it less cryptic. This also fixes warnings.
2013-03-06 00:36:33 +00:00
jkim
581391a0d1
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
jkim
326a42abb9
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
jkim
475f470cf1
GC unused variables. Prefer NULL over 0 for pointers.
2013-03-05 22:41:35 +00:00
melifaro
68eaa885ca
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
eadler
ed67ac528d
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
eadler
a3065a2b58
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
eadler
d359c8655e
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
eadler
d75b737f54
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
eadler
b8332b3b8a
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
eadler
447034a196
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
eadler
01afb73f51
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
eadler
229e6c1666
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
eadler
8f1c733aff
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
eadler
707e0c270a
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
eadler
5175512e23
Constify where possible.
...
Approved by: cperciva (mentor)
2013-03-04 02:19:55 +00:00
melifaro
12a0d12e98
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
melifaro
5026b7b931
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
5d57dc997e
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
4b0353fc07
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
pho
5661e1fe46
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
5dde1547f6
Fix typo in EFI GPT GUID.
2013-02-27 03:43:16 +00:00
n_hibma
fc11335acc
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
trociny
b5ecc3cb1f
Fix casting.
...
MFC after: 3 days
2013-02-26 20:19:45 +00:00
trociny
8690e69f6a
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
kientzle
d4ec0f391b
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
pluknet
60edaad227
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
mckusick
f51be3d429
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
pluknet
e80b822e8b
Reflect CARP media-type departure.
...
X-MFC after: never
2013-02-21 21:35:09 +00:00
pluknet
d9f661c57a
Separate items in the list of System values with .Pp to ease readability.
2013-02-21 20:45:19 +00:00
pjd
0bf19fd812
- 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
pluknet
6f51f4e419
Remove write only assignments and thus fix the build after struct bufarea
...
TAILQ conversion (r246812).
2013-02-15 09:10:01 +00:00
mckusick
e3df6310d5
Update fsck_ffs buffer cache manager to use TAILQ macros.
...
No functional changes.
2013-02-15 01:00:48 +00:00