Description of problem: When trash xlator tries to create directories recursively inside .trashcan as part of the trash_truncate_mkdir_cbk() function, it does not send the gfid to be set for the newly created directory in the dictionary. When posix_gfid_set() function checks for the gfid in the xattr_req dictionary it will not see one being sent there and will return from there. So when we try to send the appropriate error if there is no gfid in the dict, the trash_truncate operation will fail. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: trash xlator should send the gfid xattr value in the dictionary while creating directories recursively as part of trash_truncate_mkdir_cbk(). Additional info:
Anoop, How long do you think it will take to fix this issue? Based on that we can take the decision about whether to merge the patch Karthik sent or wait it out. Let us know. Pranith
Jiffin had a comment on change 20630: https://review.gluster.org/c/glusterfs/+/20630#message-80e53c67e1347a855228aa68616dc0bfddccf0b2