[PATCH] fs: Set the size of empty dirs to 0.

Tejun Heo tj at kernel.org
Wed Aug 12 20:18:05 UTC 2015


On Wed, Aug 12, 2015 at 03:07:19PM -0500, Eric W. Biederman wrote:
> 
> Before the make_empty_dir_inode calls were introduce into proc, sysfs,
> and sysctl those directories when stated reported an i_size of 0.
> make_empty_dir_inode started reporting an i_size of 2.  At least one
> userspace application depended on stat returning i_size of 0.  So modify
> make_empty_dir_inode to cause an i_size of 0 to be reported for these
> directories.
> 
> Cc: stable at vger.kernel.org
> Reproted-by: Tejun Heo <tj at kernel.org>
    ^^^
> Signed-off-by: "Eric W. Biederman" <ebiederm at xmission.com>

Acked-by: Tejun Heo <tj at kernel.org>

Thanks.

-- 
tejun


More information about the Containers mailing list