gefs: correct in-memory directory length for DMAPPEND files (thanks cinap)

when appending to a directory, the copy of the offset in the dent was
set to the offset that the write was supposed to happen at -- however,
for DMAPPEND files the offset is always at the end of the file. Until
the file was closed, stat would show the wrong directory info.
This commit is contained in:
Ori Bernstein 2024-07-29 00:37:33 +00:00
parent 821e6690d3
commit c409b9127d

View file

@ -2218,7 +2218,7 @@ fswrite(Fmsg *m, int id)
sbuf[0] |= Owsize;
PACK64(p, o);
p += 8;
f->dent->length = m->offset+m->count;
f->dent->length = o;
}
sbuf[0] |= Owmtime;
f->dent->mtime = nsec();