linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: Wang Sheng-Hui <shhuiw@gmail.com>
Cc: ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: Use fsck to free the space used by dir?
Date: Fri, 03 Aug 2012 10:18:57 -0500	[thread overview]
Message-ID: <501BEBE1.5080508@redhat.com> (raw)
In-Reply-To: <501BDDE5.8060005@gmail.com>

On 8/3/12 9:19 AM, Wang Sheng-Hui wrote:
> Dear all,
> 
> I read through the namei.c code recently, but didn't notice any code to
> reduce the size of a dir file (append can increase its size though).

Right, AFAIK nothing in kernelspace will reduce the size.

> I wonder if I create large amount of files under dir A, then remove all
> the sub items, do I need to run fsck to free the disk space used by the
> dir file? 

Yes, e2fsck -fD should compress them again.

-Eric

> Please help confirm or if I missed some points.
> 
> 
> Regards,
> Sheng-Hui
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  reply	other threads:[~2012-08-03 15:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-03 14:19 Use fsck to free the space used by dir? Wang Sheng-Hui
2012-08-03 15:18 ` Eric Sandeen [this message]
2012-08-03 17:57   ` Theodore Ts'o
2012-08-04  4:25     ` Wang Sheng-Hui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=501BEBE1.5080508@redhat.com \
    --to=sandeen@redhat.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=shhuiw@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).