bugDazuko - Bugs: bug #30982, Missing link count update in rmdir

 
 

bug #30982: Missing link count update in rmdir

Submitter:  None
Submitted:  Tue 07 Sep 2010 09:35:12 AM UTC
   
 
Status:  Fixed Assigned to:  ogman
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 16 Oct 2010 04:24:54 PM UTC, comment #1: 

Thank you for reporting (and fixing). The fix has been verified and included in the new 3.1.4-rc1 version.

John Ogness <ogman>
Group administrator
Tue 07 Sep 2010 09:35:12 AM UTC, original submission:  

If you run the following skript on a dazukofs mount in a loop it will fill the inode cache with tons of useless entries. Additionally, it will prevent security_inode_delete from being called for the deleted inode.

while true
do
    mkdir foo
    rmdir foo
done

The problem is that the link count for inodes directories is not adjusted after rmdir. This is only done for the parent directory.
You can see the problem with a simple script like this, too:

   mkdir somdir
   cd somdir
   rmdir $PWD
   ls -ldi .

The link count reported by ls should be zero but it is still two
if the directory lives on a dazukofs.

The attached patch seems to fix the problem for me.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #21399:  P added by None (427B - application/octet-stream - Proposed patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ogman (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-16 ogman StatusNone Fixed
        Assigned toNone ogman
        Open/ClosedOpen Closed
    2010-09-07 None Attached File- Added P, #21399

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code