INTFileStore interface was added for better separation between the object store layer and the SMB layer

This commit is contained in:
Tal Aloni 2017-02-11 11:37:17 +02:00
parent cc170322ed
commit fb43fb966d
43 changed files with 1715 additions and 1487 deletions

View file

@ -177,7 +177,11 @@ namespace SMBLibrary.Server
{
return new ErrorResponse(request.CommandName, NTStatus.STATUS_FILE_CLOSED);
}
openFile.Stream.Flush();
NTStatus status = share.FileStore.FlushFileBuffers(openFile.Handle);
if (status != NTStatus.STATUS_SUCCESS)
{
return new ErrorResponse(request.CommandName, status);
}
return new FlushResponse();
}
else if (command is CloseRequest)