diff options
author | Ed L. Cashin <ecashin@coraid.com> | 2004-12-16 22:50:31 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-12-16 22:50:31 -0800 |
commit | 3db119285eae7b420bdccf379f0e06b0c1166c2b (patch) | |
tree | 3abe6b07405631a0ef0532a596127d729ee145eb /Documentation/aoe/status.sh | |
parent | b1cbc1086d663905c0e5775f3f5f28239f6c505e (diff) | |
download | history-3db119285eae7b420bdccf379f0e06b0c1166c2b.tar.gz |
[PATCH] add ATA over Ethernet driver
Provide support for ATA over Ethernet devices
Signed-off-by: Ed L. Cashin <ecashin@coraid.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'Documentation/aoe/status.sh')
-rw-r--r-- | Documentation/aoe/status.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/aoe/status.sh b/Documentation/aoe/status.sh new file mode 100644 index 0000000000000..7b8c8a7f8bd6f --- /dev/null +++ b/Documentation/aoe/status.sh @@ -0,0 +1,15 @@ +# collate and present sysfs information about AoE storage + +set -e +format="%8s\t%12s\t%8s\t%8s\n" + +printf "$format" device mac netif state + +for d in `ls -d /sys/block/etherd* | grep -v p`; do + dev=`echo "$d" | sed 's/.*!//'` + printf "$format" \ + "$dev" \ + "`cat \"$d/mac\"`" \ + "`cat \"$d/netif\"`" \ + "`cat \"$d/state\"`" +done | sort |