Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.7.0
-
3
-
17383
Description
HSM restore causes some file attributes to change (blocks and maybe ctime). tar detects this and reports "tar: f0: file changed as we read it" and will continue archiving but return 1 on exit. So according to its exit status it has failed but the archive contents are correct.
# echo XXXXXXXXXXXXXXXXXXXXXXXX > f0 # echo ZZZZZZZZZZZZZZZZZZZ > f1 # lfs hsm_archive f0 # lfs hsm_state f0 f0: (0x00000009) exists archived, archive_id:1 # lfs hsm_release f0 # lfs hsm_state f0 f0: (0x0000000d) released exists archived, archive_id:1 # tar -cf /tmp/0.tar f0 f1 tar: f0: file changed as we read it # tar -tvf /tmp/0.tar -rw-r--r-- root/root 25 2015-02-05 10:31 f0 -rw-r--r-- root/root 20 2015-02-05 10:34 f1 # rm f0 f1 # tar -xf /tmp/0.tar # ls -l total 1 -rw-r--r-- 1 root root 25 Feb 5 10:31 f0 -rw-r--r-- 1 root root 20 Feb 5 10:34 f1 # cat f0 XXXXXXXXXXXXXXXXXXXXXXXX # cat f1 ZZZZZZZZZZZZZZZZZZZ