mirror of
https://github.com/ceph/ceph
synced 2024-12-21 19:02:10 +00:00
b5e4a31930
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
32 lines
402 B
Bash
Executable File
32 lines
402 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
dotest() {
|
|
src=$1
|
|
desti=$2
|
|
destdn=$3
|
|
n=$4
|
|
|
|
touch ./$src/src$n
|
|
touch ./$desti/desti$n
|
|
ln ./$desti/desti$n ./$destdn/destdn$n
|
|
|
|
mv ./$src/src$n ./$destdn/destdn$n
|
|
}
|
|
|
|
|
|
# srcdn=destdn=desti
|
|
dotest 'a' 'a' 'a' 1
|
|
|
|
# destdn=desti
|
|
dotest 'b' 'a' 'a' 2
|
|
|
|
# srcdn=destdn
|
|
dotest 'a' 'b' 'a' 3
|
|
|
|
# srcdn=desti
|
|
dotest 'a' 'a' 'b' 4
|
|
|
|
# all different
|
|
dotest 'a' 'b' 'c' 5
|
|
|