Details
-
Bug
-
Resolution: Fixed
-
Major
-
Lustre 2.4.0
-
3
-
9319
Description
CLF_RENAME_LAST flag is supposed to be set in RENME changelog record
if the rename operation unlinks the target.
The following reproducer shows this is not the case in lustre 2.4.0:
- touch /mnt/lustre/foo
- touch /mnt/lustre/bar
- mv /mnt/lustre/foo /mnt/lustre/bar
mv: overwrite `/mnt/lustre/bar'? yes - lfs changelog lustre
271361 01CREAT 13:28:02.446421944 2013.07.23 0x0 t=[0x300000400:0x19b51:0x0] p=[0x200000007:0x1:0x0] foo
271363 01CREAT 13:28:04.815421715 2013.07.23 0x0 t=[0x300000400:0x19b52:0x0] p=[0x200000007:0x1:0x0] bar
271365 08RENME 13:28:10.255420121 2013.07.23 0x0 t=[0x300000400:0x19b52:0x0] p=[0x200000007:0x1:0x0] bar s=[0x300000400:0x19b51:0x0] sp=[0x200000007:0x1:0x0] foo
RENME flag is 0x0, should be 0x01.
The flag was still correct on lustre 2.3.0:
6 08RENME 13:33:51.820025792 2013.07.23 0x1 t=[0x200000400:0x2:0x0] p=[0x61ab:0x4710a859:0x0] bar s=[0x200000400:0x1:0x0] sp=[0x61ab:0x4710a859:0x0] foo