- diff --git a/daemon/open.c b/daemon/open.c
- index c7bd412..6a36a1b 100644
- --- a/daemon/open.c
- +++ b/daemon/open.c
- @@ -644,6 +644,26 @@ static int handle_open(nfs41_upcall *upcall)
- nfs_to_standard_info(&info, &args->std_info);
- args->mode = info.mode;
- args->changeattr = info.change;
- +
- +#if 1
- + bitmap4 og_attr_request = { 0 };
- + nfs41_file_info og_info = { 0 };
- + char owner[NFS4_OPAQUE_LIMIT], group[NFS4_OPAQUE_LIMIT];
- + nfsacl41 acl = { 0 };
- +
- + /* gisburn: need to cache owner/group information */
- + og_attr_request.count = 2;
- + og_attr_request.arr[1] = FATTR4_WORD1_OWNER | FATTR4_WORD1_OWNER_GROUP;
- + og_info.owner = owner;
- + og_info.owner_group = group;
- + status = nfs41_getattr(state->session, &state->file, &og_attr_request, &og_info);
- + if (status) {
- + eprintf("get_stat_data: nfs41_cached_getattr() failed with %d\n",
- + status);
- + }
- +
- + dprintf(1, "/usr/bin/stat: owner='%s', owner_group='%s'\n", og_info.owner, og_info.owner_group);
- +#endif
- } else {
- nfs41_file_info createattrs = { 0 };
- uint32_t create = 0, createhowmode = 0, lookup_status = status;
Get owner/owner_group for stat() call
Posted by Anonymous on Mon 9th Oct 2023 06:36
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.