Re: [PATCH] ext4: fix dir_nlink behaviour

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

 



On Sat, Jul 22, 2017 at 03:38:41PM +0200, Damien Guibouret wrote:
> 
> If you look at vfs layer, vfs_mkdir does the check against max_links with >=
> and so if you reach the value, you will never be able to create a new
> directory even if nlink feature is present. Actually it is not a problem
> because ext4 does not set the s_max_links value in vfs (do not know why as
> ext2 set it perhaps because there is no limit if nlink is set?), but it
> could be some latent bug if someday somebody thinks it could be a good idea
> to set it.

We can't set s_max_links precisely because of the dir_nlinks feature.
So the fact that it is not set today is deliberate, and if someone
thought it was good idea, I and the other ext4 developers would NAK
it.

						- Ted



[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