mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
direct_io_test: use mkstmp instead of mkostemps
mkostemps isn't present in older glibc versions, like the ones in CentOS 5.5. We don't really use any of the extra functionality of mkostemps in this test. Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
This commit is contained in:
parent
4db8801bba
commit
a3475610eb
@ -98,7 +98,7 @@ static int setup_temp_file(void)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
fd = mkostemps(temp_file, 0, O_WRONLY | O_TRUNC);
|
||||
fd = mkstemp(temp_file);
|
||||
if (fd < 0) {
|
||||
int err = errno;
|
||||
printf("setup_big_file: mkostemps failed with error %d\n", err);
|
||||
|
Loading…
Reference in New Issue
Block a user