brintos

brintos / linux-shallow public Read only

0
0
Text · 276 B · 35db26f Raw
17 lines · bash
1#!/bin/bash2 3rm -r tmpmnt4rm -f testfile.img5dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=16DEVICE=$(losetup --show -f testfile.img)7mkfs.btrfs -f $DEVICE8mkdir tmpmnt9./tracex7 $DEVICE10if [ $? -eq 0 ]11then12	echo "SUCCESS!"13else14	echo "FAILED!"15fi16losetup -d $DEVICE17