equal
deleted
inserted
replaced
8 #include "../lib/misc.h" |
8 #include "../lib/misc.h" |
9 |
9 |
10 /* |
10 /* |
11 * Used for lookup and link |
11 * Used for lookup and link |
12 */ |
12 */ |
13 void dbfs_entry_res (const struct evsql_result_info *res, void *arg) { |
13 void dbfs_entry_res (struct evsql_result *res, void *arg) { |
14 struct fuse_req *req = arg; |
14 struct fuse_req *req = arg; |
15 struct fuse_entry_param e; ZINIT(e); |
15 struct fuse_entry_param e; ZINIT(e); |
16 int err = 0; |
16 int err = 0; |
17 |
17 |
18 uint32_t ino; |
18 uint32_t ino; |
91 error: |
91 error: |
92 if ((err = -fuse_reply_err(req, err))) |
92 if ((err = -fuse_reply_err(req, err))) |
93 EWARNING(err, "fuse_reply_err"); |
93 EWARNING(err, "fuse_reply_err"); |
94 } |
94 } |
95 |
95 |
96 void _dbfs_readlink_res (const struct evsql_result_info *res, void *arg) { |
96 void _dbfs_readlink_res (struct evsql_result *res, void *arg) { |
97 struct fuse_req *req = arg; |
97 struct fuse_req *req = arg; |
98 int err = 0; |
98 int err = 0; |
99 |
99 |
100 uint32_t ino; |
100 uint32_t ino; |
101 const char *type, *link; |
101 const char *type, *link; |
171 |
171 |
172 } |
172 } |
173 |
173 |
174 #define SETERR(err_var, err_val, bool_val) ((err_var) = bool_val ? (err_val) : 0) |
174 #define SETERR(err_var, err_val, bool_val) ((err_var) = bool_val ? (err_val) : 0) |
175 |
175 |
176 void dbfs_unlink_res (const struct evsql_result_info *res, void *arg) { |
176 void dbfs_unlink_res (struct evsql_result *res, void *arg) { |
177 struct fuse_req *req = arg; |
177 struct fuse_req *req = arg; |
178 int err = 0; |
178 int err = 0; |
179 |
179 |
180 // check the results |
180 // check the results |
181 // XXX: reply with ENOTEMPTY if it fails due to this inode being a dir |
181 // XXX: reply with ENOTEMPTY if it fails due to this inode being a dir |