NTFS Junctions, trouble understanding the API

时间秒杀一切 提交于 2019-12-31 01:53:09

问题


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

回答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.



来源:https://stackoverflow.com/questions/4571622/ntfs-junctions-trouble-understanding-the-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!