freebsd-skq/etc/mtree/BSD.tests.dist

1121 lines
22 KiB
Plaintext
Raw Normal View History

# $FreeBSD$
#
# Please see the file src/etc/mtree/README before making changes to this file.
#
/set type=dir uname=root gname=wheel mode=0755
.
bin
cat
..
chflags
..
chmod
..
date
..
dd
..
echo
..
expr
..
ln
..
ls
..
mkdir
..
mv
..
pax
..
pkill
..
pwait
..
rm
..
rmdir
..
sh
builtins
..
errors
..
execution
..
expansion
..
invocation
..
parameters
..
parser
..
set-e
..
..
sleep
..
test
..
..
cddl
lib
..
sbin
..
usr.bin
ctfconvert
..
ztest
..
..
usr.sbin
dtrace
common
aggs
..
arithmetic
..
arrays
..
assocs
..
begin
..
bitfields
..
buffering
..
builtinvar
..
cg
..
clauses
..
cpc
..
decls
..
drops
..
dtraceUtil
..
end
..
env
..
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
..
syscall
..
sysevent
..
tick-n
..
trace
..
tracemem
..
translators
..
typedef
..
types
..
uctf
..
union
..
usdt
..
ustack
..
vars
..
version
..
..
i386
arrays
..
funcs
..
pid
..
ustack
..
..
amd64
arrays
..
..
..
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
..
..
..
etc
rc.d
..
..
games
..
gnu
lib
..
usr.bin
diff
..
..
..
lib
atf
libatf-c
detail
..
..
libatf-c++
detail
..
..
test-programs
..
..
csu
dynamic
..
dynamiclib
..
static
..
..
googletest
gmock
..
gmock_main
..
gtest
..
gtest_main
..
..
libarchive
..
libbe
..
libc
c063
..
db
..
gen
execve
..
posix_spawn
..
..
hash
data
..
..
iconv
..
inet
..
locale
..
net
getaddrinfo
data
..
..
..
nss
..
regex
data
..
..
resolv
..
rpc
..
ssp
..
setjmp
..
stdio
..
stdlib
..
string
2014-11-05 22:50:33 +00:00
..
sys
..
time
..
tls
dso
..
..
termios
..
ttyio
..
..
libcam
..
libcasper
services
cap_dns
..
cap_grp
..
cap_pwd
..
cap_sysctl
..
..
..
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
..
libexecinfo
..
libkvm
..
libmp
..
libnv
..
libproc
..
libregex
data
..
..
librt
..
libsbuf
..
libthr
dlopen
..
..
libutil
..
libxo
..
msun
..
..
libexec
atf
atf-check
..
atf-sh
..
..
rtld-elf
..
tftpd
..
..
sbin
bectl
..
dhclient
..
devd
..
growfs
..
ifconfig
..
mdconfig
..
nvmecontrol
..
pfctl
files
..
..
ping
..
ping6
..
route
..
..
secure
lib
..
libexec
..
usr.bin
..
usr.sbin
..
..
share
examples
tests
atf
..
googletest
..
plain
..
tap
..
..
..
zoneinfo
..
..
sys
acl
..
aio
..
audit
..
auditpipe
..
Properly do a deep copy of the ioctls capability array for fget_cap(). fget_cap() tries to do a cheaper snapshot of a file descriptor without holding the file descriptor lock. This snapshot does not do a deep copy of the ioctls capability array, but instead uses a different return value to inform the caller to retry the copy with the lock held. However, filecaps_copy() was returning 1 to indicate that a retry was required, and fget_cap() was checking for 0 (actually '!filecaps_copy()'). As a result, fget_cap() did not do a deep copy of the ioctls array and just reused the original pointer. This cause multiple file descriptor entries to think they owned the same pointer and eventually resulted in duplicate frees. The only code path that I'm aware of that triggers this is to create a listen socket that has a restricted list of ioctls and then call accept() which calls fget_cap() with a valid filecaps structure from getsock_cap(). To fix, change the return value of filecaps_copy() to return true if it succeeds in copying the caps and false if it fails because the lock is required. I find this more intuitive than fixing the caller in this case. While here, change the return type from 'int' to 'bool'. Finally, make filecaps_copy() more robust in the failure case by not copying any of the source filecaps structure over. This avoids the possibility of leaking a pointer into a structure if a similar future caller doesn't properly handle the return value from filecaps_copy() at the expense of one more branch. I also added a test case that panics before this change and now passes. Reviewed by: kib Discussed with: mjg (not a fan of the extra branch) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D15047
2018-04-17 18:07:40 +00:00
capsicum
..
cddl
zfs
bin
..
include
..
tests
acl
cifs
..
nontrivial
..
trivial
..
..
atime
..
bootfs
..
cache
..
cachefile
..
clean_mirror
..
cli_root
zfs_upgrade
..
zfs_promote
..
zfs_clone
..
zfs_property
..
zfs_destroy
..
zpool_create
..
zpool_history
..
zpool_expand
..
zpool_remove
..
zfs_mount
..
zfs_unshare
..
zdb
..
zpool_online
..
zpool_get
..
zpool_export
..
zfs_copies
..
zfs_get
..
zfs
..
zpool_clear
..
zpool_import
blockfiles
..
..
zpool
..
zpool_offline
..
zpool_replace
..
zfs_rollback
..
zpool_set
..
zfs_send
..
zfs_set
..
zpool_detach
..
zfs_diff
..
zpool_scrub
..
zfs_inherit
..
zfs_snapshot
..
zfs_share
..
zpool_destroy
..
zpool_status
..
zfs_unmount
..
zfs_receive
..
zfs_create
..
zpool_upgrade
blockfiles
..
..
zpool_add
..
zfs_rename
..
zpool_attach
..
zfs_reservation
..
..
cli_user
misc
..
zfs_list
..
zpool_iostat
..
zpool_list
..
..
compression
..
ctime
..
delegate
..
devices
..
exec
..
grow_pool
..
grow_replicas
..
history
..
hotplug
..
hotspare
..
inheritance
..
interop
..
inuse
..
iscsi
..
large_files
..
largest_pool
..
link_count
..
migration
..
mmap
..
mount
..
mv_files
..
nestedfs
..
no_space
..
online_offline
..
pool_names
..
poolversion
..
quota
..
redundancy
..
refquota
..
refreserv
..
rename_dirs
..
replacement
..
reservation
..
rootpool
..
rsend
..
scrub_mirror
..
slog
..
snapshot
..
snapused
..
sparse
..
threadsappend
..
truncate
..
txg_integrity
..
userquota
..
utils_test
..
write_dirs
..
xattr
..
zfsd
..
zil
..
zinject
..
zones
..
zvol
zvol_ENOSPC
..
zvol_cli
..
zvol_misc
..
zvol_swap
..
..
zvol_thrash
..
..
..
..
devrandom
..
dtrace
..
fifo
..
file
..
fs
fusefs
..
tmpfs
..
..
geom
class
concat
..
eli
..
gate
..
gpt
..
mirror
..
multipath
..
nop
..
part
..
raid3
..
shsec
..
stripe
..
uzip
etalon
..
..
..
..
kern
acct
..
execve
..
pipe
..
..
kqueue
libkqueue
..
..
mac
bsdextended
..
portacl
..
..
mqueue
..
net
..
netinet
..
netinet6
frag6
..
..
netipsec
tunnel
..
..
netmap
..
netpfil
common
..
pf
ioctl
..
..
..
opencrypto
..
pjdfstest
chflags
..
chmod
..
chown
..
ftruncate
..
granular
..
link
..
mkdir
..
mkfifo
..
mknod
..
open
..
rename
..
rmdir
..
symlink
2014-12-12 19:56:36 +00:00
..
truncate
..
unlink
..
utimensat
..
..
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
..
vfs
..
vm
..
..
usr.bin
apply
..
awk
..
basename
..
bmake
archives
fmt_44bsd
..
fmt_44bsd_mod
..
fmt_oldbsd
..
..
basic
t0
..
t1
..
t2
..
t3
..
..
execution
ellipsis
..
empty
..
joberr
..
plus
..
..
shell
builtin
..
meta
..
path
..
path_select
..
replace
..
select
..
..
suffixes
basic
..
src_wild1
..
src_wild2
..
..
syntax
directive-t0
..
enl
..
funny-targets
..
semi
..
..
sysmk
t0
2
1
..
..
mk
..
..
t1
2
1
..
..
mk
..
..
t2
2
1
..
..
mk
..
..
..
variables
modifier_M
..
modifier_t
..
opt_V
..
t0
2014-07-17 22:26:24 +00:00
..
..
..
bsdcat
..
calendar
..
cmp
..
2017-05-21 14:05:32 +00:00
compress
..
cpio
..
col
..
comm
..
csplit
..
cut
..
dc
..
diff
..
dirname
..
du
..
file2c
..
2017-12-31 19:24:13 +00:00
find
..
fold
..
getconf
..
grep
..
gzip
..
head
..
hexdump
..
ident
..
indent
..
join
..
jot
..
lastcomm
..
limits
..
locale
..
m4
..
mkimg
..
ncal
..
opensm
..
patch
..
pr
..
printf
..
procstat
..
rs
..
sdiff
..
sed
regress.multitest.out
..
..
seq
..
2015-05-02 11:09:58 +00:00
soelim
..
stat
..
tail
..
tar
..
timeout
..
tr
..
truncate
..
units
..
uudecode
..
uuencode
..
unifdef
..
uniq
..
vmstat
..
xargs
..
2016-05-08 21:11:24 +00:00
xinstall
..
xo
..
yacc
yacc
..
..
..
usr.sbin
chown
..
etcupdate
..
extattr
..
fstyp
..
jail
..
makefs
..
2019-08-25 19:27:14 +00:00
mixer
..
newsyslog
..
nmtree
..
praudit
..
pw
..
rpcbind
..
sa
..
..
..
# vim: set expandtab ts=4 sw=4: