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

 
 

bug #30982: Missing link count update in rmdir

Submitted by:  None
Submitted on:  Tue 07 Sep 2010 09:35:12 AM UTC  
 
Status: FixedAssigned to: John Ogness <ogman>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by ogman (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 16 Oct 2010 04:24:54 PM UTCogmanStatusNone=>Fixed
      Assigned toNone=>ogman
      Open/ClosedOpen=>Closed
    Tue 07 Sep 2010 09:35:13 AM UTCNoneAttached File-=>Added P, #21399

    Back to the top


    Powered by Savane 3.1-cleanup1