From: Archana Date: Mon, 14 Mar 2022 09:46:17 +0000 (+0530) Subject: vfs: Getting exact attribute value during gpfs_stat_x calls X-Git-Tag: tevent-0.12.0~441 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb13c7c94f;p=thirdparty%2Fsamba.git vfs: Getting exact attribute value during gpfs_stat_x calls To properly update the filesize on all cluster nodes simultaneously Signed-off-by: Archana Chidirala Reviewed-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 1444d44bbb9..004c74cd43a 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1482,7 +1482,7 @@ static NTSTATUS vfs_gpfs_fget_dos_attributes(struct vfs_handle_struct *handle, char buf[PATH_MAX]; const char *p = NULL; struct gpfs_iattr64 iattr = { }; - unsigned int litemask; + unsigned int litemask = GPFS_SLITE_EXACT_BITS; struct timespec ts; uint64_t file_id; NTSTATUS status; @@ -1988,7 +1988,7 @@ static int vfs_gpfs_check_pathref_fstat_x(struct gpfs_config_data *config, struct connection_struct *conn) { struct gpfs_iattr64 iattr = {0}; - unsigned int litemask; + unsigned int litemask = GPFS_SLITE_EXACT_BITS; int saved_errno; int fd; int ret;