当前位置:网站首页>Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown
Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown
2022-07-26 09:17:00 【Wangwanlin Ben】
As shown in the figure below , Create a tempdir Folder , Then create subfolders in batch :
First create 64998 Subfolders , You can see link_count from 2 Add to 65000 individual , In line with expectations ;
To create a 1 A folder , see link_count It turned out to be 1; And delete some subfolders , Stay in 64998 Within a ,link_count Nor did it return to the correct value .

View file system types , yes ext4

principle
| 0x1A | __le16 | i_links_count | Hard link count. Normally, ext4 does not permit an inode to have more than 65,000 hard links. This applies to files as well as directories, which means that there cannot be more than 64,998 subdirectories in a directory (each subdirectory's '..' entry counts as a hard link, as does the '.' entry in the directory itself). With the DIR_NLINK feature enabled, ext4 supports more than 64,998 subdirectories by setting this field to 1 to indicate that the number of hard links is not known. |
Reference material
196405 – mkdir mishandles st_nlink in ext4 directory with 64997 subdirectories
边栏推荐
- Two tips for pycharm to open multiple projects
- Thread Join 和Object wait 的区别
- Error: Cannot find module ‘umi‘ 问题处理
- Elastic APM安装和使用
- Rocky基础练习题-shell脚本2
- Clean the label folder
- Original root and NTT 5000 word explanation
- 李沐d2l(六)---模型选择
- 【Mysql】redo log,undo log 和binlog详解(四)
- 220. Presence of repeating element III
猜你喜欢

Windows通过命令备份数据库到本地

Advanced mathematics | Takeshi's "classic series" daily question train of thought and summary of error prone points

Flask project learning (I) -- sayhello

Elastic APM安装和使用

李沐d2l(四)---Softmax回归

Does volatile rely on the MESI protocol to solve the visibility problem? (next)

【线上问题】Timeout waiting for connection from pool 问题排查

NFT与数字藏品到底有何区别?

原根与NTT 五千字详解

李沐d2l(六)---模型选择
随机推荐
Apple generated and verified tokens for PHP
839. 模拟堆
ext3文件系统的一个目录下,无法创建子文件夹,但可以创建文件
【Mysql】一条SQL语句是怎么执行的(二)
【Mysql】认识Mysql重要架构(一)
2022茶艺师(中级)特种作业证考试题库模拟考试平台操作
NPM add source and switch source
220. Presence of repeating element III
PHP 之 Apple生成和验证令牌
MySQL strengthen knowledge points
(2006, MySQL server has gone away) problem handling
【无标题】
The Child and Binary Tree-多项式开根求逆
How to quickly learn a programming language
Li Mu D2L (IV) -- softmax regression
Error: cannot find module 'UMI' problem handling
Pat grade a a1076 forwards on Weibo
[MySQL] detailed explanation of redo log, undo log and binlog (4)
volatile 靠的是MESI协议解决可见性问题?(上)
Probability model in machine learning