summaryrefslogtreecommitdiffstats
path: root/266/regr/testcase
blob: 933735a97a9327a1f4af9151a15db3fdedc81ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

description="# In stripe client crashes when disk space is full"
comments="# When mknod system call is executed on a disk which is full with S_IFREG client crashes "

source ../../init

start_glusterfs 

sleep 5

gcc $SPECDIR/mknod.c -o $SPECDIR/mkn
$SPECDIR/mkn $MOUNTDIR/client1/foo 
if [ $? -ne 0  ]; then
    not_ok $description
    comment $comments
else
    ok $description
    comment $comments
fi

rm $SPECDIR/mkn

cleanup_glusterfs