Whamcloud - gitweb
LU-13481 dne: improve temp file name check 39/38539/2
authorLai Siyao <lai.siyao@whamcloud.com>
Fri, 8 May 2020 04:28:52 +0000 (12:28 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 May 2020 08:25:47 +0000 (08:25 +0000)
commit51e57496838381b5d7fdecf228e042e9660c21b6
tree0d1d08e4ace12714e813c2ac2f493acca7097edd
parente82516955fdfbcad390f2fc36a84f24ec3b42a69
LU-13481 dne: improve temp file name check

Previously if all but two characters in file name suffix are digit,
it's not treated as temp file, as is too strict if suffix length is
short, e.g. 6. Change it to allow one character, and this non-digit
character should not be the starting character.

Test-Parameters: trivial testlist=sanity env=ONLY=33h,ONLY_REPEAT=500
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ie36e6e15c1e593f47f4d3fab7f8c567d1d587f28
Reviewed-on: https://review.whamcloud.com/38539
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
lustre/include/lu_object.h