tst: winfsp-tests: Overwrite: EA support

This commit is contained in:
Bill Zissimopoulos
2019-03-19 14:21:25 -07:00
parent a830de9d04
commit ff94a63c37
4 changed files with 122 additions and 14 deletions

View File

@ -1115,10 +1115,15 @@ namespace memfs
{
FileNode FileNode = (FileNode)FileNode0;
SortedDictionary<String, EaValueData> EaMap = FileNode.GetEaMap(true);
EaValueData Data;
Data.EaValue = EaValue;
Data.NeedEa = NeedEa;
EaMap[EaName] = Data;
if (null != EaValue)
{
EaValueData Data;
Data.EaValue = EaValue;
Data.NeedEa = NeedEa;
EaMap[EaName] = Data;
}
else
EaMap.Remove(EaName);
return STATUS_SUCCESS;
}