-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 330456 b: refs/heads/master c: 8901395 h: refs/heads/master v: v3
- Loading branch information
David Howells
committed
Oct 4, 2012
1 parent
4d6d320
commit b084816
Showing
917 changed files
with
12,685 additions
and
39,457 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 125b79d74a63552be757bb49a425b965782e4952 | ||
refs/heads/master: 890139529d45ebd3c60d541f4eddc60e042fdf98 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/sh | ||
|
||
n_shelves=${n_shelves:-10} | ||
n_partitions=${n_partitions:-16} | ||
|
||
if test "$#" != "1"; then | ||
echo "Usage: sh `basename $0` {dir}" 1>&2 | ||
echo " n_partitions=16 sh `basename $0` {dir}" 1>&2 | ||
exit 1 | ||
fi | ||
dir=$1 | ||
|
||
MAJOR=152 | ||
|
||
echo "Creating AoE devnode files in $dir ..." | ||
|
||
set -e | ||
|
||
mkdir -p $dir | ||
|
||
# (Status info is in sysfs. See status.sh.) | ||
# rm -f $dir/stat | ||
# mknod -m 0400 $dir/stat c $MAJOR 1 | ||
rm -f $dir/err | ||
mknod -m 0400 $dir/err c $MAJOR 2 | ||
rm -f $dir/discover | ||
mknod -m 0200 $dir/discover c $MAJOR 3 | ||
rm -f $dir/interfaces | ||
mknod -m 0200 $dir/interfaces c $MAJOR 4 | ||
rm -f $dir/revalidate | ||
mknod -m 0200 $dir/revalidate c $MAJOR 5 | ||
rm -f $dir/flush | ||
mknod -m 0200 $dir/flush c $MAJOR 6 | ||
|
||
export n_partitions | ||
mkshelf=`echo $0 | sed 's!mkdevs!mkshelf!'` | ||
i=0 | ||
while test $i -lt $n_shelves; do | ||
sh -xc "sh $mkshelf $dir $i" | ||
i=`expr $i + 1` | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#! /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 |
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.