[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 7 Dec 2014 13:30:13 +0000 (13:30 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 7 Dec 2014 13:30:13 +0000 (13:30 +0000)
Implement NtfsFCBIsReparsePoint() which returns true in case current FCB is a reparse point

svn path=/trunk/; revision=65579

reactos/drivers/filesystems/ntfs/fcb.c
reactos/drivers/filesystems/ntfs/ntfs.h

index 57ff198..a0b95c9 100644 (file)
@@ -124,6 +124,13 @@ NtfsFCBIsDirectory(PNTFS_FCB Fcb)
 }
 
 
+BOOLEAN
+NtfsFCBIsReparsePoint(PNTFS_FCB Fcb)
+{
+    return ((Fcb->Entry.FileAttributes & NTFS_FILE_TYPE_REPARSE) == NTFS_FILE_TYPE_REPARSE);
+}
+
+
 BOOLEAN
 NtfsFCBIsRoot(PNTFS_FCB Fcb)
 {
index bb72e01..a847cef 100644 (file)
@@ -564,6 +564,9 @@ NtfsDestroyFCB(PNTFS_FCB Fcb);
 BOOLEAN
 NtfsFCBIsDirectory(PNTFS_FCB Fcb);
 
+BOOLEAN
+NtfsFCBIsReparsePoint(PNTFS_FCB Fcb);
+
 BOOLEAN
 NtfsFCBIsRoot(PNTFS_FCB Fcb);