== sanity test 161c: check CL_RENME[UNLINK] changelog record flags ========================================================== 18:48:02 (1717022882) mdd.lustre-MDT0000.changelog_mask=+hsm mdd.lustre-MDT0001.changelog_mask=+hsm Registered 2 changelog users: 'cl23 cl3' striped dir -i1 -c2 -H crush /mnt/lustre/d161c.sanity lustre-MDT0001.500000037 08RENME 22:48:04.923414357 2024.05.29 0x1 t=[0x240001b72:0x12:0x0] j=mv.0 ef=0xf u=0:0 nid=192.168.202.50@tcp p=[0x240001b71:0x3:0x0] bar_161c s=[0x200002342:0x75a4:0x0] sp=[0x200002341:0x3:0x0] foo_161c lustre-MDT0000: clear the changelog for cl3 of all records lustre-MDT0001: clear the changelog for cl23 of all records rename overwrite target with nlink = 1, changelog flags=0x1 lustre-MDT0000.500090268 08RENME 22:48:05.195483806 2024.05.29 0x0 t=[0x200002342:0x75a4:0x0] j=mv.0 ef=0xf u=0:0 nid=192.168.202.50@tcp p=[0x240001b71:0x3:0x0] bar_161c s=[0x200002342:0x75a5:0x0] sp=[0x200002341:0x3:0x0] foo_161c lustre-MDT0000: clear the changelog for cl3 of all records lustre-MDT0001: clear the changelog for cl23 of all records rename overwrite a target having nlink > 1, changelog record has flags of 0x0 lustre-MDT0000.500090271 08RENME 22:48:05.373168321 2024.05.29 0x0 t=[0:0x0:0x0] j=mv.0 ef=0xf u=0:0 nid=192.168.202.50@tcp p=[0x200002341:0x3:0x0] foo2_161c s=[0x200002342:0x75a6:0x0] sp=[0x200002341:0x3:0x0] foo_161c lustre-MDT0000: clear the changelog for cl3 of all records lustre-MDT0001: clear the changelog for cl23 of all records rename doesn't overwrite a target, changelog record has flags of 0x0 lustre-MDT0000.500090272 06UNLNK 22:48:05.535587477 2024.05.29 0x1 t=[0x200002342:0x75a6:0x0] j=rm.0 ef=0xf u=0:0 nid=192.168.202.50@tcp p=[0x200002341:0x3:0x0] foo2_161c lustre-MDT0000: clear the changelog for cl3 of all records lustre-MDT0001: clear the changelog for cl23 of all records unlink a file having nlink = 1, changelog record has flags of 0x1 lustre-MDT0000.500090273 06UNLNK 22:48:05.674893595 2024.05.29 0x1 t=[0x200002342:0x75a4:0x0] j=ln.0 ef=0xf u=0:0 nid=192.168.202.50@tcp p=[0x200002341:0x3:0x0] foobar_161c lustre-MDT0000.500090275 06UNLNK 22:48:05.685130462 2024.05.29 0x0 t=[0x200002342:0x75a5:0x0] j=rm.0 ef=0xf u=0:0 nid=192.168.202.50@tcp p=[0x200002341:0x3:0x0] foobar_161c lustre-MDT0000: clear the changelog for cl3 of all records lustre-MDT0001: clear the changelog for cl23 of all records unlink a file having nlink > 1, changelog record flags '0x0' lustre-MDT0001: clear the changelog for cl23 of all records lustre-MDT0001: Deregistered changelog user #23 lustre-MDT0000: clear the changelog for cl3 of all records lustre-MDT0000: Deregistered changelog user #3