The branch, v3-2-ctdb has been updated
       via  e407636d9bcdc88ca6e21dfd78c016302c6553f3 (commit)
      from  7f3df023d30d5a0c420c6a665263353c16948ed7 (commit)

http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-2-ctdb


- Log -----------------------------------------------------------------
commit e407636d9bcdc88ca6e21dfd78c016302c6553f3
Author: Volker Lendecke <[email protected]>
Date:   Tue Apr 28 11:16:19 2009 +0200

    Fix annoying debug messages when no snapshots are used
    
    Not being able to open the shadow copy directory is the same as having no
    shadow copy support at all. The VFS module should in this case not log with
    debug level 0 and set ENOSYS to indicate "no shadow copies used" to the 
higher
    levels.
    
    Signed-off-by: Michael Adam <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 source/modules/vfs_shadow_copy2.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/modules/vfs_shadow_copy2.c 
b/source/modules/vfs_shadow_copy2.c
index 118981d..584336c 100644
--- a/source/modules/vfs_shadow_copy2.c
+++ b/source/modules/vfs_shadow_copy2.c
@@ -540,9 +540,10 @@ static int 
shadow_copy2_get_shadow_copy2_data(vfs_handle_struct *handle,
        p = SMB_VFS_NEXT_OPENDIR(handle, snapdir, NULL, 0);
 
        if (!p) {
-               DEBUG(0,("shadow_copy2: SMB_VFS_NEXT_OPENDIR() failed for '%s' 
- %s\n", 
-                        snapdir, strerror(errno)));
+               DEBUG(2,("shadow_copy2: SMB_VFS_NEXT_OPENDIR() failed for '%s'"
+                        " - %s\n", snapdir, strerror(errno)));
                talloc_free(tmp_ctx);
+               errno = ENOSYS;
                return -1;
        }
 


-- 
SAMBA-CTDB repository

Reply via email to