当前位置:网站首页>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
边栏推荐
猜你喜欢
Summary of common activation functions for deep learning
Flask project learning (I) -- sayhello
Go intelligent robot alpha dog, alpha dog robot go
redis原理和使用-安装和分布式配置
Horizontal comparison of the data of the top ten blue chip NFTs in the past half year
【线上死锁分析】由index_merge引发的死锁事件
Nuxt - Project packaging deployment and online to server process (SSR server rendering)
The Child and Binary Tree-多项式开根求逆
Grain College of all learning source code
Datawhale panda book has been published!
随机推荐
unity TopDown角色移动控制
838. Heap sorting
Study notes of dataX
Redis principle and use - Basic Features
Server memory failure prediction can actually do this!
[eslint] Failed to load parser ‘@typescript-eslint/parser‘ declared in ‘package. json » eslint-confi
高数 | 武爷『经典系列』每日一题思路及易错点总结
“No input file specified “问题的处理
力扣刷题,三数之和
Li Mu D2L (IV) -- softmax regression
ONTAP 9文件系统的限制
Codeworks DP collection
Announcement | FISCO bcos v3.0-rc4 is released, and the new Max version can support massive transactions on the chain
zsh: command not found: nvm
Zipkin installation and use
[MySQL] how to execute an SQL statement (2)
对象型的集合按某个属性的值进行去重
220. Presence of repeating element III
Windows通过命令备份数据库到本地
Matlab 绘制阴影误差图