• Home
  • Raw
  • Download

Lines Matching refs:handler

854 static int handle_lookup(struct fuse* fuse, struct fuse_handler* handler,  in handle_lookup()  argument
865 TRACE("[%d] LOOKUP %s @ %"PRIx64" (%s)\n", handler->token, name, hdr->nodeid, in handle_lookup()
880 static int handle_forget(struct fuse* fuse, struct fuse_handler* handler, in handle_forget() argument
887 TRACE("[%d] FORGET #%"PRIu64" @ %"PRIx64" (%s)\n", handler->token, req->nlookup, in handle_forget()
899 static int handle_getattr(struct fuse* fuse, struct fuse_handler* handler, in handle_getattr() argument
907 TRACE("[%d] GETATTR flags=%x fh=%"PRIx64" @ %"PRIx64" (%s)\n", handler->token, in handle_getattr()
921 static int handle_setattr(struct fuse* fuse, struct fuse_handler* handler, in handle_setattr() argument
932 TRACE("[%d] SETATTR fh=%"PRIx64" valid=%x @ %"PRIx64" (%s)\n", handler->token, in handle_setattr()
976 handler->token, path, times[0].tv_sec, times[1].tv_sec); in handle_setattr()
984 static int handle_mknod(struct fuse* fuse, struct fuse_handler* handler, in handle_mknod() argument
997 TRACE("[%d] MKNOD %s 0%o @ %"PRIx64" (%s)\n", handler->token, in handle_mknod()
1015 static int handle_mkdir(struct fuse* fuse, struct fuse_handler* handler, in handle_mkdir() argument
1028 TRACE("[%d] MKDIR %s 0%o @ %"PRIx64" (%s)\n", handler->token, in handle_mkdir()
1065 static int handle_unlink(struct fuse* fuse, struct fuse_handler* handler, in handle_unlink() argument
1077 TRACE("[%d] UNLINK %s @ %"PRIx64" (%s)\n", handler->token, in handle_unlink()
1094 static int handle_rmdir(struct fuse* fuse, struct fuse_handler* handler, in handle_rmdir() argument
1106 TRACE("[%d] RMDIR %s @ %"PRIx64" (%s)\n", handler->token, in handle_rmdir()
1123 static int handle_rename(struct fuse* fuse, struct fuse_handler* handler, in handle_rename() argument
1144 TRACE("[%d] RENAME %s->%s @ %"PRIx64" (%s) -> %"PRIx64" (%s)\n", handler->token, in handle_rename()
1181 TRACE("[%d] RENAME %s->%s\n", handler->token, old_child_path, new_child_path); in handle_rename()
1216 static int handle_open(struct fuse* fuse, struct fuse_handler* handler, in handle_open() argument
1228 TRACE("[%d] OPEN 0%o @ %"PRIx64" (%s)\n", handler->token, in handle_open()
1243 TRACE("[%d] OPEN %s\n", handler->token, path); in handle_open()
1256 static int handle_read(struct fuse* fuse, struct fuse_handler* handler, in handle_read() argument
1264 …__u8 *read_buffer = (__u8 *) ((uintptr_t)(handler->read_buffer + PAGESIZE) & ~((uintptr_t)PAGESIZE… in handle_read()
1270 TRACE("[%d] READ %p(%d) %u@%"PRIu64"\n", handler->token, in handle_read()
1283 static int handle_write(struct fuse* fuse, struct fuse_handler* handler, in handle_write() argument
1297 TRACE("[%d] WRITE %p(%d) %u@%"PRIu64"\n", handler->token, in handle_write()
1308 static int handle_statfs(struct fuse* fuse, struct fuse_handler* handler, in handle_statfs() argument
1317 TRACE("[%d] STATFS\n", handler->token); in handle_statfs()
1339 static int handle_release(struct fuse* fuse, struct fuse_handler* handler, in handle_release() argument
1344 TRACE("[%d] RELEASE %p(%d)\n", handler->token, h, h->fd); in handle_release()
1350 static int handle_fsync(struct fuse* fuse, struct fuse_handler* handler, in handle_fsync() argument
1365 TRACE("[%d] %s %p(%d) is_data_sync=%d\n", handler->token, in handle_fsync()
1375 static int handle_flush(struct fuse* fuse, struct fuse_handler* handler, in handle_flush() argument
1378 TRACE("[%d] FLUSH\n", handler->token); in handle_flush()
1382 static int handle_opendir(struct fuse* fuse, struct fuse_handler* handler, in handle_opendir() argument
1392 TRACE("[%d] OPENDIR @ %"PRIx64" (%s)\n", handler->token, in handle_opendir()
1406 TRACE("[%d] OPENDIR %s\n", handler->token, path); in handle_opendir()
1419 static int handle_readdir(struct fuse* fuse, struct fuse_handler* handler, in handle_readdir() argument
1427 TRACE("[%d] READDIR %p\n", handler->token, h); in handle_readdir()
1430 TRACE("[%d] calling rewinddir()\n", handler->token); in handle_readdir()
1448 static int handle_releasedir(struct fuse* fuse, struct fuse_handler* handler, in handle_releasedir() argument
1453 TRACE("[%d] RELEASEDIR %p\n", handler->token, h); in handle_releasedir()
1459 static int handle_init(struct fuse* fuse, struct fuse_handler* handler, in handle_init() argument
1465 handler->token, req->major, req->minor, req->max_readahead, req->flags); in handle_init()
1477 static int handle_fuse_request(struct fuse *fuse, struct fuse_handler* handler, in handle_fuse_request() argument
1483 return handle_lookup(fuse, handler, hdr, name); in handle_fuse_request()
1488 return handle_forget(fuse, handler, hdr, req); in handle_fuse_request()
1493 return handle_getattr(fuse, handler, hdr, req); in handle_fuse_request()
1498 return handle_setattr(fuse, handler, hdr, req); in handle_fuse_request()
1506 return handle_mknod(fuse, handler, hdr, req, name); in handle_fuse_request()
1512 return handle_mkdir(fuse, handler, hdr, req, name); in handle_fuse_request()
1517 return handle_unlink(fuse, handler, hdr, name); in handle_fuse_request()
1522 return handle_rmdir(fuse, handler, hdr, name); in handle_fuse_request()
1529 return handle_rename(fuse, handler, hdr, req, old_name, new_name); in handle_fuse_request()
1535 return handle_open(fuse, handler, hdr, req); in handle_fuse_request()
1540 return handle_read(fuse, handler, hdr, req); in handle_fuse_request()
1546 return handle_write(fuse, handler, hdr, req, buffer); in handle_fuse_request()
1550 return handle_statfs(fuse, handler, hdr); in handle_fuse_request()
1555 return handle_release(fuse, handler, hdr, req); in handle_fuse_request()
1561 return handle_fsync(fuse, handler, hdr, req); in handle_fuse_request()
1569 return handle_flush(fuse, handler, hdr); in handle_fuse_request()
1574 return handle_opendir(fuse, handler, hdr, req); in handle_fuse_request()
1579 return handle_readdir(fuse, handler, hdr, req); in handle_fuse_request()
1584 return handle_releasedir(fuse, handler, hdr, req); in handle_fuse_request()
1589 return handle_init(fuse, handler, hdr, req); in handle_fuse_request()
1594 handler->token, hdr->opcode, hdr->unique, hdr->nodeid); in handle_fuse_request()
1600 static void handle_fuse_requests(struct fuse_handler* handler) in handle_fuse_requests() argument
1602 struct fuse* fuse = handler->fuse; in handle_fuse_requests()
1605 handler->request_buffer, sizeof(handler->request_buffer)); in handle_fuse_requests()
1608 ERROR("[%d] handle_fuse_requests: errno=%d\n", handler->token, errno); in handle_fuse_requests()
1614 ERROR("[%d] request too short: len=%zu\n", handler->token, (size_t)len); in handle_fuse_requests()
1618 const struct fuse_in_header *hdr = (void*)handler->request_buffer; in handle_fuse_requests()
1621 handler->token, (size_t)len, hdr->len); in handle_fuse_requests()
1625 const void *data = handler->request_buffer + sizeof(struct fuse_in_header); in handle_fuse_requests()
1628 int res = handle_fuse_request(fuse, handler, hdr, data, data_len); in handle_fuse_requests()
1635 TRACE("[%d] ERROR %d\n", handler->token, res); in handle_fuse_requests()
1644 struct fuse_handler* handler = data; in start_handler() local
1645 handle_fuse_requests(handler); in start_handler()