Project

General

Profile

Bug #7203

unlinking a directory on tmpfs does not remove the directory entries

Added by Andrew Stormont almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Category:
-
Start date:
2016-07-20
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

When unlinking a directory on tmpfs the directory itself is removed but the directory entries are not freed. This can lead lead tmpfs to eventually run out of space. Additionally because the reference counting is now out of sync some directories cannot be removed even if they are empty (rmdir will fail with EEXIST).

History

#2

Updated by Electric Monk almost 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 6da83bb0b886fae280a129718d645576517b62c6

commit  6da83bb0b886fae280a129718d645576517b62c6
Author: Andrew Stormont <astormont@racktopsystems.com>
Date:   2016-07-22T14:15:57.000Z

    7203 unlinking a directory on tmpfs does not remove the directory entries
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Alexander Stetsenko <astetsenko@racktopsystems.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF