file: add spdk_ prefix to public APIs
file_get_size() -> spdk_file_get_size() dev_get_blocklen() -> spdk_dev_get_blocklen() Change-Id: Iba1eb4a22ba331887e2c5c3a16e1c0f9e695d83e Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
53e45aee8c
commit
aae6ee8c80
@ -274,14 +274,14 @@ register_aio_file(const char *path)
|
||||
return -1;
|
||||
}
|
||||
|
||||
size = file_get_size(fd);
|
||||
size = spdk_file_get_size(fd);
|
||||
if (size == 0) {
|
||||
fprintf(stderr, "Could not determine size of AIO device %s\n", path);
|
||||
close(fd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
blklen = dev_get_blocklen(fd);
|
||||
blklen = spdk_dev_get_blocklen(fd);
|
||||
if (blklen == 0) {
|
||||
fprintf(stderr, "Could not determine block size of AIO device %s\n", path);
|
||||
close(fd);
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
uint64_t file_get_size(int fd);
|
||||
uint32_t dev_get_blocklen(int fd);
|
||||
uint64_t spdk_file_get_size(int fd);
|
||||
uint32_t spdk_dev_get_blocklen(int fd);
|
||||
|
||||
#endif
|
||||
|
@ -64,7 +64,7 @@ dev_get_size(int fd)
|
||||
}
|
||||
|
||||
uint32_t
|
||||
dev_get_blocklen(int fd)
|
||||
spdk_dev_get_blocklen(int fd)
|
||||
{
|
||||
#if defined(DKIOCGETBLOCKSIZE) /* FreeBSD */
|
||||
uint32_t blocklen;
|
||||
@ -85,7 +85,7 @@ dev_get_blocklen(int fd)
|
||||
}
|
||||
|
||||
uint64_t
|
||||
file_get_size(int fd)
|
||||
spdk_file_get_size(int fd)
|
||||
{
|
||||
struct stat st;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user