mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
windows-tests-torture-20090226
LICENSE MIT fix error message create a file of the specified size
This commit is contained in:
parent
3c1f858208
commit
ab0691760f
@ -386,7 +386,7 @@ BOOL run_netbench(int client, char *ClientText, char *PathToSecondDir)
|
|||||||
printf("ERROR: You are using a dbench 1 load file\n");
|
printf("ERROR: You are using a dbench 1 load file\n");
|
||||||
if (GetHandleInformation((HANDLE)hWinEventHandle, &dwFlags))
|
if (GetHandleInformation((HANDLE)hWinEventHandle, &dwFlags))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!strcmp(params[0], "BM_SETUP"))
|
if (!strcmp(params[0], "BM_SETUP"))
|
||||||
{
|
{
|
||||||
bm_state = BM_SETUP;
|
bm_state = BM_SETUP;
|
||||||
|
@ -286,7 +286,7 @@ int nb_CreateFile(char *path, DWORD size)
|
|||||||
sprintf(FileName, "Thread_%05d.log", ProcessNumber);
|
sprintf(FileName, "Thread_%05d.log", ProcessNumber);
|
||||||
if (strlen(path) == 0)
|
if (strlen(path) == 0)
|
||||||
{
|
{
|
||||||
return(LeaveThread(1, "nb_DeleteFile failed no path specified\n", CMD_CREATEFILE));
|
return(LeaveThread(1, "nb_CreateFile failed no path specified\n", CMD_CREATEFILE));
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(NewPath, path);
|
strcpy(NewPath, path);
|
||||||
@ -312,7 +312,7 @@ int nb_CreateFile(char *path, DWORD size)
|
|||||||
}
|
}
|
||||||
EndFirstTimer(CMD_CREATEFILE, 1);
|
EndFirstTimer(CMD_CREATEFILE, 1);
|
||||||
Moved = SetFilePointer(fHandle,
|
Moved = SetFilePointer(fHandle,
|
||||||
size,
|
size - sizeof(Buffer) <= 0 ? 0 : size - sizeof(Buffer),
|
||||||
NULL,
|
NULL,
|
||||||
FILE_BEGIN);
|
FILE_BEGIN);
|
||||||
memset(Buffer, 'A', sizeof(Buffer));
|
memset(Buffer, 'A', sizeof(Buffer));
|
||||||
|
Loading…
Reference in New Issue
Block a user