summaryrefslogtreecommitdiffstats
path: root/Documentation/aoe/mkshelf.sh
diff options
context:
space:
mode:
authorEd Cashin <ecashin@coraid.com>2012-10-04 17:16:49 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-06 03:05:30 +0900
commit5b8c4be381a81617b60488ac3bd1b3e5cda32218 (patch)
tree819879dc69962d7f73f9a97aa11e0e11c8ceeb16 /Documentation/aoe/mkshelf.sh
parent1ac9e602625817b0c16cc70ea496875f7bd58a4d (diff)
downloadlinux-5b8c4be381a81617b60488ac3bd1b3e5cda32218.tar.gz
linux-5b8c4be381a81617b60488ac3bd1b3e5cda32218.tar.bz2
linux-5b8c4be381a81617b60488ac3bd1b3e5cda32218.zip
aoe: update documentation to better reflect aoe-plus-udev usage
Signed-off-by: Ed Cashin <ecashin@coraid.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/aoe/mkshelf.sh')
-rw-r--r--Documentation/aoe/mkshelf.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/Documentation/aoe/mkshelf.sh b/Documentation/aoe/mkshelf.sh
deleted file mode 100644
index 32615814271c..000000000000
--- a/Documentation/aoe/mkshelf.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#! /bin/sh
-
-if test "$#" != "2"; then
- echo "Usage: sh `basename $0` {dir} {shelfaddress}" 1>&2
- echo " n_partitions=16 sh `basename $0` {dir} {shelfaddress}" 1>&2
- exit 1
-fi
-n_partitions=${n_partitions:-16}
-dir=$1
-shelf=$2
-nslots=16
-maxslot=`echo $nslots 1 - p | dc`
-MAJOR=152
-
-set -e
-
-minor=`echo $nslots \* $shelf \* $n_partitions | bc`
-endp=`echo $n_partitions - 1 | bc`
-for slot in `seq 0 $maxslot`; do
- for part in `seq 0 $endp`; do
- name=e$shelf.$slot
- test "$part" != "0" && name=${name}p$part
- rm -f $dir/$name
- mknod -m 0660 $dir/$name b $MAJOR $minor
-
- minor=`expr $minor + 1`
- done
-done