From b7af77dc1dfb5eb91eb408a0aeaf30783b5974ab Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 14 Oct 2008 14:37:48 +0000 Subject: Pass current file flags to read and write operations --- lib/fuse.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/fuse.c') diff --git a/lib/fuse.c b/lib/fuse.c index 805833e..9c5dd0f 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -1230,9 +1230,11 @@ int fuse_fs_read(struct fuse_fs *fs, const char *path, char *buf, size_t size, int res; if (fs->debug) - fprintf(stderr, "read[%llu] %lu bytes from %llu\n", + fprintf(stderr, + "read[%llu] %lu bytes from %llu flags: 0x%x\n", (unsigned long long) fi->fh, - (unsigned long) size, (unsigned long long) off); + (unsigned long) size, (unsigned long long) off, + fi->flags); res = fs->op.read(path, buf, size, off, fi); @@ -1257,10 +1259,12 @@ int fuse_fs_write(struct fuse_fs *fs, const char *path, const char *buf, int res; if (fs->debug) - fprintf(stderr, "write%s[%llu] %lu bytes to %llu\n", + fprintf(stderr, + "write%s[%llu] %lu bytes to %llu flags: 0x%x\n", fi->writepage ? "page" : "", (unsigned long long) fi->fh, - (unsigned long) size, (unsigned long long) off); + (unsigned long) size, (unsigned long long) off, + fi->flags); res = fs->op.write(path, buf, size, off, fi); -- cgit v1.2.3