From: bobijam Date: Fri, 7 Nov 2008 03:16:55 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_9_100~21 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=0614a7d7a5f59f87d22df5ea7c268bd18c0a3a8e;p=fs%2Flustre-release.git Branch HEAD b=16578 o=adilger A faster way to get long string. --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 89ea9f6..95a6ac5 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -466,9 +466,7 @@ run_test 17f "symlinks: long and very long symlink name ======================== test_17g() { mkdir -p $DIR/$tdir - for ((i = 0; i < 511; ++i)); do - LONGSYMLINK="${LONGSYMLINK}01234567" - done + LONGSYMLINK="$(dd if=/dev/zero bs=4095 count=1 | tr '\0' 'x')" ln -s $LONGSYMLINK $DIR/$tdir/$tfile ls -l $DIR/$tdir }