w->mt = mt;
w->ch = NULL;
- if (mt->se->f->clone_fd) {
+ if (mt->se->clone_fd) {
w->ch = fuse_clone_chan(mt);
if(!w->ch) {
/* Don't attempt this again */
fprintf(stderr, "fuse: trying to continue "
"without -o clone_fd.\n");
- mt->se->f->clone_fd = 0;
+ mt->se->clone_fd = 0;
}
}
if (req == NULL) {
fprintf(stderr, "fuse: failed to allocate request\n");
} else {
- req->se = se->f;
req->se = se;
req->ctr = 1;
list_init_req(req);
struct iovec *iov, int count)
{
struct fuse_out_header *out = iov[0].iov_base;
- struct fuse_session *f = se->f;
+ struct fuse_session *f = se;
out->len = iov_length(iov, count);
if (f->debug) {
size_t len = fuse_buf_size(buf);
struct fuse_out_header *out = iov[0].iov_base;
struct fuse_ll_pipe *llp;
- struct fuse_session *f = se->f;
+ struct fuse_session *f = se;
int splice_flags;
size_t pipesize;
size_t total_fd_size;
{
struct fuse_out_header out;
- if (!se->f->got_init)
+ if (!se->got_init)
return -ENOTCONN;
out.unique = 0;
if (!se)
return -EINVAL;
- f = se->f;
+ f = se;
if (!f)
return -ENODEV;
if (!se)
return -EINVAL;
- f = se->f;
+ f = se;
if (!f)
return -ENODEV;
if (!se)
return -EINVAL;
- f = se->f;
+ f = se;
if (!f)
return -ENODEV;
if (!se)
return -EINVAL;
- f = se->f;
+ f = se;
if (!f)
return -ENODEV;
if (!se)
return -EINVAL;
- f = se->f;
+ f = se;
if (!f)
return -ENODEV;
void fuse_session_process_buf_int(struct fuse_session *se,
const struct fuse_buf *buf, struct fuse_chan *ch)
{
- struct fuse_session *f = se->f;
+ struct fuse_session *f = se;
const size_t write_header_size = sizeof(struct fuse_in_header) +
sizeof(struct fuse_write_in);
struct fuse_bufvec bufv = { .buf[0] = *buf, .count = 1 };
void fuse_session_destroy(struct fuse_session *se)
{
- fuse_ll_destroy(se->f);
+ fuse_ll_destroy(se);
close(se->fd);
destroy_mount_opts(se->mo);
free(se);
int fuse_session_receive_buf_int(struct fuse_session *se, struct fuse_buf *buf,
struct fuse_chan *ch)
{
- struct fuse_session *f = se->f;
+ struct fuse_session *f = se;
int err;
ssize_t res;
#ifdef HAVE_SPLICE
goto out6;
}
memset(se, 0, sizeof(*se));
- se->f = f;
+ se = f;
se->mo = mo;
return se;