File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 100
100
./test/images/volume/gluster/run_gluster.sh
101
101
./test/images/volume/iscsi/create_block.sh
102
102
./test/images/volume/nfs/run_nfs.sh
103
- ./test/images/volume/rbd/bootstrap.sh
104
- ./test/images/volume/rbd/create_block.sh
105
103
./third_party/forked/shell2junit/sh2ju.sh
106
104
./third_party/intemp/intemp.sh
107
105
./third_party/multiarch/qemu-user-static/register/qemu-binfmt-conf.sh
Original file line number Diff line number Diff line change 25
25
26
26
27
27
# Create /etc/ceph/ceph.conf
28
- sh ./ceph.conf.sh ` hostname -i`
28
+ sh ./ceph.conf.sh " $( hostname -i) "
29
29
30
30
# Configure and start ceph-mon
31
- sh ./mon.sh ` hostname -i`
31
+ sh ./mon.sh " $( hostname -i) "
32
32
33
33
# Configure and start 2x ceph-osd
34
34
mkdir -p /var/lib/ceph/osd/ceph-0 /var/lib/ceph/osd/ceph-1
@@ -51,7 +51,7 @@ ceph fs new cephfs cephfs_metadata cephfs_data
51
51
# It takes a while until the volume created above is mountable,
52
52
# 1 second is usually enough, but try indefinetily.
53
53
sleep 1
54
- while ! ceph-fuse -m ` hostname -i` :6789 /mnt; do
54
+ while ! ceph-fuse -m " $( hostname -i) :6789" /mnt; do
55
55
echo " Waiting for cephfs to be up"
56
56
sleep 1
57
57
done
Original file line number Diff line number Diff line change 20
20
# Exit on the first error.
21
21
set -e
22
22
23
- MNTDIR=` mktemp -d`
23
+ MNTDIR=" $( mktemp -d) "
24
24
25
25
cleanup ()
26
26
{
27
27
# Make sure we return the right exit code
28
28
RET=$?
29
29
# Silently remove everything and ignore errors
30
30
set +e
31
- /bin/umount $MNTDIR 2> /dev/null
32
- /bin/rmdir $MNTDIR 2> /dev/null
31
+ /bin/umount " $MNTDIR " 2> /dev/null
32
+ /bin/rmdir " $MNTDIR " 2> /dev/null
33
33
/bin/rm block 2> /dev/null
34
34
exit $RET
35
35
}
@@ -42,9 +42,9 @@ dd if=/dev/zero of=block seek=120 count=1 bs=1M
42
42
mkfs.ext2 block
43
43
44
44
# Add index.html to it
45
- mount -o loop block $MNTDIR
46
- echo " Hello from RBD" > $MNTDIR /index.html
47
- umount $MNTDIR
45
+ mount -o loop block " $MNTDIR "
46
+ echo " Hello from RBD" > " $MNTDIR /index.html"
47
+ umount " $MNTDIR "
48
48
49
49
rm block.tar.gz 2> /dev/null || :
50
50
tar cfz block.tar.gz block
You can’t perform that action at this time.
0 commit comments