mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-11 08:16:05 -04:00
main: cache inode st_mode
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
1545d4bf84
commit
551638090f
4
main.c
4
main.c
@ -210,8 +210,9 @@ struct ovl_node
|
|||||||
int lookups;
|
int lookups;
|
||||||
int hidden_dirfd;
|
int hidden_dirfd;
|
||||||
int nlinks;
|
int nlinks;
|
||||||
ino_t ino;
|
mode_t mode;
|
||||||
size_t name_hash;
|
size_t name_hash;
|
||||||
|
ino_t ino;
|
||||||
|
|
||||||
unsigned int do_unlink : 1;
|
unsigned int do_unlink : 1;
|
||||||
unsigned int do_rmdir : 1;
|
unsigned int do_rmdir : 1;
|
||||||
@ -883,6 +884,7 @@ rpl_stat (fuse_req_t req, struct ovl_node *node, int fd, const char *path, struc
|
|||||||
st->st_nlink++;
|
st->st_nlink++;
|
||||||
}
|
}
|
||||||
node->nlinks = st->st_nlink;
|
node->nlinks = st->st_nlink;
|
||||||
|
node->mode = st->st_mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user