From: Elena Gryaznova Date: Mon, 20 Dec 2010 09:28:37 +0000 (+0300) Subject: b=24239 use SAMPLE_FILE instead of termcap X-Git-Tag: 1.8.5.52~20 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2454e94d7c013a4407442e72cf829771cd037f29 b=24239 use SAMPLE_FILE instead of termcap i=Vitaly.Fertman --- diff --git a/lustre/tests/lfscktest.sh b/lustre/tests/lfscktest.sh index e699589..7d17a39 100755 --- a/lustre/tests/lfscktest.sh +++ b/lustre/tests/lfscktest.sh @@ -27,6 +27,9 @@ check_and_setup_lustre assert_DIR +SAMPLE_FILE=$TMP/$(basename $0 .sh).junk +dd if=/dev/urandom of=$SAMPLE_FILE bs=1M count=1 + # Create some dirs and files on the filesystem. create_files_sub() { local test_dir=$1 @@ -62,7 +65,7 @@ create_files() { # create files to be modified for f in $(seq -f $test_dir/testfile.%g $((num_files * 3))); do echo "creating $f" - cp /etc/termcap $f || error "cp /etc/termcap $f failed" + cp $SAMPLE_FILE $f || error "cp $SAMPLE_FILE $f failed" done # create some more files diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 5805076..741b40b 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -58,6 +58,9 @@ OSTCOUNT=`lctl get_param -n lov.$LOVNAME.numobd` assert_DIR rm -rf $DIR1/[df][0-9]* $DIR1/lnk +SAMPLE_FILE=$TMP/$(basename $0 .sh).junk +dd if=/dev/urandom of=$SAMPLE_FILE bs=1M count=1 + # $RUNAS_ID may get set incorrectly somewhere else [ $UID -eq 0 -a $RUNAS_ID -eq 0 ] && error "\$RUNAS_ID set to 0, but \$UID is also 0!" @@ -332,7 +335,7 @@ test_17() { # bug 3513, 3667 remote_ost_nodsh && skip "remote OST with nodsh" && return lfs setstripe $DIR1/$tfile -i 0 -c 1 - cp /etc/termcap $DIR1/$tfile + cp $SAMPLE_FILE $DIR1/$tfile cancel_lru_locks osc > /dev/null #define OBD_FAIL_ONCE|OBD_FAIL_LDLM_CREATE_RESOURCE 0x30a do_facet ost1 lctl set_param fail_loc=0x8000030a