Major refactoring: testing

This commit is contained in:
Bill Zissimopoulos
2015-12-23 12:28:56 -08:00
parent 0191b9551b
commit 41269e9d21
6 changed files with 25 additions and 10 deletions

View File

@ -56,7 +56,8 @@ FSP_API NTSTATUS FspFsctlCreateVolume(PWSTR DevicePath,
if (INVALID_HANDLE_VALUE == VolumeHandle)
{
Result = FspNtStatusFromWin32(GetLastError());
if (STATUS_OBJECT_NAME_NOT_FOUND == Result)
if (STATUS_OBJECT_NAME_NOT_FOUND == Result ||
STATUS_OBJECT_PATH_NOT_FOUND == Result)
Result = STATUS_NO_SUCH_DEVICE;
goto exit;
}

View File

@ -77,6 +77,8 @@ NTSTATUS FspVolumeCreate(
}
/* check the VolumeParams */
if (0 == VolumeParams.SectorSize)
VolumeParams.SectorSize = 512;
if (FspFsctlTransactTimeoutMinimum > VolumeParams.TransactTimeout ||
VolumeParams.TransactTimeout > FspFsctlTransactTimeoutMaximum)
VolumeParams.TransactTimeout = FspFsctlTransactTimeoutDefault;