"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "example/passthrough_ll.c" between
fuse-3.10.3.tar.xz and fuse-3.10.4.tar.xz

About: FUSE (Filesystem in Userspace) is a simple interface for userspace programs to export a virtual filesystem to the linux kernel.

passthrough_ll.c  (fuse-3.10.3.tar.xz):passthrough_ll.c  (fuse-3.10.4.tar.xz)
skipping to change at line 174 skipping to change at line 174
fuse_log(FUSE_LOG_DEBUG, "lo_init: activating writeback\n "); fuse_log(FUSE_LOG_DEBUG, "lo_init: activating writeback\n ");
conn->want |= FUSE_CAP_WRITEBACK_CACHE; conn->want |= FUSE_CAP_WRITEBACK_CACHE;
} }
if (lo->flock && conn->capable & FUSE_CAP_FLOCK_LOCKS) { if (lo->flock && conn->capable & FUSE_CAP_FLOCK_LOCKS) {
if (lo->debug) if (lo->debug)
fuse_log(FUSE_LOG_DEBUG, "lo_init: activating flock locks \n"); fuse_log(FUSE_LOG_DEBUG, "lo_init: activating flock locks \n");
conn->want |= FUSE_CAP_FLOCK_LOCKS; conn->want |= FUSE_CAP_FLOCK_LOCKS;
} }
} }
static void lo_destroy(void *userdata)
{
struct lo_data *lo = (struct lo_data*) userdata;
while (lo->root.next != &lo->root) {
struct lo_inode* next = lo->root.next;
lo->root.next = next->next;
free(next);
}
}
static void lo_getattr(fuse_req_t req, fuse_ino_t ino, static void lo_getattr(fuse_req_t req, fuse_ino_t ino,
struct fuse_file_info *fi) struct fuse_file_info *fi)
{ {
int res; int res;
struct stat buf; struct stat buf;
struct lo_data *lo = lo_data(req); struct lo_data *lo = lo_data(req);
(void) fi; (void) fi;
res = fstatat(lo_fd(req, ino), "", &buf, AT_EMPTY_PATH | AT_SYMLINK_NOFOL LOW); res = fstatat(lo_fd(req, ino), "", &buf, AT_EMPTY_PATH | AT_SYMLINK_NOFOL LOW);
skipping to change at line 1116 skipping to change at line 1127
(void)ino; (void)ino;
res = lseek(fi->fh, off, whence); res = lseek(fi->fh, off, whence);
if (res != -1) if (res != -1)
fuse_reply_lseek(req, res); fuse_reply_lseek(req, res);
else else
fuse_reply_err(req, errno); fuse_reply_err(req, errno);
} }
static const struct fuse_lowlevel_ops lo_oper = { static const struct fuse_lowlevel_ops lo_oper = {
.init = lo_init, .init = lo_init,
.destroy = lo_destroy,
.lookup = lo_lookup, .lookup = lo_lookup,
.mkdir = lo_mkdir, .mkdir = lo_mkdir,
.mknod = lo_mknod, .mknod = lo_mknod,
.symlink = lo_symlink, .symlink = lo_symlink,
.link = lo_link, .link = lo_link,
.unlink = lo_unlink, .unlink = lo_unlink,
.rmdir = lo_rmdir, .rmdir = lo_rmdir,
.rename = lo_rename, .rename = lo_rename,
.forget = lo_forget, .forget = lo_forget,
.forget_multi = lo_forget_multi, .forget_multi = lo_forget_multi,
 End of changes. 2 change blocks. 
0 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)