Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Dec 18, 2023
1 parent 5bb4c9a commit 3079f34
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion scripts/tile_gen/extract_btrfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@ rsync -avH mnt_rw/extract/ mnt_rw2/extract/ > rsync_out.log 2> rsync_err.log


# collect stats
{
echo -e "df -h"
sudo df -h mnt_rw

echo -e "\n\nbtrfs filesystem df"
sudo btrfs filesystem df mnt_rw

echo -e "\n\nbtrfs filesystem show"
sudo btrfs filesystem show mnt_rw

echo -e "\n\nbtrfs filesystem usage"
sudo btrfs filesystem usage mnt_rw

echo -e "\n\nbtrfs filesystem du -s"
sudo btrfs filesystem du -s mnt_rw

echo -e "\n\ncompsize -x"
sudo compsize -x mnt_rw 2> /dev/null || true
} > stats1.txt

{
echo -e "df -h"
sudo df -h mnt_rw2
Expand All @@ -66,7 +86,7 @@ sudo btrfs filesystem du -s mnt_rw2

echo -e "\n\ncompsize -x"
sudo compsize -x mnt_rw2 2> /dev/null || true
} > stats.txt
} > stats2.txt


sudo umount mnt_rw
Expand Down

0 comments on commit 3079f34

Please sign in to comment.