add proper error handling for all final exec calls
[hband-tools.git] / admin-tools / e2size
blob32223c491e0c0118f5e2f9b230c29042cc6e08e7
1 #!/bin/sh
2 tune2fs -l "$1" |\
3 perl -ne '/^Block count:\s*(\d+)/ and $bc=$1;
4 /^Block size:\s*(\d+)/ and $bs=$1;
5 END { print $bs * $bc, " bytes\n"; }'