generic notify DEBUG(0
authorStefan Metzmacher <metze@samba.org>
Tue, 30 Jun 2009 11:31:45 +0000 (13:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 Jul 2009 15:22:07 +0000 (17:22 +0200)
source3/smbd/notify.c
source3/smbd/notify_internal.c

index ded888c021bd55903788ddee781c7dc910ec4658..0f91a9a2d5599bc8d607fdb5198aede7349968ef 100644 (file)
@@ -342,6 +342,8 @@ void notify_fname(connection_struct *conn, uint32 action, uint32 filter,
        char *parent;
        const char *name;
 
+       DEBUG(0,("notify_fname: path[%s]\n", path));
+
        if (path[0] == '.' && path[1] == '/') {
                path += 2;
        }
@@ -349,11 +351,16 @@ void notify_fname(connection_struct *conn, uint32 action, uint32 filter,
                struct smb_filename *smb_fname_parent = NULL;
                NTSTATUS status;
 
+               DEBUG(0,("notify_fname: path[%s] parent[%s] name[%s]\n",
+                        path, parent, name));
+
                status = create_synthetic_smb_fname(talloc_tos(), parent, NULL,
                                                    NULL, &smb_fname_parent);
                if (!NT_STATUS_IS_OK(status)) {
                        return;
                }
+               DEBUG(0,("notify_fname: path[%s] fname[%s]\n",
+                        path, smb_fname_parent->base_name));
                if (SMB_VFS_STAT(conn, smb_fname_parent) != -1) {
                        notify_onelevel(conn->notify_ctx, action, filter,
                            SMB_VFS_FILE_ID_CREATE(conn, &smb_fname_parent->st),
@@ -368,6 +375,10 @@ void notify_fname(connection_struct *conn, uint32 action, uint32 filter,
                DEBUG(0, ("asprintf failed\n"));
                return;
        }
+
+       DEBUG(0,("notify_fname: path[%s] fullpath[%s]\n",
+                path, fullpath));
+
        notify_trigger(conn->notify_ctx, action, filter, fullpath);
        TALLOC_FREE(fullpath);
 }
index 973db7b7b1d1bca4ff0443965fda61a5977d36db..366637433d0ea86b7fc977da55f9f65e18274a63 100644 (file)
@@ -758,6 +758,8 @@ static NTSTATUS notify_send(struct notify_context *notify, struct notify_entry *
        enum ndr_err_code ndr_err;
        TALLOC_CTX *tmp_ctx;
 
+       DEBUG(0,("notify_send: path[%s] action[0x%0X]\n", path, action));
+
        ev.action = action;
        ev.path = path;
        ev.private_data = e->private_data;
@@ -790,6 +792,9 @@ void notify_onelevel(struct notify_context *notify, uint32_t action,
                return;
        }
 
+       DEBUG(0,("notify_onelevel: name[%s] action[0x%0X] filter[0x%0X]\n",
+               name, action, filter));
+
        array = talloc_zero(talloc_tos(), struct notify_entry_array);
        if (array == NULL) {
                return;