Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] aoe: aoe-stat should work for built-in as well as module

aoe-stat should work for built-in as well as module

Signed-off-by: Ed L. Cashin <ecashin@coraid.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

diff -uprN a/Documentation/aoe/status.sh b/Documentation/aoe/status.sh

authored by

Ed L Cashin and committed by
Greg KH
c59a24dc 03c41c43

-4
-4
Documentation/aoe/status.sh
··· 14 14 echo "$me Error: sysfs is not mounted" 1>&2 15 15 exit 1 16 16 } 17 - test -z "`lsmod | grep '^aoe'`" && { 18 - echo "$me Error: aoe module is not loaded" 1>&2 19 - exit 1 20 - } 21 17 22 18 for d in `ls -d $sysd/block/etherd* 2>/dev/null | grep -v p` end; do 23 19 # maybe ls comes up empty, so we use "end"