Fix shared file overlap, add FIXMEs

This commit is contained in:
Vitaliy Filippov
2024-03-16 13:24:36 +03:00
parent 88f9d18be3
commit d03f19ebe5
3 changed files with 16 additions and 6 deletions
+2 -2
View File
@@ -25,6 +25,7 @@ struct nfs_kv_setattr_state
static void nfs_kv_continue_setattr(nfs_kv_setattr_state *st, int state)
{
// FIXME: NFS client does a lot of setattr calls, so maybe process them asynchronously
if (state == 0) {}
else if (state == 1) goto resume_1;
else if (state == 2) goto resume_2;
@@ -50,8 +51,7 @@ resume_1:
cb(st->res);
return;
}
if (st->ientry["type"].string_value() == "link" ||
st->ientry["type"].string_value() != "file" &&
if (st->ientry["type"].string_value() != "file" &&
st->ientry["type"].string_value() != "" &&
!st->set_attrs["size"].is_null())
{