Created
September 11, 2016 20:32
-
-
Save lbr88/125fd134a0973bf4290aef712fbb8b62 to your computer and use it in GitHub Desktop.
count zfs files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zpoolname=$1; | |
zfs list |grep $zpoolname/ |while read line; do mount=$(echo $line |cut -d" " -f5); echo $mount:; find $mount -type f| wc -l; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment