NTFS 连接,难以理解 API

发布于 2024-10-10 01:29:50 字数 465 浏览 0 评论 0原文

更新:这个问题已演变为关于NTFS文件系统过滤器驱动程序如何在备份应用程序和其他需要的程序中使用Win32 API的问题了解磁盘上的文件到底是什么?连接点和重解析点是我需要考虑的关键概念,也是 NTFS 文件系统中最令人困惑的事情。

最初的问题如下:


  1. 用于检测目录是否为联结的Win32 API是什么?
  2. NTFS 层次结构中的连接点存储在“哪里”(由于缺乏更好的理解)?
  3. 如果我创建一个联结 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:


  1. What is the Win32 API used to detect if a directory is a junction?
  2. 'Where' (for lack of better understanding) in the NTFS hierarchy are junctions stored?
  3. If I create a junction c:\thejunction_mydir do both directories become junctions of one-another? i.e. the created and the referenced

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深爱不及久伴 2024-10-17 01:29:50

如何检测重分析点?

确定目录是否为已挂载文件夹就是答案。它展示了如何确定文件夹是否是重解析点,以及它是否也可能是:连接点、符号链接或挂载点。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文