X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=44a38b901ea5474f68a97e1c905f6ef1664ad653;hb=f47f816a5b1deabc1d501332a1a30af205d22515;hp=423527382c813028940db8bd3c6059e14730ae68;hpb=2d2a83f1445391c90bfc94327f825fd17ee9a00b;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 4235273..44a38b9 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -7184,6 +7184,22 @@ test_56rc() { } run_test 56rc "check lfs find --mdt-count/--mdt-hash works" +test_56rd() { + local dir=$DIR/$tdir + + test_mkdir $dir + + mkfifo $dir/fifo || error "failed to create fifo file" + found=$($LFS find $dir -t p --printf "%y") + [[ "p" = $found ]] || error "found $found, expect p" + + mknod $dir/chardev c 1 5 || + error "failed to create character device file" + found=$($LFS find $dir -t c --printf "%y") + [[ "c" = $found ]] || error "found $found, expect c" +} +run_test 56rd "check lfs find --printf special files" + test_56s() { # LU-611 #LU-9369 [[ $OSTCOUNT -lt 2 ]] && skip_env "need at least 2 OSTs"