TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Linux Technical Debt: A Visual Explanation (Directory Entries/struct dirent)

5 点作者 jodybruchon10 个月前

1 comment

bediger400010 个月前
Isn&#x27;t struct dirent what the original UFS (Unix file system from like v3 or even earlier) had as contents of directory files? And yes, directories were files with a special bit set in permissions in UFS and BSD&#x27;s FFS.<p>I&#x27;m virtually certain that exposing that on disk struct to users had so much legacy code that struct dirent was just not worth updating when the capability of using multiple file systems got added to various kernels. We&#x27;re stuck with it, an accident of history, just like we&#x27;re stuck with FAT filesystems for boot partitions and similar.
评论 #40963421 未加载