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
Xin LI
399fe4799b
Use stripesize as smallest block size if it's available.
...
MFC after: 2 weeks
2013-02-04 19:17:15 +00:00
Gleb Smirnoff
9711a168b9
Retire struct sockaddr_inarp.
...
Since ARP and routing are separated, "proxy only" entries
don't have any meaning, thus we don't need additional field
in sockaddr to pass SIN_PROXY flag.
New kernel is binary compatible with old tools, since sizes
of sockaddr_inarp and sockaddr_in match, and sa_family are
filled with same value.
The structure declaration is left for compatibility with
third party software, but in tree code no longer use it.
Reviewed by: ru, andre, net@
2013-01-31 08:55:21 +00:00
Ian Lepore
5dfc0f6c53
Improve devd startup time, by tweaking some string handling routines that are
...
heavily used when parsing config files. Mostly these changes avoid making
temporary copies of the strings, and avoid doing byte at a time append
operations, on the most-used code path.
On a 1.2 GHz ARM processor this reduces the time to parse the config files
from 13 to 6 seconds.
Reviewed by: imp
Approved by: cognet (mentor)
2013-01-30 23:37:35 +00:00
Ian Lepore
e1334f935f
Fix a descriptor leak in devd. Clients reading /var/run/devd.pipe can close
...
their socket connection any time, and devd only notices that when it gets an
error trying to write an event to the client. On a system with no device
change activity, clients could connect and disappear repeatedly without devd
noticing, leading to an ever-growing list of open socket descriptors in devd.
Now devd uses poll(2) looking for POLLHUP on all existing clients every time
a new client connection is established, and also periodically (once a minute)
to proactively find zombie clients and reap the socket descriptors. It also
now has a connection limit, configurable with a new -l <num> command line arg.
When the maximum number of connections is reached it stops accepting new
connections until some current clients drop off.
Reviewed by: imp
Approved by: cognet (mentor)
2013-01-30 15:21:18 +00:00
Warren Block
0e0d13226c
Expand description of how gptboot and gptzfsboot choose a partition for
...
booting.
Reviewed by: ae
MFC after: 1 week
2013-01-25 16:33:00 +00:00
Pedro F. Giffuni
f4f891a751
newfs_msdos: cosmetical cleanups
...
- Simplify diagnostic messages.
- Adopt lowercase first letters to make the messages
more canonical.
PR: bin/175404
Submitted by: Christoph Mallon
Reviewed by: bde
MFC after: 3 days
2013-01-19 03:34:02 +00:00
Alexander Motin
821a0f639e
For Promise/AMD metadata add support for disks with capacity above 2TiB
...
and for volumes with sector size above 512 bytes.
2013-01-17 00:50:25 +00:00
Eitan Adler
7b6a91800c
Correct prefix for "locally installed things"
...
Approved by: cperciva
MFC After: 3 days
2013-01-16 05:03:46 +00:00
Alexander Motin
2c6a273750
Allow to insert new component to geom_raid3 without specifying number.
...
PR: kern/160562
MFC after: 2 weeks
2013-01-15 10:06:35 +00:00
Xin LI
6f36135181
Use the right format string for line buffer.
...
PR: bin/174910
Submitted by: Fabian Keil <fk fabiankeil.de>
2013-01-13 04:28:44 +00:00
Hajimu UMEMOTO
164051cea5
Add no_prefer_iface option.
...
It stops treating the address on the interface as special by source
address selection rule even when the interface is outgoing interface.
This is desired in some situation.
Requested by: hrs
Reviewed by: IHANet folks including hrs
MFC after: 1 week
2013-01-09 18:18:08 +00:00
Hiroki Sato
9f18a157e8
Fix -iface and -interface modifiers.
...
Spotted by: Ian FREISLICH
2013-01-08 17:24:43 +00:00