Implement async mtime change

This commit is contained in:
Vitaliy Filippov
2024-03-16 13:24:36 +03:00
parent 7b12342933
commit 603dc68f11
12 changed files with 98 additions and 18 deletions
+2 -1
View File
@@ -35,8 +35,9 @@ static void nfs_kv_continue_setattr(nfs_kv_setattr_state *st, int state)
fprintf(stderr, "BUG: invalid state in nfs_kv_continue_setattr()");
abort();
}
st->self->parent->kvfs->touch_queue.erase(st->ino);
resume_0:
kv_read_inode(st->self, st->ino, [st](int res, const std::string & value, json11::Json attrs)
kv_read_inode(st->self->parent, st->ino, [st](int res, const std::string & value, json11::Json attrs)
{
st->res = res;
st->ientry_text = value;