[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4d173489-a950-4af2-8ec0-fd9ace4f3370@kernel.org>
Date: Fri, 22 Dec 2023 17:42:12 +0800
From: Chao Yu <chao@...nel.org>
To: Yongpeng Yang <yangyongpeng1@...o.com>, Jaegeuk Kim <jaegeuk@...nel.org>
Cc: linux-f2fs-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] f2fs: Constrain the modification range of dir_level
in the sysfs
On 2023/12/22 11:29, Yongpeng Yang wrote:
> The {struct f2fs_sb_info}->dir_level can be modified through the sysfs
> interface, but its value range is not limited. If the value exceeds
> MAX_DIR_HASH_DEPTH and the mount options include "noinline_dentry",
> the following error will occur:
> [root@...ora ~]# mount -o noinline_dentry /dev/sdb /mnt/sdb/
> [root@...ora ~]# echo 128 > /sys/fs/f2fs/sdb/dir_level
> [root@...ora ~]# cd /mnt/sdb/
> [root@...ora sdb]# mkdir test
> [root@...ora sdb]# cd test/
> [root@...ora test]# mkdir test
> mkdir: cannot create directory 'test': Argument list too long
>
> Signed-off-by: Yongpeng Yang <yangyongpeng1@...o.com>
Reviewed-by: Chao Yu <chao@...nel.org>
Thanks,
Powered by blists - more mailing lists