summaryrefslogtreecommitdiff
path: root/lib9p/tests/test_server
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/tests/test_server')
-rw-r--r--lib9p/tests/test_server/fs_flush.c30
-rw-r--r--lib9p/tests/test_server/fs_shutdown.c30
-rw-r--r--lib9p/tests/test_server/fs_whoami.c30
3 files changed, 45 insertions, 45 deletions
diff --git a/lib9p/tests/test_server/fs_flush.c b/lib9p/tests/test_server/fs_flush.c
index 779eb91..821f32d 100644
--- a/lib9p/tests/test_server/fs_flush.c
+++ b/lib9p/tests/test_server/fs_flush.c
@@ -35,21 +35,21 @@ static struct lib9p_stat flush_file_stat(struct flush_file *self, struct lib9p_s
assert(self);
assert(ctx);
return (struct lib9p_stat){
- .kern_type = 0,
- .kern_dev = 0,
- .file_qid = flush_file_qid(self),
- .file_mode = 0444,
- .file_atime = UTIL9P_ATIME,
- .file_mtime = UTIL9P_MTIME,
- .file_size = 6,
- .file_name = lib9p_str(self->name),
- .file_owner_uid = lib9p_str("root"),
- .file_owner_gid = lib9p_str("root"),
- .file_last_modified_uid = lib9p_str("root"),
- .file_extension = lib9p_str(NULL),
- .file_owner_n_uid = 0,
- .file_owner_n_gid = 0,
- .file_last_modified_n_uid = 0,
+ .fstype = 0,
+ .fsdev = 0,
+ .qid = flush_file_qid(self),
+ .mode = 0444,
+ .atime = UTIL9P_ATIME,
+ .mtime = UTIL9P_MTIME,
+ .length = 6,
+ .name = lib9p_str(self->name),
+ .owner_uname = lib9p_str("root"),
+ .owner_unum = 0,
+ .owner_gname = lib9p_str("root"),
+ .owner_gnum = 0,
+ .last_modifier_uname = lib9p_str("root"),
+ .last_modifier_unum = 0,
+ .extension = lib9p_str(NULL),
};
}
static void flush_file_wstat(struct flush_file *self, struct lib9p_srv_ctx *ctx, struct lib9p_stat) {
diff --git a/lib9p/tests/test_server/fs_shutdown.c b/lib9p/tests/test_server/fs_shutdown.c
index af2a989..2c3137c 100644
--- a/lib9p/tests/test_server/fs_shutdown.c
+++ b/lib9p/tests/test_server/fs_shutdown.c
@@ -34,21 +34,21 @@ static struct lib9p_stat shutdown_file_stat(struct shutdown_file *self, struct l
assert(self);
assert(ctx);
return (struct lib9p_stat){
- .kern_type = 0,
- .kern_dev = 0,
- .file_qid = shutdown_file_qid(self),
- .file_mode = 0222 | LIB9P_DM_APPEND,
- .file_atime = UTIL9P_ATIME,
- .file_mtime = UTIL9P_MTIME,
- .file_size = 0,
- .file_name = lib9p_str(self->name),
- .file_owner_uid = lib9p_str("root"),
- .file_owner_gid = lib9p_str("root"),
- .file_last_modified_uid = lib9p_str("root"),
- .file_extension = lib9p_str(NULL),
- .file_owner_n_uid = 0,
- .file_owner_n_gid = 0,
- .file_last_modified_n_uid = 0,
+ .fstype = 0,
+ .fsdev = 0,
+ .qid = shutdown_file_qid(self),
+ .mode = 0222 | LIB9P_DM_APPEND,
+ .atime = UTIL9P_ATIME,
+ .mtime = UTIL9P_MTIME,
+ .length = 0,
+ .name = lib9p_str(self->name),
+ .owner_uname = lib9p_str("root"),
+ .owner_unum = 0,
+ .owner_gname = lib9p_str("root"),
+ .owner_gnum = 0,
+ .last_modifier_uname = lib9p_str("root"),
+ .last_modifier_unum = 0,
+ .extension = lib9p_str(NULL),
};
}
static void shutdown_file_wstat(struct shutdown_file *self, struct lib9p_srv_ctx *ctx, struct lib9p_stat) {
diff --git a/lib9p/tests/test_server/fs_whoami.c b/lib9p/tests/test_server/fs_whoami.c
index b81e6c8..c493000 100644
--- a/lib9p/tests/test_server/fs_whoami.c
+++ b/lib9p/tests/test_server/fs_whoami.c
@@ -57,21 +57,21 @@ static struct lib9p_stat whoami_file_stat(struct whoami_file *self, struct lib9p
assert(ctx);
return (struct lib9p_stat){
- .kern_type = 0,
- .kern_dev = 0,
- .file_qid = whoami_file_qid(self),
- .file_mode = 0444,
- .file_atime = UTIL9P_ATIME,
- .file_mtime = UTIL9P_MTIME,
- .file_size = whoami_len(ctx),
- .file_name = lib9p_str(self->name),
- .file_owner_uid = lib9p_str("root"),
- .file_owner_gid = lib9p_str("root"),
- .file_last_modified_uid = lib9p_str("root"),
- .file_extension = lib9p_str(NULL),
- .file_owner_n_uid = 0,
- .file_owner_n_gid = 0,
- .file_last_modified_n_uid = 0,
+ .fstype = 0,
+ .fsdev = 0,
+ .qid = whoami_file_qid(self),
+ .mode = 0444,
+ .atime = UTIL9P_ATIME,
+ .mtime = UTIL9P_MTIME,
+ .length = whoami_len(ctx),
+ .name = lib9p_str(self->name),
+ .owner_uname = lib9p_str("root"),
+ .owner_unum = 0,
+ .owner_gname = lib9p_str("root"),
+ .owner_gnum = 0,
+ .last_modifier_uname = lib9p_str("root"),
+ .last_modifier_unum = 0,
+ .extension = lib9p_str(NULL),
};
}
static void whoami_file_wstat(struct whoami_file *self, struct lib9p_srv_ctx *ctx, struct lib9p_stat) {