2013-10-25 05:25:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Please see the file src/etc/mtree/README before making changes to this file.
|
|
|
|
#
|
|
|
|
|
|
|
|
/set type=dir uname=root gname=wheel mode=0755
|
|
|
|
.
|
2014-12-18 18:16:00 +00:00
|
|
|
bin
|
2015-01-04 22:37:44 +00:00
|
|
|
cat
|
|
|
|
..
|
2017-06-07 05:33:56 +00:00
|
|
|
chmod
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
date
|
2013-10-25 05:25:19 +00:00
|
|
|
..
|
2015-10-18 05:49:58 +00:00
|
|
|
dd
|
|
|
|
..
|
2017-06-06 16:04:27 +00:00
|
|
|
echo
|
|
|
|
..
|
2015-01-19 06:13:07 +00:00
|
|
|
expr
|
|
|
|
..
|
2015-09-28 03:36:15 +00:00
|
|
|
ls
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
mv
|
2013-11-16 19:42:40 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
pax
|
2013-11-08 14:33:41 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
pkill
|
|
|
|
..
|
2017-03-08 05:27:04 +00:00
|
|
|
pwait
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
sh
|
|
|
|
builtins
|
2014-06-30 05:33:52 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
errors
|
2013-12-11 04:09:17 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
execution
|
2013-12-11 04:09:17 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
expansion
|
2013-12-11 04:09:17 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
parameters
|
2014-03-19 12:46:04 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
parser
|
2013-12-11 04:09:17 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
set-e
|
2013-12-11 04:09:17 +00:00
|
|
|
..
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
sleep
|
|
|
|
..
|
|
|
|
test
|
|
|
|
..
|
|
|
|
..
|
|
|
|
cddl
|
|
|
|
lib
|
2014-04-21 21:39:25 +00:00
|
|
|
..
|
2016-05-29 01:38:12 +00:00
|
|
|
sbin
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
usr.bin
|
2014-04-21 21:39:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
usr.sbin
|
2015-02-28 23:30:06 +00:00
|
|
|
dtrace
|
|
|
|
common
|
|
|
|
aggs
|
|
|
|
..
|
|
|
|
arithmetic
|
|
|
|
..
|
|
|
|
arrays
|
|
|
|
..
|
|
|
|
assocs
|
|
|
|
..
|
|
|
|
begin
|
|
|
|
..
|
|
|
|
bitfields
|
|
|
|
..
|
|
|
|
buffering
|
|
|
|
..
|
|
|
|
builtinvar
|
|
|
|
..
|
|
|
|
cg
|
|
|
|
..
|
|
|
|
clauses
|
|
|
|
..
|
|
|
|
cpc
|
|
|
|
..
|
|
|
|
decls
|
|
|
|
..
|
|
|
|
drops
|
|
|
|
..
|
|
|
|
dtraceUtil
|
|
|
|
..
|
|
|
|
end
|
|
|
|
..
|
|
|
|
enum
|
|
|
|
..
|
|
|
|
error
|
|
|
|
..
|
|
|
|
exit
|
|
|
|
..
|
|
|
|
fbtprovider
|
|
|
|
..
|
|
|
|
funcs
|
|
|
|
..
|
|
|
|
grammar
|
|
|
|
..
|
|
|
|
include
|
|
|
|
..
|
|
|
|
inline
|
|
|
|
..
|
|
|
|
io
|
|
|
|
..
|
|
|
|
ip
|
|
|
|
..
|
|
|
|
java_api
|
|
|
|
..
|
|
|
|
json
|
|
|
|
..
|
|
|
|
lexer
|
|
|
|
..
|
|
|
|
llquantize
|
|
|
|
..
|
|
|
|
mdb
|
|
|
|
..
|
|
|
|
mib
|
|
|
|
..
|
|
|
|
misc
|
|
|
|
..
|
|
|
|
multiaggs
|
|
|
|
..
|
|
|
|
offsetof
|
|
|
|
..
|
|
|
|
operators
|
|
|
|
..
|
|
|
|
pid
|
|
|
|
..
|
|
|
|
plockstat
|
|
|
|
..
|
|
|
|
pointers
|
|
|
|
..
|
|
|
|
pragma
|
|
|
|
..
|
|
|
|
predicates
|
|
|
|
..
|
|
|
|
preprocessor
|
|
|
|
..
|
|
|
|
print
|
|
|
|
..
|
|
|
|
printa
|
|
|
|
..
|
|
|
|
printf
|
|
|
|
..
|
|
|
|
privs
|
|
|
|
..
|
|
|
|
probes
|
|
|
|
..
|
|
|
|
proc
|
|
|
|
..
|
|
|
|
profile-n
|
|
|
|
..
|
|
|
|
providers
|
|
|
|
..
|
|
|
|
raise
|
|
|
|
..
|
|
|
|
rates
|
|
|
|
..
|
|
|
|
safety
|
|
|
|
..
|
|
|
|
scalars
|
|
|
|
..
|
|
|
|
sched
|
|
|
|
..
|
|
|
|
scripting
|
|
|
|
..
|
|
|
|
sdt
|
|
|
|
..
|
|
|
|
sizeof
|
|
|
|
..
|
|
|
|
speculation
|
|
|
|
..
|
|
|
|
stability
|
|
|
|
..
|
|
|
|
stack
|
|
|
|
..
|
|
|
|
stackdepth
|
|
|
|
..
|
|
|
|
stop
|
|
|
|
..
|
|
|
|
strlen
|
|
|
|
..
|
|
|
|
strtoll
|
|
|
|
..
|
|
|
|
struct
|
|
|
|
..
|
2016-08-16 02:34:25 +00:00
|
|
|
sugar
|
|
|
|
..
|
2015-02-28 23:30:06 +00:00
|
|
|
syscall
|
|
|
|
..
|
|
|
|
sysevent
|
|
|
|
..
|
|
|
|
tick-n
|
|
|
|
..
|
|
|
|
trace
|
|
|
|
..
|
|
|
|
tracemem
|
|
|
|
..
|
|
|
|
translators
|
|
|
|
..
|
|
|
|
typedef
|
|
|
|
..
|
|
|
|
types
|
|
|
|
..
|
|
|
|
uctf
|
|
|
|
..
|
|
|
|
union
|
|
|
|
..
|
|
|
|
usdt
|
|
|
|
..
|
|
|
|
ustack
|
|
|
|
..
|
|
|
|
vars
|
|
|
|
..
|
|
|
|
version
|
|
|
|
..
|
|
|
|
..
|
|
|
|
..
|
zfsd(8), the ZFS fault management daemon
Add zfsd, which deals with hard drive faults in ZFS pools. It manages
hotspares and replements in drive slots that publish physical paths.
cddl/usr.sbin/zfsd
Add zfsd(8) and its unit tests
cddl/usr.sbin/Makefile
Add zfsd to the build
lib/libdevdctl
A C++ library that helps devd clients process events
lib/Makefile
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk
Add libdevdctl to the build. It's a private library, unusable by
out-of-tree software.
etc/defaults/rc.conf
By default, set zfsd_enable to NO
etc/mtree/BSD.include.dist
Add a directory for libdevdctl's include files
etc/mtree/BSD.tests.dist
Add a directory for zfsd's unit tests
etc/mtree/BSD.var.dist
Add /var/db/zfsd/cases, where zfsd stores case files while it's shut
down.
etc/rc.d/Makefile
etc/rc.d/zfsd
Add zfsd's rc script
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
Fix the resource.fs.zfs.statechange message. It had a number of
problems:
It was only being emitted on a transition to the HEALTHY state.
That made it impossible for zfsd to take actions based on drives
getting sicker.
It compared the new state to vdev_prevstate, which is the state that
the vdev had the last time it was opened. That doesn't make sense,
because a vdev can change state multiple times without being
reopened.
vdev_set_state contains logic that will change the device's new
state based on various conditions. However, the statechange event
was being posted _before_ that logic took effect. Now it's being
posted after.
Submitted by: gibbs, asomers, mav, allanjude
Reviewed by: mav, delphij
Relnotes: yes
Sponsored by: Spectra Logic Corp, iX Systems
Differential Revision: https://reviews.freebsd.org/D6564
2016-05-28 17:43:40 +00:00
|
|
|
zfsd
|
|
|
|
..
|
2014-04-21 21:39:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
etc
|
2015-01-24 17:11:11 +00:00
|
|
|
rc.d
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
games
|
|
|
|
..
|
|
|
|
gnu
|
2013-11-16 19:42:40 +00:00
|
|
|
lib
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
usr.bin
|
|
|
|
diff
|
2013-11-16 19:42:40 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
..
|
|
|
|
lib
|
|
|
|
atf
|
|
|
|
libatf-c
|
|
|
|
detail
|
2014-11-04 00:56:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
libatf-c++
|
|
|
|
detail
|
2014-11-04 00:56:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
test-programs
|
|
|
|
..
|
|
|
|
..
|
2015-10-12 18:31:21 +00:00
|
|
|
libarchive
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
libc
|
|
|
|
c063
|
|
|
|
..
|
|
|
|
db
|
|
|
|
..
|
|
|
|
gen
|
|
|
|
execve
|
2014-11-04 00:56:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
posix_spawn
|
2014-11-04 00:56:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
hash
|
|
|
|
data
|
2014-11-04 00:56:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
2016-05-14 00:35:35 +00:00
|
|
|
iconv
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
inet
|
|
|
|
..
|
|
|
|
locale
|
|
|
|
..
|
|
|
|
net
|
|
|
|
getaddrinfo
|
2014-11-04 00:56:25 +00:00
|
|
|
data
|
|
|
|
..
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
2015-12-16 08:09:03 +00:00
|
|
|
nss
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
regex
|
|
|
|
data
|
2014-11-04 00:56:25 +00:00
|
|
|
..
|
|
|
|
..
|
2015-12-16 05:11:57 +00:00
|
|
|
resolv
|
|
|
|
..
|
2015-10-30 03:28:00 +00:00
|
|
|
rpc
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
ssp
|
2013-11-16 19:42:40 +00:00
|
|
|
..
|
2016-03-09 22:45:04 +00:00
|
|
|
setjmp
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
stdio
|
2014-08-04 22:10:07 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
stdlib
|
2014-08-05 18:41:27 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
string
|
2014-11-05 22:50:33 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
sys
|
2014-09-22 09:54:48 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
time
|
2014-11-16 07:03:19 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
tls
|
|
|
|
dso
|
2014-11-16 06:35:20 +00:00
|
|
|
..
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
termios
|
2014-08-13 05:15:28 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
ttyio
|
2014-11-17 09:19:09 +00:00
|
|
|
..
|
2013-11-16 19:42:40 +00:00
|
|
|
..
|
2017-03-15 18:00:54 +00:00
|
|
|
libcam
|
|
|
|
..
|
2016-09-08 21:59:34 +00:00
|
|
|
libcasper
|
|
|
|
services
|
|
|
|
cap_dns
|
|
|
|
..
|
|
|
|
cap_grp
|
|
|
|
..
|
|
|
|
cap_pwd
|
|
|
|
..
|
|
|
|
cap_sysctl
|
|
|
|
..
|
|
|
|
..
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
libcrypt
|
|
|
|
..
|
zfsd(8), the ZFS fault management daemon
Add zfsd, which deals with hard drive faults in ZFS pools. It manages
hotspares and replements in drive slots that publish physical paths.
cddl/usr.sbin/zfsd
Add zfsd(8) and its unit tests
cddl/usr.sbin/Makefile
Add zfsd to the build
lib/libdevdctl
A C++ library that helps devd clients process events
lib/Makefile
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk
Add libdevdctl to the build. It's a private library, unusable by
out-of-tree software.
etc/defaults/rc.conf
By default, set zfsd_enable to NO
etc/mtree/BSD.include.dist
Add a directory for libdevdctl's include files
etc/mtree/BSD.tests.dist
Add a directory for zfsd's unit tests
etc/mtree/BSD.var.dist
Add /var/db/zfsd/cases, where zfsd stores case files while it's shut
down.
etc/rc.d/Makefile
etc/rc.d/zfsd
Add zfsd's rc script
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
Fix the resource.fs.zfs.statechange message. It had a number of
problems:
It was only being emitted on a transition to the HEALTHY state.
That made it impossible for zfsd to take actions based on drives
getting sicker.
It compared the new state to vdev_prevstate, which is the state that
the vdev had the last time it was opened. That doesn't make sense,
because a vdev can change state multiple times without being
reopened.
vdev_set_state contains logic that will change the device's new
state based on various conditions. However, the statechange event
was being posted _before_ that logic took effect. Now it's being
posted after.
Submitted by: gibbs, asomers, mav, allanjude
Reviewed by: mav, delphij
Relnotes: yes
Sponsored by: Spectra Logic Corp, iX Systems
Differential Revision: https://reviews.freebsd.org/D6564
2016-05-28 17:43:40 +00:00
|
|
|
libdevdctl
|
|
|
|
..
|
2017-03-28 17:37:49 +00:00
|
|
|
libkvm
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
libmp
|
|
|
|
..
|
|
|
|
libnv
|
|
|
|
..
|
|
|
|
libproc
|
|
|
|
..
|
|
|
|
librt
|
|
|
|
..
|
2017-04-06 05:29:28 +00:00
|
|
|
libsbuf
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
libthr
|
|
|
|
dlopen
|
|
|
|
..
|
|
|
|
..
|
|
|
|
libutil
|
|
|
|
..
|
2015-10-06 16:58:47 +00:00
|
|
|
libxo
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
msun
|
|
|
|
..
|
|
|
|
..
|
|
|
|
libexec
|
|
|
|
atf
|
|
|
|
atf-check
|
|
|
|
..
|
|
|
|
atf-sh
|
|
|
|
..
|
|
|
|
..
|
|
|
|
rtld-elf
|
|
|
|
..
|
|
|
|
..
|
|
|
|
sbin
|
|
|
|
dhclient
|
|
|
|
..
|
|
|
|
devd
|
|
|
|
..
|
|
|
|
growfs
|
|
|
|
..
|
2015-01-04 22:25:16 +00:00
|
|
|
ifconfig
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
mdconfig
|
|
|
|
..
|
|
|
|
..
|
|
|
|
secure
|
|
|
|
lib
|
|
|
|
..
|
2013-11-16 19:42:40 +00:00
|
|
|
libexec
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
usr.bin
|
|
|
|
..
|
|
|
|
usr.sbin
|
|
|
|
..
|
|
|
|
..
|
|
|
|
share
|
|
|
|
examples
|
|
|
|
tests
|
|
|
|
atf
|
2013-11-16 19:42:40 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
plain
|
2014-06-06 18:58:06 +00:00
|
|
|
..
|
2014-06-24 21:12:08 +00:00
|
|
|
..
|
2013-11-16 19:42:40 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
sys
|
2015-10-17 08:39:37 +00:00
|
|
|
acl
|
|
|
|
..
|
2015-04-27 08:51:40 +00:00
|
|
|
aio
|
|
|
|
..
|
2015-04-27 08:15:17 +00:00
|
|
|
fifo
|
|
|
|
..
|
|
|
|
file
|
|
|
|
..
|
2016-10-21 05:24:08 +00:00
|
|
|
fs
|
|
|
|
tmpfs
|
|
|
|
..
|
|
|
|
..
|
Integrate
tools/regression/geom_{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip}
in to the FreeBSD test suite as
tests/sys/geom/class/{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip}
The tools/regression/geom and tools/regression/geom_part testcases are being
left alone because both test sets are both currently broken.
The majority of this work was done on ^/user/ngie/more-tests2 . The differences
are as follows:
- tests/sys/geom/class/Makefile.inc is not present; it was
inlined into the class's Makefiles for explicitness.
- The testcases officially require root via kyua
- The geom_gate(4) tests don't use the pidfile changes proposed in
https://reviews.freebsd.org/D4836 .
MFC after: 1 month
Sponsored by: EMC / Isilon Storage Division
2016-01-13 09:14:27 +00:00
|
|
|
geom
|
|
|
|
class
|
|
|
|
concat
|
|
|
|
..
|
|
|
|
eli
|
|
|
|
..
|
|
|
|
gate
|
|
|
|
..
|
|
|
|
gpt
|
|
|
|
..
|
|
|
|
mirror
|
|
|
|
..
|
|
|
|
nop
|
|
|
|
..
|
|
|
|
raid3
|
|
|
|
..
|
|
|
|
shsec
|
|
|
|
..
|
|
|
|
stripe
|
|
|
|
..
|
|
|
|
uzip
|
|
|
|
etalon
|
|
|
|
..
|
|
|
|
..
|
|
|
|
..
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
kern
|
2015-11-16 03:32:12 +00:00
|
|
|
acct
|
|
|
|
..
|
2015-04-27 07:22:18 +00:00
|
|
|
execve
|
|
|
|
..
|
2015-11-16 05:38:40 +00:00
|
|
|
pipe
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
2015-04-27 07:37:48 +00:00
|
|
|
kqueue
|
2016-09-06 08:45:29 +00:00
|
|
|
libkqueue
|
|
|
|
..
|
2015-04-27 07:37:48 +00:00
|
|
|
..
|
2015-12-21 21:24:03 +00:00
|
|
|
mac
|
|
|
|
bsdextended
|
|
|
|
..
|
|
|
|
portacl
|
|
|
|
..
|
|
|
|
..
|
2015-04-27 08:31:43 +00:00
|
|
|
mqueue
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
netinet
|
|
|
|
..
|
|
|
|
opencrypto
|
|
|
|
..
|
|
|
|
pjdfstest
|
|
|
|
chflags
|
|
|
|
..
|
|
|
|
chmod
|
2014-03-16 02:07:08 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
chown
|
2014-08-14 22:33:56 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
ftruncate
|
2014-03-16 02:07:08 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
granular
|
2014-03-16 02:07:08 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
link
|
2014-04-21 21:39:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
mkdir
|
2014-04-21 21:39:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
mkfifo
|
2014-04-21 21:39:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
mknod
|
2014-04-21 21:39:25 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
open
|
2013-11-18 12:57:46 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
rename
|
2014-01-23 17:26:28 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
rmdir
|
2014-03-20 20:39:41 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
symlink
|
2014-12-12 19:56:36 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
truncate
|
|
|
|
..
|
|
|
|
unlink
|
|
|
|
..
|
|
|
|
..
|
2015-10-17 04:32:21 +00:00
|
|
|
posixshm
|
|
|
|
..
|
Improve performance and functionality of the bitstring(3) api
Two new functions are provided, bit_ffs_at() and bit_ffc_at(), which allow
for efficient searching of set or cleared bits starting from any bit offset
within the bit string.
Performance is improved by operating on longs instead of bytes and using
ffsl() for searches within a long. ffsl() is a compiler builtin in both
clang and gcc for most architectures, converting what was a brute force
while loop search into a couple of instructions.
All of the bitstring(3) API continues to be contained in the header file.
Some of the functions are large enough that perhaps they should be uninlined
and moved to a library, but that is beyond the scope of this commit.
sys/sys/bitstring.h:
Convert the majority of the existing bit string implementation from
macros to inline functions.
Properly protect the implementation from inadvertant macro expansion
when included in a user's program by prefixing all private
macros/functions and local variables with '_'.
Add bit_ffs_at() and bit_ffc_at(). Implement bit_ffs() and
bit_ffc() in terms of their "at" counterparts.
Provide a kernel implementation of bit_alloc(), making the full API
usable in the kernel.
Improve code documenation.
share/man/man3/bitstring.3:
Add pre-exisiting API bit_ffc() to the synopsis.
Document new APIs.
Document the initialization state of the bit strings
allocated/declared by bit_alloc() and bit_decl().
Correct documentation for bitstr_size(). The original code comments
indicate the size is in bytes, not "elements of bitstr_t". The new
implementation follows this lead. Only hastd assumed "elements"
rather than bytes and it has been corrected.
etc/mtree/BSD.tests.dist:
tests/sys/Makefile:
tests/sys/sys/Makefile:
tests/sys/sys/bitstring.c:
Add tests for all existing and new functionality.
include/bitstring.h
Include all headers needed by sys/bitstring.h
lib/libbluetooth/bluetooth.h:
usr.sbin/bluetooth/hccontrol/le.c:
Include bitstring.h instead of sys/bitstring.h.
sbin/hastd/activemap.c:
Correct usage of bitstr_size().
sys/dev/xen/blkback/blkback.c
Use new bit_alloc.
sys/kern/subr_unit.c:
Remove hard-coded assumption that sizeof(bitstr_t) is 1. Get rid of
unrb.busy, which caches the number of bits set in unrb.map. When
INVARIANTS are disabled, nothing needs to know that information.
callapse_unr can be adapted to use bit_ffs and bit_ffc instead.
Eliminating unrb.busy saves memory, simplifies the code, and
provides a slight speedup when INVARIANTS are disabled.
sys/net/flowtable.c:
Use the new kernel implementation of bit-alloc, instead of hacking
the old libc-dependent macro.
sys/sys/param.h
Update __FreeBSD_version to indicate availability of new API
Submitted by: gibbs, asomers
Reviewed by: gibbs, ngie
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D6004
2016-05-04 22:34:11 +00:00
|
|
|
sys
|
|
|
|
..
|
2015-10-14 08:16:15 +00:00
|
|
|
vfs
|
|
|
|
..
|
2015-04-27 17:53:09 +00:00
|
|
|
vm
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
usr.bin
|
|
|
|
apply
|
|
|
|
..
|
|
|
|
basename
|
|
|
|
..
|
|
|
|
bmake
|
|
|
|
archives
|
|
|
|
fmt_44bsd
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
fmt_44bsd_mod
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
fmt_oldbsd
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
basic
|
|
|
|
t0
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
t1
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
t2
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
t3
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
execution
|
|
|
|
ellipsis
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
empty
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
joberr
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
plus
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
shell
|
|
|
|
builtin
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
meta
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
path
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
path_select
|
2014-11-03 07:18:42 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
replace
|
|
|
|
..
|
|
|
|
select
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
suffixes
|
2014-03-19 12:29:20 +00:00
|
|
|
basic
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
src_wild1
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
src_wild2
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
syntax
|
|
|
|
directive-t0
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
enl
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
funny-targets
|
|
|
|
..
|
|
|
|
semi
|
|
|
|
..
|
|
|
|
..
|
|
|
|
sysmk
|
|
|
|
t0
|
|
|
|
2
|
|
|
|
1
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
mk
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
t1
|
|
|
|
2
|
|
|
|
1
|
|
|
|
..
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
mk
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
|
|
|
t2
|
|
|
|
2
|
|
|
|
1
|
|
|
|
..
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
mk
|
2014-03-19 12:29:20 +00:00
|
|
|
..
|
|
|
|
..
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
variables
|
|
|
|
modifier_M
|
2014-03-19 12:06:51 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
modifier_t
|
|
|
|
..
|
|
|
|
opt_V
|
|
|
|
..
|
|
|
|
t0
|
2014-07-17 22:26:24 +00:00
|
|
|
..
|
2014-03-16 08:04:06 +00:00
|
|
|
..
|
2017-01-05 15:07:04 +00:00
|
|
|
..
|
2017-01-05 02:47:56 +00:00
|
|
|
bsdcat
|
2014-03-16 04:09:22 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
calendar
|
|
|
|
..
|
|
|
|
cmp
|
|
|
|
..
|
2017-05-21 14:05:32 +00:00
|
|
|
compress
|
|
|
|
..
|
2015-10-12 18:31:21 +00:00
|
|
|
cpio
|
|
|
|
..
|
2015-05-02 12:08:28 +00:00
|
|
|
col
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
comm
|
|
|
|
..
|
2017-05-08 17:13:00 +00:00
|
|
|
csplit
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
cut
|
|
|
|
..
|
2017-03-11 06:27:06 +00:00
|
|
|
diff
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
dirname
|
|
|
|
..
|
|
|
|
file2c
|
|
|
|
..
|
2017-05-18 01:43:30 +00:00
|
|
|
getconf
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
grep
|
|
|
|
..
|
|
|
|
gzip
|
|
|
|
..
|
2015-07-26 11:21:36 +00:00
|
|
|
ident
|
|
|
|
..
|
2017-03-03 20:15:22 +00:00
|
|
|
indent
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
join
|
|
|
|
..
|
|
|
|
jot
|
|
|
|
..
|
|
|
|
lastcomm
|
|
|
|
..
|
2015-11-09 01:05:31 +00:00
|
|
|
limits
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
m4
|
|
|
|
..
|
|
|
|
mkimg
|
|
|
|
..
|
|
|
|
ncal
|
|
|
|
..
|
2015-01-08 14:45:54 +00:00
|
|
|
opensm
|
|
|
|
..
|
2017-04-04 20:03:57 +00:00
|
|
|
pr
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
printf
|
|
|
|
..
|
2017-05-15 22:52:25 +00:00
|
|
|
procstat
|
|
|
|
..
|
2016-04-30 06:37:32 +00:00
|
|
|
sdiff
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
sed
|
|
|
|
regress.multitest.out
|
2014-10-02 19:53:37 +00:00
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
..
|
2015-05-02 11:09:58 +00:00
|
|
|
soelim
|
|
|
|
..
|
2017-01-10 20:43:32 +00:00
|
|
|
tail
|
|
|
|
..
|
2015-10-12 18:31:21 +00:00
|
|
|
tar
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
timeout
|
|
|
|
..
|
|
|
|
tr
|
|
|
|
..
|
|
|
|
truncate
|
|
|
|
..
|
|
|
|
units
|
|
|
|
..
|
|
|
|
uudecode
|
|
|
|
..
|
|
|
|
uuencode
|
|
|
|
..
|
2017-01-14 06:51:31 +00:00
|
|
|
uniq
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
xargs
|
|
|
|
..
|
2016-05-08 21:11:24 +00:00
|
|
|
xinstall
|
|
|
|
..
|
2015-10-06 16:58:47 +00:00
|
|
|
xo
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
yacc
|
|
|
|
yacc
|
2014-03-16 04:09:22 +00:00
|
|
|
..
|
2013-11-08 14:33:41 +00:00
|
|
|
..
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
usr.sbin
|
2016-07-23 05:49:18 +00:00
|
|
|
chown
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
etcupdate
|
|
|
|
..
|
2016-04-22 17:02:47 +00:00
|
|
|
extattr
|
|
|
|
..
|
2015-08-20 15:37:47 +00:00
|
|
|
fstyp
|
|
|
|
..
|
2015-10-22 05:32:45 +00:00
|
|
|
makefs
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
newsyslog
|
|
|
|
..
|
|
|
|
nmtree
|
|
|
|
..
|
|
|
|
pw
|
|
|
|
..
|
2016-01-06 00:00:11 +00:00
|
|
|
rpcbind
|
|
|
|
..
|
2014-12-18 18:16:00 +00:00
|
|
|
sa
|
|
|
|
..
|
|
|
|
..
|
2013-10-25 05:25:19 +00:00
|
|
|
..
|
2014-10-09 00:37:58 +00:00
|
|
|
|
|
|
|
# vim: set expandtab ts=4 sw=4:
|