vfs_gpfs: Log failed gpfs_set_share call as error
authorChristof Schmitt <cs@samba.org>
Mon, 6 Jan 2020 21:52:14 +0000 (14:52 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 8 Jan 2020 00:01:37 +0000 (00:01 +0000)
Any other error code from gpfs_set_share should never happen. Print a
error message in case this is ever encountered.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_gpfs.c

index 959d7b5fe200db04243b88c4fe0dca9534d4b0b3..e31247c65cfd7885167b2cc5a76e0f755eaebdf1 100644 (file)
@@ -147,7 +147,7 @@ static int set_gpfs_sharemode(files_struct *fsp, uint32_t access_mask,
                        fsp->conn->connectpath,
                        fsp->fsp_name->base_name);
        } else {
-               DEBUG(10, ("gpfs_set_share failed: %s\n", strerror(errno)));
+               DBG_ERR("gpfs_set_share failed: %s\n", strerror(errno));
        }
 
        return result;