diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-09-17 19:29:19 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-09-27 20:45:26 -0700 |
commit | 595a6eda0c2230a712290096d504621bf0e9bcab (patch) | |
tree | af777e6f01ac35d96f8509b5fe753641ac45790e /include | |
parent | eb61e2b18fe969002a8221cc2ad1e251474e0c94 (diff) |
fuse_lowlevel_notify_*: take struct fuse_session instead of struct fuse_chan
The only struct fuse_chan that's available to the user application is
the one that is returned by fuse_mount. However, this is also
permanently available from struct fuse_session.
A later patch will therefore remove struct fuse_chan from the
public API completely. This patch prepares for this by changing the
fuse_lowlevel_notify_* functions to take a struct fuse_session
parameter instead of a struct fuse_chan parameter.
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse_lowlevel.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index a01dbf6..4ae0b9c 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -1394,14 +1394,14 @@ int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph); /** * Notify to invalidate cache for an inode * - * @param ch the channel through which to send the invalidation + * @param se the session object * @param ino the inode number * @param off the offset in the inode where to start invalidating * or negative to invalidate attributes only * @param len the amount of cache to invalidate or 0 for all * @return zero for success, -errno for failure */ -int fuse_lowlevel_notify_inval_inode(struct fuse_chan *ch, fuse_ino_t ino, +int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino, off_t off, off_t len); /** @@ -1412,13 +1412,13 @@ int fuse_lowlevel_notify_inval_inode(struct fuse_chan *ch, fuse_ino_t ino, * don't call it with a lock held that can also be held by a filesystem * operation. * - * @param ch the channel through which to send the invalidation + * @param se the session object * @param parent inode number * @param name file name * @param namelen strlen() of file name * @return zero for success, -errno for failure */ -int fuse_lowlevel_notify_inval_entry(struct fuse_chan *ch, fuse_ino_t parent, +int fuse_lowlevel_notify_inval_entry(struct fuse_session *se, fuse_ino_t parent, const char *name, size_t namelen); /** @@ -1430,14 +1430,14 @@ int fuse_lowlevel_notify_inval_entry(struct fuse_chan *ch, fuse_ino_t parent, * don't call it with a lock held that can also be held by a filesystem * operation. * - * @param ch the channel through which to send the notification + * @param se the session object * @param parent inode number * @param child inode number * @param name file name * @param namelen strlen() of file name * @return zero for success, -errno for failure */ -int fuse_lowlevel_notify_delete(struct fuse_chan *ch, +int fuse_lowlevel_notify_delete(struct fuse_session *se, fuse_ino_t parent, fuse_ino_t child, const char *name, size_t namelen); @@ -1455,14 +1455,14 @@ int fuse_lowlevel_notify_delete(struct fuse_chan *ch, * If this function returns an error, then the store wasn't fully * completed, but it may have been partially completed. * - * @param ch the channel through which to send the invalidation + * @param se the session object * @param ino the inode number * @param offset the starting offset into the file to store to * @param bufv buffer vector * @param flags flags controlling the copy * @return zero for success, -errno for failure */ -int fuse_lowlevel_notify_store(struct fuse_chan *ch, fuse_ino_t ino, +int fuse_lowlevel_notify_store(struct fuse_session *se, fuse_ino_t ino, off_t offset, struct fuse_bufvec *bufv, enum fuse_buf_copy_flags flags); /** @@ -1483,14 +1483,14 @@ int fuse_lowlevel_notify_store(struct fuse_chan *ch, fuse_ino_t ino, * buffer. For dirty pages the write() method will be called * regardless of having been retrieved previously. * - * @param ch the channel through which to send the invalidation + * @param se the session object * @param ino the inode number * @param size the number of bytes to retrieve * @param offset the starting offset into the file to retrieve from * @param cookie user data to supply to the reply callback * @return zero for success, -errno for failure */ -int fuse_lowlevel_notify_retrieve(struct fuse_chan *ch, fuse_ino_t ino, +int fuse_lowlevel_notify_retrieve(struct fuse_session *se, fuse_ino_t ino, size_t size, off_t offset, void *cookie); |