NTFS 连接,难以理解 API
更新:这个问题已演变为关于NTFS文件系统过滤器驱动程序
如何在备份应用程序和其他需要的程序中使用Win32 API的问题了解磁盘上的文件到底是什么?连接点和重解析点是我需要考虑的关键概念,也是 NTFS 文件系统中最令人困惑的事情。
最初的问题如下:
- 用于检测目录是否为联结的Win32 API是什么?
- NTFS 层次结构中的连接点存储在“哪里”(由于缺乏更好的理解)?
- 如果我创建一个联结
c:\thejunction_mydir
两个目录都会成为彼此的联结吗?即创建和引用
Update: This question has evolved into a question about the NTFS filesystem filter driver
how to use the Win32 API in backup applications and other programs that need to know what a file really is on disk? Junctions and reparse points are key concepts that I needed to consider and are the most confusing thing in the NTFS filesystem.
The original question follows:
- What is the Win32 API used to detect if a directory is a junction?
- 'Where' (for lack of better understanding) in the NTFS hierarchy are junctions stored?
- If I create a junction
c:\thejunction_mydir
do both directories become junctions of one-another? i.e. the created and the referenced
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如何检测重分析点?
确定目录是否为已挂载文件夹就是答案。它展示了如何确定文件夹是否是重解析点,以及它是否也可能是:连接点、符号链接或挂载点。
How do I detect a reparse point?
Determining Whether a Directory Is a Mounted Folder is the answer. It shows how to determine whether a folder is a reparse point, and thus if it is also potentially: a Junction or a Symlink or a Mount-point.