zvfs: 性能测试

This commit is contained in:
2026-02-24 16:01:29 +00:00
parent 6f8f2148c3
commit 8d1d9506cd
7 changed files with 779 additions and 48 deletions

4
zvfs.h
View File

@@ -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