zvfs: 性能测试
This commit is contained in:
4
zvfs.h
4
zvfs.h
@@ -15,7 +15,7 @@
|
||||
|
||||
extern const char *json_file;
|
||||
extern struct spdk_thread *global_thread;
|
||||
static const int WAITER_MAX_TIME = 100000;
|
||||
static const int WAITER_MAX_TIME = 10000000;
|
||||
|
||||
/* 目录项(内存中的目录) */
|
||||
typedef struct {
|
||||
@@ -69,6 +69,7 @@ typedef struct zvfs_file_s {
|
||||
|
||||
size_t actual_io_count;
|
||||
const uint8_t *write_staging_buf;
|
||||
int aligned;
|
||||
|
||||
size_t io_count;
|
||||
bool finished;
|
||||
@@ -92,5 +93,6 @@ ssize_t read(int fd, void *buf, size_t count);
|
||||
ssize_t write(int fd, const void *buf, size_t count);
|
||||
int close(int fd);
|
||||
int unlink(const char *name);
|
||||
off_t lseek(int fd, off_t offset, int whence);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user