Hans Leidekker hans@it.vu.nl writes:
Not completely. STATUS_DISK_FULL (translated from ENOSPC) for example is mapped to ERROR_DISK_FULL by RtlNtStatusToDosError whereas I am mapping it to ERROR_END_OF_MEDIA which I think is more appropriate in the context of tapes.
Then the ntdll code should have returned STATUS_END_OF_MEDIA. You don't have to use the standard errno conversion in ntdll if you can return more appropriate status codes.