diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2008-10-14 14:37:48 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-10-14 14:37:48 +0000 |
commit | b7af77dc1dfb5eb91eb408a0aeaf30783b5974ab (patch) | |
tree | 32d22ec0beb32b8fd99f9ce4cd14e8dcd53ca82c /lib/fuse.c | |
parent | 78e42c17a69736ff19ae3a6a198bbd2bbee01202 (diff) | |
download | android_external_fuse-b7af77dc1dfb5eb91eb408a0aeaf30783b5974ab.tar.gz android_external_fuse-b7af77dc1dfb5eb91eb408a0aeaf30783b5974ab.tar.bz2 android_external_fuse-b7af77dc1dfb5eb91eb408a0aeaf30783b5974ab.zip |
Pass current file flags to read and write operations
Diffstat (limited to 'lib/fuse.c')
-rw-r--r-- | lib/fuse.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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); |