X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-flr.sh;h=08d25966b9083ddbb7b72438d7f48c22790fecdf;hb=ee916af10de2f9e1dd8b79d1f08a78401277ef96;hp=923518fc0fcc47479fac8b6911bac0272ecd08d1;hpb=6ef815a0b9edc8239481f45ccd162e79b3f99cfb;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity-flr.sh b/lustre/tests/sanity-flr.sh index 923518f..08d2596 100644 --- a/lustre/tests/sanity-flr.sh +++ b/lustre/tests/sanity-flr.sh @@ -2061,6 +2061,7 @@ test_46() { ########################### 3. FLR file ############################# echo " ** 3. FLR file" + rm -f $file $LFS setstripe -N -E1m -S 1M -c2 -o0,1 -E4m -c1 -Eeof -N -E16m -Eeof \ $file || error "3. Create FLR $file failed" @@ -2089,6 +2090,38 @@ test_46() { error "6. setstripe FLR $dir failed" verify_46 $dir $dir.copy "6. FLR dir" + + ########################### 7. SEL file ############################## + echo " ** 7. SEL file" + rm -f $file + $LFS setstripe -E256M -S 1M -c2 -o0,1 -z 64M -E-1 -o1,0 -z 128M \ + $file || error "Create $file failed" + + rm -f $file.copy + verify_46 $file $file.copy "7. SEL file" + + ########################### 8. SEL dir ############################## + echo " ** 8. SEL dir" + $LFS setstripe -E256M -S 1M -c2 -z 64M -E-1 -z 128M \ + $dir || error "setstripe $dir failed" + + verify_46 $dir $dir.copy "8. SEL dir" + + ########################### 9. FLR SEL file ########################## + echo " ** 9. FLR SEL file" + rm -f $file + $LFS setstripe -N -E256M -c2 -z 64M -E-1 -z 128M \ + -N -E1G -c4 -z128M -E-1 -z256M $file || error "Create $file failed" + + rm -f $file.copy + verify_46 $file $file.copy "9. SEL file" + + ########################### 10. FLR SEL dir ######################### + echo " ** 10. FLR SEL dir" + $LFS setstripe -N -E256M -c2 -z 64M -E-1 -z 128M \ + -N -E1G -c4 -z128M -E-1 -z256M $dir || error "Create $file failed" + + verify_46 $dir $dir.copy "10. SEL dir" } run_test 46 "Verify setstripe --copy option"