You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
665 B
26 lines
665 B
4 months ago
|
#!/bin/sh
|
||
|
|
||
|
# Check verbose xlat decoding of btrfs ioctl w/ live ioctls.
|
||
|
|
||
|
# WARNING: USE OF THIS TEST WILL MODIFY AN EXISTING BTRFS FILE SYSTEM
|
||
|
|
||
|
# Typical usage:
|
||
|
# mkfs.btrfs <dev>
|
||
|
# mount <dev> /mnt
|
||
|
# BTRFS_MOUNTPOINT=/mnt make check TESTS="btrfs-wX"
|
||
|
# umount /mnt
|
||
|
|
||
|
. "${srcdir=.}/init.sh"
|
||
|
|
||
|
if [ -z "${BTRFS_MOUNTPOINT}" ]; then
|
||
|
skip_ "\$BTRFS_MOUNTPOINT not set"
|
||
|
elif [ ! -d "${BTRFS_MOUNTPOINT}" ]; then
|
||
|
skip_ "\$BTRFS_MOUNTPOINT does not point to a directory"
|
||
|
fi
|
||
|
|
||
|
check_prog grep
|
||
|
run_prog ../btrfs -w -X "${BTRFS_MOUNTPOINT}" > /dev/null
|
||
|
run_strace -a16 -Xverbose -eioctl $args > "$EXP"
|
||
|
grep -v '^ioctl([012],' < "$LOG" > "$OUT"
|
||
|
match_diff "$OUT" "$EXP"
|