/sbin/fsck.btrfs is in btrfs-tools 3.12-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/sh -f
AUTO=false
while getopts ":aApy" c
do
case $c in
a|A|p|y) AUTO=true;;
esac
done
eval DEV=\${$#}
if [ ! -e $DEV ]; then
echo "$0: $DEV does not exist"
exit 8
fi
if $AUTO; then
echo "$0: Btrfs file system."
else
echo "If you wish to check the consistency of an unmounted"
echo "btrfs filesystem or recover files from or repair a"
echo "damaged filesystem, see btrfs check and btrfs restore help"
echo "output."
fi
exit 0
|