Re: Use fsck to free the space used by dir?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux