Actions
Feature #4295
closedmds: Actually purge deleted directories
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Description
Right now we never actually delete a directory object when it gets unlinked in the filesystem.
1) Identify the reasons for not doing so now (is it just historical laziness, or are there hard problems to solve?).
2) Design a method of purging them. (I'm betting this isn't too hard and we just haven't implemented it).
3) Implement.
This is perhaps not a huge problem because any directory which gets deleted won't have any dentries, so re-creating a directory with that inode ought to be okay, making this just cruft. But leaving them around is weird for everybody.
Updated by Greg Farnum about 11 years ago
And Sage points out the reason it's not done so far is because fragmentation mucks it up a bit.
the dir purging is going to be funny because of dir fragmetnation.. need to keep track of the largest # frags over the lifetime of the dir, or something or, make sure that split/merge clean up old fragments. latter is probably better (but not there currently)
Actions