shithub: gefs

Download patch

ref: 95162babf731e1e431134879cb21bf5f8110b328
parent: 1f57b3a7d02117e5be29e358353191253f6b0004
author: Michael Forney <mforney@mforney.org>
date: Wed Mar 16 22:41:01 EDT 2022

fs: various wstat fixes
Don't update Dent until btupsert succeeds.

Fix permission check for changing mode, mtime, and name. Name
permissions are checked against the parent directory, and mode and
mtime are allowed iff we are the owner or group leader.

Check that length is not negative, mode does not change DMDIR bit,
and the new mode contains only valid bits.

Keep qid.type in sync with upper mode byte.

Implement group change.