Actions
Feature #38849
closedmds: proactively merge orphaned inodes into a remaining parent after deleting primary hard link
Status:
Duplicate
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Description
https://www.mail-archive.com/ceph-users@lists.ceph.com/msg53368.html
While we move an unlinked file into the stray directory, we don't actually delete it if the inode has remaining hard links to other dentries.
Unfortunately, we also don't do anything to proactively re-link the inode into one of its remaining dentries, so it potentially takes up a spot in the stray directory forever. This can lead to denied deletes and the filesystem user has no obvious reason why!
We need some way of proactively finding the remaining parents and merging stray inodes back in-tree even if they're not touched from the other side.
Actions