mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
tmpfs: don't resize on setattr
This commit is contained in:
@@ -102,11 +102,7 @@ static int tmpfs_getattr(vnode_t *node, vattr_t *attr, cred_t *cred) {
|
|||||||
static int tmpfs_setattr(vnode_t *node, vattr_t *attr, cred_t *cred) {
|
static int tmpfs_setattr(vnode_t *node, vattr_t *attr, cred_t *cred) {
|
||||||
VOP_LOCK(node);
|
VOP_LOCK(node);
|
||||||
tmpfsnode_t *tmpnode = (tmpfsnode_t *)node;
|
tmpfsnode_t *tmpnode = (tmpfsnode_t *)node;
|
||||||
int err = tmpfs_resize(tmpnode, attr->size);
|
|
||||||
if (err) {
|
|
||||||
VOP_UNLOCK(node);
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
tmpnode->attr.gid = attr->gid;
|
tmpnode->attr.gid = attr->gid;
|
||||||
tmpnode->attr.uid = attr->uid;
|
tmpnode->attr.uid = attr->uid;
|
||||||
tmpnode->attr.mode = attr->mode;
|
tmpnode->attr.mode = attr->mode;
|
||||||
|
|||||||
Reference in New Issue
Block a user