repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
more safety checks in noshellinject; bugfix (perl string-comparision) in notashell...
[hband-tools.git]
/
admin-tools
/
e2size
blob
32223c491e0c0118f5e2f9b230c29042cc6e08e7
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
"; }'