From: Jan Kara Date: Wed, 14 Jun 2017 07:19:20 +0000 (+0200) Subject: generic/360: Create symlink with valid path X-Git-Tag: v2022.05.01~2016 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0a2d8332195abc8520d2e553bda01fdf6587c9bb;p=users%2Fhch%2Fxfstests-dev.git generic/360: Create symlink with valid path A test is creating symlink with a path containing name 1023 characters long. Such file name is invalid for most filesystems (the limit on file name lenght is mostly 255 characters) and UDF actually complains about this and so the test fails. Since the point of this test is to verify storage of the symlink, change the test to use a valid path where each component name has only 254 characters. Signed-off-by: Jan Kara Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/generic/360 b/tests/generic/360 index 86e554bb5..cc5623f55 100755 --- a/tests/generic/360 +++ b/tests/generic/360 @@ -50,9 +50,11 @@ _require_test linkfile=$TEST_DIR/$seq.symlink rm -f $linkfile +FNAME=$(perl -e 'print "a"x254') + # Create a symlink points to a very long path, so that the path could not be # hold in inode -ln -s `perl -e 'print "a"x1023'` $linkfile +ln -s $FNAME/$FNAME/$FNAME/$FNAME $linkfile # Check symlink contains the correct path. # 1023 chars are a bit long for golden image output, compute the md5 checksum diff --git a/tests/generic/360.out b/tests/generic/360.out index 1f0459bbc..a076d99bb 100644 --- a/tests/generic/360.out +++ b/tests/generic/360.out @@ -1,2 +1,2 @@ QA output created by 360 -cd3b0a56bc304075e28a20a4edd57068 - +36c1641ab5d82b582cd2baa1ace16277 -