在The Linux Programming Interface一书中,它说
内核对解除引用的数量施加了限制,以处理符号链接循环链的可能性。
我在哪里可以找到这个限制?
查看 4.18 内核源代码,我看到一个名为MAXSYMLINKSininclude/linux/namei.h的常量,其值为40.
#include <linux/kernel.h>
#include <linux/path.h>
#include <linux/fcntl.h>
#include <linux/errno.h>
enum { MAX_NESTED_LINKS = 8 };
#define MAXSYMLINKS 40
Run Code Online (Sandbox Code Playgroud)