Displaying 1 result from an estimated 1 matches for "btrfsdev".
Did you mean:
btrfs_dev
2010 Dec 15
0
btrfsck says snapshots have errors
...no errors.
Who is right, btrfsck or the file system itself?
Are there really errors?
---------- cut script here ----------------------------------------
#!/bin/bash -u
# Test a btrfs partition: one-snap creation and btrfsck
# -Ian! D. Allen - idallen@idallen.ca - www.idallen.com
BTRFS=/mnt/sdc1
BTRFSDEV=/dev/sdc1
echo "Using $BTRFS $BTRFSDEV"
set -x
mkfs.btrfs -L BTRFStest $BTRFSDEV || exit $?
mount -o noatime $BTRFSDEV $BTRFS || exit $?
btrfs subvolume snapshot $BTRFS $BTRFS/snap1
umount $BTRFSDEV
btrfsck $BTRFSDEV
---------- cut script here --------------------------------------...