vfs_glusterfs: Fix excessive debug output from vfs_gluster_open().
authorChristopher R. Hertel <crh@redhat.com>
Thu, 29 Aug 2013 21:58:16 +0000 (16:58 -0500)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 30 Aug 2013 00:43:48 +0000 (02:43 +0200)
The vfs_gluster_open() function generates a debug message (at level 0)
for every failed attempt to open a pathname.  This includes cases in
which attempts are made to open a directory as a file (those attempts
are retried calling vfs_gluster_opendir()).  The result is that the log
file fills with messages about failed attempts to open directories, just
because they are directories.

This latest version, of the patch completely removes logging from the
vfs_gluster_open() function.  The error code returned is handled in
upper layers, and the open function in the default VFS module does not
log any errors.

Signed-off-by: Christopher R. Hertel <crh@redhat.com>
Reviewed-by: susant palai <spalai@redhat.com>
Reviewed-by: raghavendra talur <rtalur@redhat.com>
Reviewed-by: Jose A. Rivera <jarrpa@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Aug 30 02:43:48 CEST 2013 on sn-devel-104

source3/modules/vfs_glusterfs.c

index eac1b240c3ff4d62b5e7d3fb66aecb9698521179..237236a1df9510fe22bba4b95af8712577380e30 100644 (file)
@@ -481,11 +481,8 @@ static int vfs_gluster_open(struct vfs_handle_struct *handle,
        }
 
        if (glfd == NULL) {
-               DEBUG(0, ("glfs_{open[dir],creat}(%s) failed: %s\n",
-                         smb_fname->base_name, strerror(errno)));
                return -1;
        }
-
        return glfd_fd_store(glfd);
 }