mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-08 04:52:10 -05:00
tst: memfs-dotnet: WIP
This commit is contained in:
parent
2bdd54536e
commit
0f9ef3bd51
@ -816,7 +816,7 @@ namespace memfs
|
|||||||
public override Int32 GetReparsePointByName(
|
public override Int32 GetReparsePointByName(
|
||||||
String FileName,
|
String FileName,
|
||||||
Boolean IsDirectory,
|
Boolean IsDirectory,
|
||||||
ref Byte[] ReparsePoint)
|
ref Byte[] ReparseData)
|
||||||
{
|
{
|
||||||
FileNode FileNode;
|
FileNode FileNode;
|
||||||
|
|
||||||
@ -827,7 +827,7 @@ namespace memfs
|
|||||||
if (0 == (FileNode.FileInfo.FileAttributes & (UInt32)FileAttributes.ReparsePoint))
|
if (0 == (FileNode.FileInfo.FileAttributes & (UInt32)FileAttributes.ReparsePoint))
|
||||||
return STATUS_NOT_A_REPARSE_POINT;
|
return STATUS_NOT_A_REPARSE_POINT;
|
||||||
|
|
||||||
ReparsePoint = FileNode.ReparseData;
|
ReparseData = FileNode.ReparseData;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -836,7 +836,7 @@ namespace memfs
|
|||||||
Object FileNode0,
|
Object FileNode0,
|
||||||
Object FileDesc,
|
Object FileDesc,
|
||||||
String FileName,
|
String FileName,
|
||||||
ref Byte[] ReparsePoint)
|
ref Byte[] ReparseData)
|
||||||
{
|
{
|
||||||
FileNode FileNode = (FileNode)FileNode0;
|
FileNode FileNode = (FileNode)FileNode0;
|
||||||
|
|
||||||
@ -846,7 +846,7 @@ namespace memfs
|
|||||||
if (0 == (FileNode.FileInfo.FileAttributes & (UInt32)FileAttributes.ReparsePoint))
|
if (0 == (FileNode.FileInfo.FileAttributes & (UInt32)FileAttributes.ReparsePoint))
|
||||||
return STATUS_NOT_A_REPARSE_POINT;
|
return STATUS_NOT_A_REPARSE_POINT;
|
||||||
|
|
||||||
ReparsePoint = FileNode.ReparseData;
|
ReparseData = FileNode.ReparseData;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -855,7 +855,7 @@ namespace memfs
|
|||||||
Object FileNode0,
|
Object FileNode0,
|
||||||
Object FileDesc,
|
Object FileDesc,
|
||||||
String FileName,
|
String FileName,
|
||||||
Byte[] ReparsePoint)
|
Byte[] ReparseData)
|
||||||
{
|
{
|
||||||
FileNode FileNode = (FileNode)FileNode0;
|
FileNode FileNode = (FileNode)FileNode0;
|
||||||
|
|
||||||
@ -867,14 +867,14 @@ namespace memfs
|
|||||||
|
|
||||||
if (null != FileNode.ReparseData)
|
if (null != FileNode.ReparseData)
|
||||||
{
|
{
|
||||||
Int32 Result = CanReplaceReparsePoint(FileNode.ReparseData, ReparsePoint);
|
Int32 Result = CanReplaceReparsePoint(FileNode.ReparseData, ReparseData);
|
||||||
if (0 > Result)
|
if (0 > Result)
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileNode.FileInfo.FileAttributes |= (UInt32)FileAttributes.ReparsePoint;
|
FileNode.FileInfo.FileAttributes |= (UInt32)FileAttributes.ReparsePoint;
|
||||||
FileNode.FileInfo.ReparseTag = GetReparseTag(ReparsePoint);
|
FileNode.FileInfo.ReparseTag = GetReparseTag(ReparseData);
|
||||||
FileNode.ReparseData = ReparsePoint;
|
FileNode.ReparseData = ReparseData;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -883,7 +883,7 @@ namespace memfs
|
|||||||
Object FileNode0,
|
Object FileNode0,
|
||||||
Object FileDesc,
|
Object FileDesc,
|
||||||
String FileName,
|
String FileName,
|
||||||
Byte[] ReparsePoint)
|
Byte[] ReparseData)
|
||||||
{
|
{
|
||||||
FileNode FileNode = (FileNode)FileNode0;
|
FileNode FileNode = (FileNode)FileNode0;
|
||||||
|
|
||||||
@ -892,7 +892,7 @@ namespace memfs
|
|||||||
|
|
||||||
if (null != FileNode.ReparseData)
|
if (null != FileNode.ReparseData)
|
||||||
{
|
{
|
||||||
Int32 Result = CanReplaceReparsePoint(FileNode.ReparseData, ReparsePoint);
|
Int32 Result = CanReplaceReparsePoint(FileNode.ReparseData, ReparseData);
|
||||||
if (0 > Result)
|
if (0 > Result)
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
@ -900,7 +900,7 @@ namespace memfs
|
|||||||
return STATUS_NOT_A_REPARSE_POINT;
|
return STATUS_NOT_A_REPARSE_POINT;
|
||||||
|
|
||||||
FileNode.FileInfo.FileAttributes &= ~(UInt32)FileAttributes.ReparsePoint;
|
FileNode.FileInfo.FileAttributes &= ~(UInt32)FileAttributes.ReparsePoint;
|
||||||
FileNode.FileInfo.ReparseTag = GetReparseTag(ReparsePoint);
|
FileNode.FileInfo.ReparseTag = GetReparseTag(ReparseData);
|
||||||
FileNode.ReparseData = null;
|
FileNode.ReparseData = null;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user