356133 |
27-Dec-2019 |
mav |
MFC r355718: Fix $() handling, broken since the beginning at r108014.
Due to off-by-one error in brackets counting it consumed the rest of the string, preventing later variables expansions. |
352280 |
13-Sep-2019 |
bapt |
MFC r352119-r352124, r352130
Stop linking to libl by specifying we do not need yywrap |
331722 |
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re) |
331086 |
17-Mar-2018 |
eadler |
MFC r328430,r328431:
devd: minor nits
- mark usage as noreturn |
330897 |
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg |
330449 |
05-Mar-2018 |
eadler |
MFC r326276:
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended. |
320747 |
06-Jul-2017 |
asomers |
MFC r320165-r320167
r320165: devd(8): Remove pidfile on shutdown
Sponsored by: Spectra Logic Corp
r320166: Require devd to be running for its ATF tests to run
The ATF tests communicate with the system's running devd
PR: 220169 Reported by: gjb Sponsored by: Spectra Logic Corp
r320167: zfsd(8): Remove pidfile on shutdown
Sponsored by: Spectra Logic Corp |
314427 |
28-Feb-2017 |
asomers |
MFC r311572, r311895, r311928, r311985, r312395, r312417
r311572: Fix file descriptor leaks in cmp(1)
Also, add a few test cases
Reported by: Coverity CID: 271624 275338 Reviewed by: ngie MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D9074
r311895: Fix memory leaks during "tail -r" of an irregular file
* Rewrite r_buf to use standard tail queues instead of a hand-rolled circular linked list. Free dynamic allocations when done. * Remove an optimization for the case where the file is a multiple of 128KB in size and there is a scarcity of memory. * Add ATF tests for "tail -r" and its variants.
Reported by: Valgrind Reviewed by: ngie MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D9067
r311928: Fix build of usr.bin/tail with GCC
Submitted by: pluknet Reported by: pluknet MFC after: 27 days X-MFC-with: 311895 Sponsored by: Spectra Logic Corp
r311985: Fix uninitialized variable CIDs in route6d
The variables in question are actually return arguments, but it's still good form to initialize them.
Reported by: Coverity CID: 979679 979680 MFC after: 4 weeks Sponsored by: Spectra Logic Corp
r312395: Fix several Coverity CIDs in devd
CID 1362055, 1362054: File descriptor leaks during shutdown CID 1362013: Potential null-termination fail with long network device names CID 1362097: Uncaught exception during memory pressure CID 1362017, 1362016: Unchecked errors, possibly resulting in weird behavior if two devd instances start at the same time. CID 1362015: Unchecked error that will probably never fail
Reported by: Coverity CID: 1362055 1362054 1362013 1362097 1362017 1362016 1362015 MFC after: 4 weeks Sponsored by: Spectra Logic Corp
r312417: Fix build of devd with GCC 4.2
Reported by: olivier Pointy-hat-to: asomers MFC after: 27 days X-MFC-with: 312395 Sponsored by: Spectra Logic Corp |
307447 |
17-Oct-2016 |
sevan |
MFC r306840: Sort SEE ALSO section sequentially. Highlighted by mandoc -Tlint
PR: 212440 Approved by: imp Differential Revision: https://reviews.freebsd.org/D8192 |
307432 |
16-Oct-2016 |
sevan |
MFC r306727: Add history section for devd(8) Move sentence to a new line as advised by igor
PR: 212439 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8104 |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
299094 |
04-May-2016 |
ngie |
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed after r298107
Summary of changes:
- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)
Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info.
MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
|
298644 |
26-Apr-2016 |
asomers |
Add GEOM::physpath documentation to devd.conf(5)
Suggested by: trasz Reviewed by: trasz MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6063
|
298107 |
16-Apr-2016 |
gjb |
Merge the projects/release-pkg branch to head.
This allows packaging the base system with pkg(8), including but not limited to providing the ability to provide upstream binary update possibilities for non-tier-1 architectures.
This merge is a requirement of the 11.0-RELEASE, and as such, thank you to everyone that has tested the project branch.
Documentation in build(7) etc. is still somewhat sparse, but updates to those parts will follow.
Sponsored by: The FreeBSD Foundation
|
298008 |
14-Apr-2016 |
scottl |
Update the devd.conf man page to describe the new CAM/periph system/subsystem.
MFC after: 3 days Sponsored by: Netflix
|
297838 |
11-Apr-2016 |
asomers |
Fix an intermittent bug in sbin/devd/client_test.stream
In case where the two events were being received in separate reads, the event buffer was being null-terminated at the wrong offset.
Also, factored out some common code between the tests, and fixed a comment.
Submitted by: will MFC after: 3 days Sponsored by: Spectra Logic Corp
|
297529 |
03-Apr-2016 |
imp |
Add a timestamp variable to the environment. This is when the event was read from the kernel by devd.
|
297528 |
03-Apr-2016 |
imp |
Make $_ match the docs.
|
297331 |
28-Mar-2016 |
imp |
Sometimes, it's useful to export the entire line to an external program without listening to the devd socket for all events. Define two new pseudo variables $*, the entire event from devctl and $_, the entire event without the type character, since it might be easier to use in some circumstances.
|
296587 |
09-Mar-2016 |
bdrewery |
DIRDEPS_BUILD: Connect MK_TESTS.
Sponsored by: EMC / Isilon Storage Division
|
296208 |
29-Feb-2016 |
trasz |
carp(8) -> carp(4)
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
295989 |
24-Feb-2016 |
bdrewery |
DIRDEPS_BUILD: Regenerate without local dependencies.
These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'.
Sponsored by: EMC / Isilon Storage Division
|
292020 |
09-Dec-2015 |
asomers |
Increase devd's client socket buffer size to 256KB. This is not as large as it looks, because we'll hit the sockbuf's mbuf limit long before hitting its data limit. A 256KB data limit allows creating a ZFS pool on about 450 drives without overflowing the client socket buffers.
MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4476
|
289677 |
21-Oct-2015 |
eadler |
Fix a ton of speelling errors
arc lint is helpful
Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
|
289172 |
12-Oct-2015 |
ngie |
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and netbsd-tests.test.mk (r289151)
- Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
|
285674 |
18-Jul-2015 |
trasz |
Document suspend/resume notification in devd.conf(5).
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
|
285673 |
18-Jul-2015 |
trasz |
Add CARP events description to devd.conf(5).
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
|
284481 |
16-Jun-2015 |
sjg |
new depends
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796 Reviewed by: brooks imp
|
282857 |
13-May-2015 |
trasz |
Document RCTL events in devd.conf(5).
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
277170 |
14-Jan-2015 |
trasz |
Add devd(8) notifications for creation and destruction of GEOM devices.
Differential Revision: https://reviews.freebsd.org/D1211 MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
275030 |
25-Nov-2014 |
bapt |
Convert sbin/ to LIBADD Reduce overlinking
|
270231 |
20-Aug-2014 |
asomers |
Misc fixes suggested by Coverity.
sbin/devd/tests/client_test.c * In the event that popen fails, don't dereference its return value. * Fix array overwrite in the stream and seqpacket tests. * Close sockets at the end of successful ATF tests.
Reported by: Coverity scan CID: 1232019, 1232020, 1232029, 1232030 MFC after: 1 week Sponsored by: Spectra Logic
|
270019 |
15-Aug-2014 |
bz |
Remove bogus ; at the end of the if condition in order to unbreak gcc builds after r270004.
MFC after: 4 days X-MFX with: r270004
|
270004 |
14-Aug-2014 |
asomers |
Convert devd's client socket to type SOCK_SEQPACKET.
This change consists of two merges from projects/zfsd/head along with the addition of an ATF test case for the new functionality.
sbin/devd/tests/Makefile sbin/devd/tests/client_test.c Add ATF test cases for reading events from both devd socket types.
r266519: sbin/devd/devd.8 sbin/devd/devd.cc Create a new socket, of type SOCK_SEQPACKET, for communicating with clients. SOCK_SEQPACKET sockets preserve record boundaries, simplying code in the client. The old SOCK_STREAM socket is retained for backwards-compatibility with existing clients.
r269993: sbin/devd/devd.8 Fix grammar bug.
CR: https://reviews.freebsd.org/rS266519 MFC after: 5 days Sponsored by: Spectra Logic
|
263774 |
26-Mar-2014 |
dim |
Revert r263694, and apply a better fix to squelch unnecessary warnings from clang about possible keywords being treated as identifiers for the remainder of the translation unit (a.k.a. -Wkeyword-compat), when using libstdc++ in combination with -Wsystem-headers. This will not only fix devd, but any C++ program using libstdc++.
MFC after: 3 days X-MFC-With: r263694
|
263758 |
26-Mar-2014 |
mjg |
Update userspace users of hw.bus.devctl_disable.
This fixes breakage resulting from r263754.
Reported by: AN <andy@neu.net> Reviewed by: imp Pointy hat to: me
|
263694 |
24-Mar-2014 |
dim |
Apply a temporary band-aid for building devd with clang 3.4, libstdc++ and -Wsystem-headers enabled (which is the default for any non-zero WARNS level, crazily enough!). This is primarily meant to be MFC'd as soon as possible.
MFC after: 3 days
|
262914 |
07-Mar-2014 |
asomers |
sbin/devd/devd.8 sbin/devd/devd.cc Add a -q flag to devd that will suppress syslog logging at LOG_NOTICE or below.
Requested by: ian@ and imp@ MFC after: 3 weeks Sponsored by: Spectra Logic Corporation
|
259362 |
13-Dec-2013 |
asomers |
sbin/devd/devd.cc Promoting the SIGINFO handler's log message from LOG_INFO to LOG_NOTICE, and promoting the "Processing event ..." message from LOG_DEBUG to LOG_INFO. Setting the logfile to LOG_NOTICE with this change will have the same result as setting it to LOG_INFO without this change. Setting it to LOG_INFO with this change will include the useful "Processing event ..." messages that were previously at LOG_DEBUG, without including useless messages like "Pushing table".
The intent of this change is that one can log "Processing event ..." without logging "Pushing table" and related messages that are sent for every event. The number of lines actually logged is reduced by about 75% by making this change and setting syslog to LOG_INFO vs setting syslog to LOG_DEBUG.
etc/syslog.conf Changing the recommended loglevel to notice instead of info.
Sponsored by: Spectra Logic Corp MFC after: 4 weeks
|
259339 |
13-Dec-2013 |
asomers |
sbin/devd/devd.cc Increase the size of devd's client socket's send buffer from the default (8k) to 128k. This prevents clients from getting POLLHUPped during event storms. For example, during zpool creation, the kernel emits a resource.fs.zfs.statechange event for every vdev in the pool. A 128k buffer is large enough to hold the statechange events for a pool with nearly 800 drives.
Reviewed by: ian, imp Approved by: ken (mentor) Sponsored by: Spectra Logic Corp MFC after: 4 weeks
|
257799 |
07-Nov-2013 |
avg |
devd: lower priority of action execution logging to info
Reviewed by: asomers
|
257798 |
07-Nov-2013 |
avg |
devd: fix a typo in a comment
Reviewed by: asomers
|
253046 |
08-Jul-2013 |
asomers |
Correct the printf format specifier for total_events. Add __printflike argument checking for devdlog().
Reported by: pjd Approved by: gibbs (co-mentor)
|
252508 |
02-Jul-2013 |
asomers |
Explicitly include <cstdarg> to fix compilation with libc++. It is implicitly included by libstdc++.
Reported By: Oliver Hartmann Approved by: gibbs (co-mentor, implicit)
|
252485 |
01-Jul-2013 |
asomers |
style(9) fixes, including the removal of page break characters. No functional changes.
Approved by: gibbs (co-mentor)
|
252482 |
01-Jul-2013 |
asomers |
Add a SIGINFO handler to devd. It will send useful statistics to syslog or stderr as appropriate. Currently, the only statistic printed is the number of events received.
Reviewed by: eadler Approved by: gibbs (co-mentor)
|
252481 |
01-Jul-2013 |
asomers |
Add syslog(3) support to devd(8).
sbin/devd/devd.cc All output will now go to syslog(3) if devd is daemonized, or stderr if it's running in the foreground.
sbin/devd/devd.8 Remove the "-D" flag. Filtering messages by priority now happens in the usual syslog way. For performance reasons, a few extra-verbose debugging statements are now conditional on the "-d" (do not daemonize) flag.
etc/syslog.conf etc/newsyslog.conf Direct messages from devd(8) to /var/log/devd.log, but leave it disabled by default
Reviewed by: eadler Approved by: gibbs (co-mentor) MFC after: never (removed a command-line option from devd)
|
250227 |
04-May-2013 |
jkim |
Improve compatibility with recent flex from flex.sourceforge.net.
|
250186 |
02-May-2013 |
eadler |
Prefer using the C++ version of the standard headers. These place the names within the std namespace (and possibly within the global namespace).
The main advantage is that the C++ versions can provide optimized versions or simplified interfaces.
|
249951 |
26-Apr-2013 |
asomers |
According to devctl(4), clients must read events whole; they may not piece them together from multiple reads(). It's as if /dev/devctl is a datagram device instead of a stream device. However, devd's internal buffer was too small (1025 bytes) to read an entire ereport.fs.zfs.checksum event (variable, up to ~1300 bytes). This commit enlarges the buffer to 8k.
Reviewed by: imp Approved by: ken (mentor) MFC after: 2 weeks
|
247763 |
04-Mar-2013 |
eadler |
devd: Correct typo in comment.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
|
247762 |
04-Mar-2013 |
eadler |
devd: Use simpler dst += *x instead of str.append(x, 1).
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
|
247761 |
04-Mar-2013 |
eadler |
devd: Use string::empty() instea of string::length() == 0.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
|
247760 |
04-Mar-2013 |
eadler |
devd: Remove unnecessary empty default constructors.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
|
247759 |
04-Mar-2013 |
eadler |
devd: Remove empty virtual destructor from class, which has noch subclasses.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
|
247758 |
04-Mar-2013 |
eadler |
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)
|
247757 |
04-Mar-2013 |
eadler |
devd: Use the standard constructor of std::string instead of string("").
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
|
247756 |
04-Mar-2013 |
eadler |
devd: Simplify while (1) { if (x) break; } to while (!x) {}.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
|
247755 |
04-Mar-2013 |
eadler |
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)
|
247754 |
04-Mar-2013 |
eadler |
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)
|
247751 |
04-Mar-2013 |
eadler |
Constify where possible.
Approved by: cperciva (mentor)
|
247134 |
21-Feb-2013 |
pluknet |
Reflect CARP media-type departure.
X-MFC after: never
|
247129 |
21-Feb-2013 |
pluknet |
Separate items in the list of System values with .Pp to ease readability.
|
246361 |
05-Feb-2013 |
zeising |
Bump .Dd for the change in r246121.
Approved by: joel (mentor)
|
246134 |
30-Jan-2013 |
ian |
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)
|
246121 |
30-Jan-2013 |
ian |
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)
|
243932 |
06-Dec-2012 |
eadler |
Prefer the use of initalizer lists to ctor assignment.
Approved by: cperciva MFC after: 2 weeks
|
243931 |
06-Dec-2012 |
eadler |
Avoid the creation of a temporary object by using the prefix operator for non-primitive types.
Approved by: cperciva MFC after: 2 weeks
|
243930 |
06-Dec-2012 |
eadler |
Constify where possible
Approved by: cperciva MFC after: 2 weeks
|
243907 |
05-Dec-2012 |
dim |
Fix an old bug in devd, where it uses std::sort() to sort the various lists it reads from its configuration files on the priority field.
Because some items in the lists have the same priority, and std::sort() is not stable, the exact order in which the items are enumerated does not have to correspond to the order they appear in the configuration files.
Apparently this was never noticed with libstdc++, but with libc++ it could cause the "uhid" entry from /etc/devd/usb.conf to be used instead of the "ums" entry (which is earlier in the file). This caused the problem described in the PR: the USB mouse module was never loaded, and the other actions (such as starting moused) were not executed.
To fix the problem, make devd use std:stable_sort() instead.
Reported by: Jan Beich <jbeich@tormail.org> PR: bin/172958 MFC after: 2 weeks
|
241772 |
20-Oct-2012 |
avg |
document acpi_cpu devd notification about _CST change
Based on prodding and a submission by Lars Engels <lars.engels@0x20.net>.
MFC after: 5 days
|
240823 |
22-Sep-2012 |
pjd |
Use O_CLOEXEC for open instead of separate fcntl(2) call.
|
236388 |
01-Jun-2012 |
dim |
Make devd build with libc++.
MFC after: 3 days
|
235789 |
22-May-2012 |
bapt |
Fix world after byacc import: - old yacc(1) use to magicially append stdlib.h, while new one don't - new yacc(1) do declare yyparse by itself, fix redundant declaration of 'yyparse'
Approved by: des (mentor)
|
229702 |
06-Jan-2012 |
glebius |
Fix build.
|
228699 |
19-Dec-2011 |
maxim |
o Sort .Xrs.
|
228618 |
17-Dec-2011 |
dim |
In sbin/devd/devd.h, 'event_proc' and 'eps' are declared as structs. In devd.hh, there are redeclared as classes. Fix the inconsistency.
MFC after: 1 week
|
228566 |
16-Dec-2011 |
glebius |
Xref re_format(7) in devd.conf(5), not in devd(8).
Pointy hat to: glebius
|
228565 |
16-Dec-2011 |
glebius |
Xref re_format(7).
|
226775 |
26-Oct-2011 |
hrs |
- Add support for a "!" character in regex matching in devd(8). It inverts the logic (true/false) of the matching.
- Add "!usbus[0-9]+" to IFNET ATTACH notification handler in the default devd.conf to prevent rc.d/netif from running when usbus[0-9]+ is attached.
Reviewed by: imp
|
221719 |
10-May-2011 |
bms |
Typo. For USB devices, 'serial' should be 'sernum'. See sys/dev/usb/usb_device.c for what devctl_notify() gets.
|
215674 |
22-Nov-2010 |
brucec |
Don't generate input() since it's not used.
|
215607 |
21-Nov-2010 |
kevlo |
Fix missing closedir()
Reviewed by: imp
|
213646 |
09-Oct-2010 |
imp |
Allow the kernel to generate more spacy things and still have devd cope. Skip multiple spaces in a few contexts.
PR: 96854 Submitted by: Shin'ya Kumabuchi MFC after: 1 week
|
213573 |
08-Oct-2010 |
uqs |
mdoc: drop redundant .Pp and .LP calls
They have no effect when coming in pairs, or before .Bl/.Bd
|
211397 |
16-Aug-2010 |
joel |
Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
|
210610 |
29-Jul-2010 |
lulf |
- Avoid calling the copy constructor when it is not necessary.
|
210609 |
29-Jul-2010 |
lulf |
- Remove unused instance of string.
|
209583 |
29-Jun-2010 |
imp |
Expand system into my_system, and add the necessary tidyness that we need. Close the pidfile. Then close all descriptors >= 3 to avoid information leakage to children.
This solves the problem of not being able to restart devd when you have, for example, a dhclient forked to configure your network...
MFC after: 3 days
|
207072 |
22-Apr-2010 |
thompsa |
Document the new USB notification types.
|
203916 |
15-Feb-2010 |
uqs |
Bump WARNS where possible.
Checked by: make universe Approved by: ed (co-mentor)
|
189538 |
08-Mar-2009 |
maxim |
o Spell. Sort .Xrs.
|
189534 |
08-Mar-2009 |
kib |
Document several notifications, among them are DEVFS, update to ifneti, coretemp and kern.
The asmc(4) and zfs(5) are still not documented.
Based on the patch by Roland Smith <rsmith xs4all nl>. MFC after: 1 week
|
186078 |
14-Dec-2008 |
phk |
Send all debug to stderr.
|
186077 |
14-Dec-2008 |
phk |
Clarify that configuration files must be named '*.conf'
|
177483 |
21-Mar-2008 |
imp |
No need to be gratuitously style(9) non-compliant here, even though C++ lets me get away with it.
|
174824 |
21-Dec-2007 |
imp |
Minor initialization change to not trigger bogus gcc warning about passing literal strings to the constructors of string.
|
173739 |
19-Nov-2007 |
jb |
Reduce the WARNS level across the board due to a warning that occurs on at least arm and sparc64. i386/pc98, ia64 and amd64 are all OK.
|
163667 |
24-Oct-2006 |
ru |
Fix the description of "media-type".
|
163581 |
21-Oct-2006 |
ru |
Revise the markup, sort sections, fix some grammar bugs. Not fixed: the description of media-type is completely bogus.
|
163106 |
07-Oct-2006 |
jmg |
flesh out the devd.conf man page... Mostly from the PR, but did a couple gramatical tweaks along w/ sorting the list, and adding that serial is available for USB....
PR: 85097 Submitted by: Fredrik Lindberg MFC after: 1 week
|
162388 |
17-Sep-2006 |
ru |
Add -f option to program's usage(), fix manpage's SYNOPSIS.
|
157746 |
14-Apr-2006 |
maxim |
o Yacc's lineno variable holds a total number of parsed lines. Reset it to 1 for each devd config file so if the parser finds a syntax error devd(8) will report a correct line number.
Submitted by: Niki Denev MFC after: 2 weeks
|
155073 |
30-Jan-2006 |
pjd |
Use pidfile(3).
OK'ed by: imp
|
154109 |
08-Jan-2006 |
imp |
It was always intended that regular expression matching be case insensitive. Make it so.
|
153522 |
19-Dec-2005 |
jkoshy |
Rev 1.15 should have incremented the date on this manual page.
|
152770 |
24-Nov-2005 |
jkoshy |
Add a -f configfile option to devd(8), based on a patch submitted by Wojciech A. Koszek.
Submitted by: Wojciech A. Koszek <dunstan@freebsd.czest.pl>
|
152406 |
14-Nov-2005 |
bland |
Reuse delete_and_clear() template helper.
Approved by: imp
|
151486 |
19-Oct-2005 |
brooks |
Make devd WARNS=4 clean and bump WARNS accordingly. This will insure that future variable shadowing bugs don't compile.
Reviewed by: imp Compiled on: alpha i386 sparc64
|
151480 |
19-Oct-2005 |
imp |
As pointed out on current@, we don't want to declare a variable in a scope that just uses the variable and throws it away.
This should fix the subsystem keyword wrt media-type.
MFC After: 2 days
|
150949 |
04-Oct-2005 |
imp |
media-type predicate is used in contexts where device-name is undefined. In those contexted, use subsystem instead.
# This causes dhclient to run again when I plug in my ethernet cable to # my fxp card in my laptop.
|
147973 |
13-Jul-2005 |
marcus |
* Open permissions on /var/run/devd.pipe so that any user can read devd events from this socket * Enable non-blocking I/O on devd.pipe to keep clients from wedging devd. If a write(2) on devd.pipe would block, the client in question will be removed [1]
Requested by: rwatson [1] Approved by: imp
|
147972 |
13-Jul-2005 |
marcus |
Replace fch{mod,own} with straight ch{mod,own} as the former cannot be used on socket file descriptors.
Reviewed by: secteam (cperciva) Approved by: imp
|
147874 |
10-Jul-2005 |
imp |
Add the ability to match the on a media type of the device in question.
Submitted by: sam Approved by: re (scottl)
|
146306 |
16-May-2005 |
imp |
Ignore sigpipe so we can properly detach clients to the pipe.
Submitted by: Fredrik Lindberg
|
145218 |
18-Apr-2005 |
imp |
Fix parsing of nomatch events. minor debug fix.
|
141611 |
10-Feb-2005 |
ru |
Sync program's usage() with manpage's SYNOPSIS.
|
139987 |
10-Jan-2005 |
ru |
Scheduled mdoc(7) sweep.
|
139112 |
21-Dec-2004 |
ru |
NOSHARED -> NO_SHARED
|
138162 |
28-Nov-2004 |
ceri |
Clarify that devd will only parse files whose names end in .conf. Prompted by
PR: docs/73668 Submitted by: Dan Pelleg MFC After: 3 days
|
131754 |
07-Jul-2004 |
ru |
mdoc(7) fixes.
|
131397 |
01-Jul-2004 |
imp |
Create a unix domain socket and write to it all the events that come in over the socket.
|
121487 |
24-Oct-2003 |
imp |
Parse the ! lines that will soon be coming from the kernel. These are a generalized notification mechanism for subsystems wishing to report events.
Revieded by: njl
# The kernel side seems like it might be causing panics for me, but should # be forthcoming shortly.
|
120474 |
26-Sep-2003 |
rse |
fix typo: s/Instaed/Instead/
|
119019 |
17-Aug-2003 |
gordon |
At imp's request, force devd to be statically compiled. This avoids the need for libstdc++ in /lib, and the generated binary is actually smaller statically linked than dynamically + sizeof(libstdc++). Additionally, devd doesn't use get*by*() which is one of the main motivations for dynamically linking your root partition anyway.
|
117945 |
23-Jul-2003 |
imp |
Simplistic C comment re is wrong, use more correct one
|
117944 |
23-Jul-2003 |
imp |
Remove old workaround
|
117246 |
05-Jul-2003 |
imp |
Drop the pid file after we call the final daemon call. w/o -n would give the wrong pid.
Submitted by: ru and Lukas Ertl PR: 54113
|
115114 |
17-May-2003 |
ru |
mdoc(7) fixes: Expand contraction.
|
115011 |
15-May-2003 |
imp |
Allow zero or more actions in an action list, rather than requiring one or more actions in the list. This makes constructs like:
attach 10 { // echo "Driver $device_name attached" };
to be accepted by the parser. It will be treated as if the user had entered:
// attach 10 { // echo "Driver $device_name attached" // };
(eg totally ignored).
Approved by: re@ (rwatson)
|
114541 |
02-May-2003 |
imp |
sysctlbyname takes a size_t as its 5th argument, not a pointer. However, since NULL was used, and this is C++, this error went undetected until g++ 3.3 somehow managed to whine about it.
Reported by: obrien
|
114086 |
26-Apr-2003 |
imp |
Create a new C++ header file called devd.hh which has all the class definitions in it. Begin to document the classes that we use, and how they interrelate (using comments that I can use with doxygen to automatically generate docs with).
|
114084 |
26-Apr-2003 |
imp |
Update to use is_id_char() in the last patch. I should have done this before the last commit.
|
114081 |
26-Apr-2003 |
imp |
Make better use of the string type when parsing things. This switches expand one from using a fixed buffer to using a string which dynamically allocates these things.
Submitted by: green@ (against an earlier version of devd) Ignored for too long by: imp
|
114000 |
25-Apr-2003 |
imp |
Change default to be 'process all events before calling daemon.'
Also, put a small work around into devd to prevent a hang on boot this would cause because select used to return 2 rather than 0 for no evetnts due to a bug I fixed a few days ago in subr_bus.c. I'll remove this workaround May 7th. You have until then to upgrade your kernel if you want to run a new devd with an older kernel.
|
113805 |
21-Apr-2003 |
imp |
Kill debug printf that crept in my last commit
|
113790 |
21-Apr-2003 |
imp |
Implement a two new flags, and change the meaning of another one. 'd': now means don't do daemon(). 'D': Debug 'n': Don't wait to process all pending events before calling daemon.
In the past, devd would call daemon immediately. However, this causes a race. If anything in the boot process depends on configuring the devices configured by devd, maybe they would be configured in time, maybe not. Now we don't call daemon until all pending events are processed, unless -n is specified.
# -n is actually the default for a while due to the select(2) bug in devctl # that I just fixed to give people a chance to upgrade.
|
113787 |
21-Apr-2003 |
imp |
Put an anti-foot-shooting measure in place. Set hw.bus.devctl_disable to 0 when we startup. Print a warning in this case. This allows people that are playing with devd by hand to have something happen. Otherwise, it appears that devd isn't working because /dev/devctl is disabled and producing no events.
Suggested by: peter on irc a long time ago.
|
113785 |
21-Apr-2003 |
imp |
o Skip white space between variables better. This makes 'a="b" c="d" at loc=1 on busN' properly set 'c' and process the rest of the stirng. Before it would ignore everything after variable 'a'. o Parse nomatch and other events differently. They are more different than the code allowed for, so we weren't properly parsing nomatch events. It appears this fixes some of the demand loading issues that I was having with devd.
Noticed by: Gary Palmer
|
113782 |
21-Apr-2003 |
imp |
devd.conf already has the examples in the todo list
|
112935 |
01-Apr-2003 |
ru |
This can't obviously be cleaner than system headers.
|
111813 |
03-Mar-2003 |
ru |
mdoc(7) police: Revision.
|
110881 |
14-Feb-2003 |
imp |
The bugs section hasn't been true since before 5.0-R
|
110877 |
14-Feb-2003 |
imp |
devd bugs section is now OBE
|
108985 |
09-Jan-2003 |
imp |
These are OBE. devd.conf now lives in /etc.
|
108799 |
06-Jan-2003 |
imp |
Terminate the usage message with \n.
Submitted by: joe
|
108783 |
06-Jan-2003 |
imp |
MFp4: make it work
o Expand variables correctly. o Set variables for each event. o rewrite event loop to execute the commands in the config file, rather than the hard wired generic command o better(?) debug when running -d o sort vectors of actions so that we just have to search for the first one to match rather than the best one that matches. o better attempts to clear all resources used on 'restart' o Remove now bogus comments
MFC After: 1 centiyear
|
108781 |
06-Jan-2003 |
imp |
devd not devdd
submitted by: joe
|
108317 |
27-Dec-2002 |
schweikh |
english(4) police.
|
108014 |
18-Dec-2002 |
imp |
Latest snapshot of devd. This one adds re-matching and string expansion.
|
107665 |
07-Dec-2002 |
imp |
MFp4 (imp_freebsd branch): snapshot of devd work: o improve parsing and lexing o create data structures based on the parsed file now. o Still need to rewrite main loop and add regex (still uses hard coded devd-generic) o minor man page updates.
# There should be one more commit before rc2
Approved by: re (blanket)
|
107066 |
18-Nov-2002 |
jhb |
Fixup FILES section to use proper width and to use a cross-reference to devd(8).
|
107065 |
18-Nov-2002 |
jhb |
Remove leading ^ from example of match line in vendor-supplied rules since the ^ is implicit at the beginning of the expressions.
|
107045 |
18-Nov-2002 |
imp |
Add BUGS section and note departure of actual implementation from what is documented so the pioneers will know why it works the way it does.
|
106906 |
14-Nov-2002 |
tjr |
Install devd.conf(5).
|
106875 |
13-Nov-2002 |
jhb |
Try to reword things a bit more to make it clearer.
Reviewed by: imp
|
106869 |
13-Nov-2002 |
jhb |
- Fix some minor grammar and spelling nits. - Massage the wording in a few places. - Put .Nm on lines by itself so it renders correctly.
Reviewed by: imp
|
105573 |
20-Oct-2002 |
imp |
devd. A daemon that hooks into the kernel's /dev/devctl to produce arbitrary commands when devices come and go in the device tree (which is different than the /dev directory).
This is an initial version. Much of the planned power isn't here. Instead of doing the full matching, we always run /etc/devd-generic. /etc/devd.generic will go away at some point, I think.
I'm committing it in this early state so I can start getting feedback from early adapters.
Approved by: re
|