3 # User Vincent Wagelaar <vincent@ricardis.tudelft.nl>
4 # Date 1195499953 -3600
5 # Node ID e5ab49358d539ecd07fb959e0d47c1d507c24d44
6 # Parent bfe5900f95a82b60a488a75d73451e3130c8b9c5
7 Add more debug statements
9 --- a/fusesmb.c Mon Nov 19 20:14:51 2007 +0100
10 +++ b/fusesmb.c Mon Nov 19 20:19:13 2007 +0100
11 @@ -362,6 +362,7 @@ static int fusesmb_opendir(const char *p
14 char smb_path[MY_MAXPATHLEN] = "smb:/";
16 strcat(smb_path, stripworkgroup(path));
17 pthread_mutex_lock(&ctx_mutex);
18 dir = ctx->opendir(ctx, smb_path);
19 @@ -698,6 +699,7 @@ static int fusesmb_release(const char *p
20 static int fusesmb_release(const char *path, struct fuse_file_info *fi)
24 pthread_mutex_lock(&rwd_ctx_mutex);
25 #ifdef HAVE_LIBSMBCLIENT_CLOSE_FN
26 rwd_ctx->close_fn(rwd_ctx, (SMBCFILE *)fi->fh);
27 @@ -723,7 +725,7 @@ static int fusesmb_mknod(const char *pat
29 if (slashcount(path) <= 3)
33 strcat(smb_path, stripworkgroup(path));
34 pthread_mutex_lock(&ctx_mutex);
35 if ((file = ctx->creat(ctx, smb_path, mode)) == NULL)
36 @@ -769,10 +771,9 @@ static int fusesmb_unlink(const char *fi
37 static int fusesmb_unlink(const char *file)
39 char smb_path[MY_MAXPATHLEN] = "smb:/";
42 if (slashcount(file) <= 3)
45 strcat(smb_path, stripworkgroup(file));
46 pthread_mutex_lock(&ctx_mutex);
47 if (ctx->unlink(ctx, smb_path) < 0)
48 @@ -787,7 +788,7 @@ static int fusesmb_rmdir(const char *pat
49 static int fusesmb_rmdir(const char *path)
51 char smb_path[MY_MAXPATHLEN] = "smb:/";
54 if (slashcount(path) <= 3)
57 @@ -806,7 +807,7 @@ static int fusesmb_mkdir(const char *pat
58 static int fusesmb_mkdir(const char *path, mode_t mode)
60 char smb_path[MY_MAXPATHLEN] = "smb:/";
63 if (slashcount(path) <= 3)
66 @@ -866,6 +867,7 @@ static int fusesmb_utime(const char *pat
68 static int fusesmb_chmod(const char *path, mode_t mode)
71 if (slashcount(path) <= 3)
74 @@ -943,7 +945,7 @@ static int fusesmb_rename(const char *pa
76 char smb_path[MY_MAXPATHLEN] = "smb:/",
77 new_smb_path[MY_MAXPATHLEN] = "smb:/";
79 + debug("from: %s, to: %s", path, new_path);
80 if (slashcount(path) <= 3 || slashcount(new_path) <= 3)