Project

General

Profile

Actions

Feature #4295

closed

mds: Actually purge deleted directories

Added by Greg Farnum about 11 years ago. Updated almost 8 years ago.

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.

Actions

Also available in: Atom PDF