From: Christof Schmitt Date: Mon, 6 Jan 2020 21:07:29 +0000 (-0700) Subject: vfs_gpfs: Log error if clearing of sharemode fails on close X-Git-Tag: ldb-2.1.0~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c993480eeff7ff6aee7c4f90f103dcb8d1cd3c6f;p=thirdparty%2Fsamba.git vfs_gpfs: Log error if clearing of sharemode fails on close Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 52ff01b81ca..2f949ec8c1b 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -199,7 +199,14 @@ static int vfs_gpfs_close(vfs_handle_struct *handle, files_struct *fsp) * close gets deferred due to outstanding POSIX locks * (see fd_close_posix) */ - set_gpfs_sharemode(fsp, 0, 0); + int ret = gpfswrap_set_share(fsp->fh->fd, 0, 0); + if (ret != 0) { + DBG_ERR("Clearing GPFS sharemode on close failed for " + " %s/%s: %s\n", + fsp->conn->connectpath, + fsp->fsp_name->base_name, + strerror(errno)); + } } return SMB_VFS_NEXT_CLOSE(handle, fsp);