是否存在具有低级前置操作的文件系统?
在最低级别,大多数操作系统文件操作包括打开、关闭、读取、写入、删除以及查找和追加操作,但没有前置操作。
出现这个问题是因为我的一位同事正在处理他生成的大型(数千兆字节)数据日志,他意识到他没有将文件头写入日志文件。尽管他只需要在文件的前面添加一百个字节,但我们看不到任何方法可以在不进入块/扇区文件分配表级别的情况下做到这一点。
是否存在任何历史或技术原因导致前置操作不存在,或者比类似的附加操作更昂贵?
At the lowest levels most OS file operations include open, close, read, write, delete and seek and append operation, yet there is no prepend operation.
The question came up because a colleague of mine was working with a large (multi-gigabyte) data log he had generated and he realized he had not written the a file header to the log file. Even though he only needed to add a hundred bytes to the front of the file, we couldn't see any way to do that without getting into the block / sector file allocation table level stuff.
Is there any history or technical reason that a prepend operation does not exist, or would be more expensive then the similar append operation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只知道一篇研究论文描述了这样的事情:“支持条带并行文件系统中的插入和删除”(1992 年)。
摘要是
您可以在论文中找到更多信息。
I am only aware of a single research paper describing something like this: "Supporting Insertions and Deletions in Striped Parallel Filesystems" from 1992.
The abstract is
You can find more information in the paper.