[Bugs] [Bug 1377427] New: incorrect fuse dumping for WRITE

bugzilla at redhat.com bugzilla at redhat.com
Mon Sep 19 16:07:12 UTC 2016


            Bug ID: 1377427
           Summary: incorrect fuse dumping for WRITE
           Product: GlusterFS
           Version: mainline
         Component: fuse
          Assignee: bugs at gluster.org
          Reporter: csaba at redhat.com
                CC: bugs at gluster.org

Description of problem:

glusterfs fuse client can record the fuse traffic with "--dump-fuse=<file>"
The payload of incoming FUSE_WRITE requests is incorrectly recorded.

Version-Release number of selected component (if applicable):

How reproducible:


Steps to Reproduce:

1. mount a GlusterFS volume through fuse with invoking glusterfs from command
line, passing "--dump-fuse=/tmp/sample.fuse"
2. $ echo HELLO > /some/file/in/the/gluster/mount
3. umount the volume
4. get & build the parsefuse tool (https://github.com/csabahenk/parsefuse). The
contrib/fuse-include/fuse_kernel.h file from the GlusterFS source tree
(corresponding to the glusterfs binary used above) is needed for the build.
Once you have it, follow the instrcuctions in the README.
5. $ parsefuse /tmp/sample.fuse | grep WRITE

Actual results:

WRITE {Len:86 Opcode:16 Unique:8 Nodeid:140114248345388 Uid:0 Gid:0 Pid:10162
Padding:0} {Fh:140114047011132 Offset:11275787851083 Size:0 WriteFlags:0
LockOwner:0 Flags:0 Padding:0} "\x00\x00\x00\x00\x00\x00"

Expected results:

WRITE {Len:86 Opcode:16 Unique:8 Nodeid:140467912052652 Uid:0 Gid:0 Pid:15076
Padding:0} {Fh:140467979165708 Offset:0 Size:6 WriteFlags:0 LockOwner:0
Flags:32769 Padding:0} "HELLO\n"

Additional info:

The WRITE payload is dumped 40 bytes off.

You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

More information about the Bugs mailing list