mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
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:
parent
821e6690d3
commit
c409b9127d
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue