From 7770cb123e2b4340da4d6e9a8bf5585c02871a72 Mon Sep 17 00:00:00 2001 From: bobijam Date: Fri, 7 Nov 2008 03:20:42 +0000 Subject: [PATCH] Branch b1_6 b=16578 o=adilger A faster way to get long string. --- lustre/tests/sanity.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 32fcfe1..b7538a2 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -446,9 +446,7 @@ run_test 17e "symlinks: create recursive symlink (should return error) ====" 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 } -- 1.8.3.1