OSDN Git Service

fuse: reserve byteswapped init opcodes
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Sep 2019 12:36:33 +0000 (08:36 -0400)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 12 Sep 2019 12:59:41 +0000 (14:59 +0200)
commit501ae8ecae2ba5122774dee4445003505a7fd01b
treeefc4bec9cf41a6994df88f5ed0e1acbd65b35692
parent15c8e72e88e0b707ffefd524ca33f28cdb3db487
fuse: reserve byteswapped init opcodes

virtio fs tunnels fuse over a virtio channel.  One issue is two sides might
be speaking different endian-ness. To detects this, host side looks at the
opcode value in the FUSE_INIT command.  Works fine at the moment but might
fail if a future version of fuse will use such an opcode for
initialization.  Let's reserve this opcode so we remember and don't do
this.

Same for CUSE_INIT.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
include/uapi/linux/fuse.h