POSIX GFPS adjusted to new API #248 (#253)

master
Julian Kunkel 2020-09-02 10:08:52 +01:00 committed by GitHub
parent af2429b47e
commit cc0ac50086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -179,7 +179,7 @@ void gpfs_free_all_locks(int fd)
EWARNF("gpfs_fcntl(%d, ...) release all locks hint failed.", fd);
}
}
void gpfs_access_start(int fd, IOR_offset_t length, int access)
void gpfs_access_start(int fd, IOR_offset_t length, IOR_offset_t offset, int access)
{
int rc;
struct {
@ -193,7 +193,7 @@ void gpfs_access_start(int fd, IOR_offset_t length, int access)
take_locks.access.structLen = sizeof(take_locks.access);
take_locks.access.structType = GPFS_ACCESS_RANGE;
take_locks.access.start = hints->offset;
take_locks.access.start = offset;
take_locks.access.length = length;
take_locks.access.isWrite = (access == WRITE);
@ -203,7 +203,7 @@ void gpfs_access_start(int fd, IOR_offset_t length, int access)
}
}
void gpfs_access_end(int fd, IOR_offset_t length, int access)
void gpfs_access_end(int fd, IOR_offset_t length, IOR_offset_t offset, int access)
{
int rc;
struct {
@ -218,7 +218,7 @@ void gpfs_access_end(int fd, IOR_offset_t length, int access)
free_locks.free.structLen = sizeof(free_locks.free);
free_locks.free.structType = GPFS_FREE_RANGE;
free_locks.free.start = hints->offset;
free_locks.free.start = offset;
free_locks.free.length = length;
rc = gpfs_fcntl(fd, &free_locks);
@ -539,7 +539,7 @@ static IOR_offset_t POSIX_Xfer(int access, aiori_fd_t *file, IOR_size_t * buffer
#ifdef HAVE_GPFS_FCNTL_H
if (o->gpfs_hint_access) {
gpfs_access_start(fd, length, access);
gpfs_access_start(fd, length, offset, access);
}
#endif
@ -600,7 +600,7 @@ static IOR_offset_t POSIX_Xfer(int access, aiori_fd_t *file, IOR_size_t * buffer
}
#ifdef HAVE_GPFS_FCNTL_H
if (o->gpfs_hint_access) {
gpfs_access_end(fd, length, param, access);
gpfs_access_end(fd, length, offset, access);
}
#endif
return (length);

View File

@ -371,10 +371,10 @@ void ShowTestStart(IOR_param_t *test)
PrintKeyValInt("setTimeStampSignature/incompressibleSeed", test->setTimeStampSignature); /* Seed value was copied into setTimeStampSignature as well */
PrintKeyValInt("collective", test->collective);
PrintKeyValInt("segmentCount", test->segmentCount);
#ifdef HAVE_GPFS_FCNTL_H
PrintKeyValInt("gpfsHintAccess", test->gpfs_hint_access);
PrintKeyValInt("gpfsReleaseToken", test->gpfs_release_token);
#endif
//#ifdef HAVE_GPFS_FCNTL_H
//PrintKeyValInt("gpfsHintAccess", test->gpfs_hint_access);
//PrintKeyValInt("gpfsReleaseToken", test->gpfs_release_token);
//#endif
PrintKeyValInt("transferSize", test->transferSize);
PrintKeyValInt("blockSize", test->blockSize);
PrintEndSection();