Skip to content

Commit

Permalink
Detect nfhd0 as used by aranym for reading device statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-schwab authored and adrianschroeter committed Oct 15, 2013
1 parent 58f2c0e commit 77bb5d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -3167,6 +3167,7 @@ if test -n "$RUNNING_IN_VM"; then
[ -e /dev/sda ] && device="sda"
[ -e /dev/vda ] && device="vda"
[ -e /dev/dasda ] && device="dasda" # in z/VM
[ -e /dev/nfhd0 ] && device="nfhd0" # in aranym
if [ -e /sys/block/${device}/stat ]; then
disk=(`cat /sys/block/${device}/stat`)
[ "0${disk[0]}" -gt 0 ] && echo "IO_requests_read: ${disk[0]}" >> $TOPDIR/OTHER/_statistics
Expand Down

0 comments on commit 77bb5d4

Please sign in to comment.