virtiofsd: Extend size of fuse_conn_info->capable and ->want fields
authorVivek Goyal <vgoyal@redhat.com>
Tue, 8 Feb 2022 20:48:07 +0000 (15:48 -0500)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 17 Feb 2022 17:22:26 +0000 (17:22 +0000)
commit4c7c393c7baadecf44a3d3c726f99660387a3293
tree4a028886cb400e5959ca36a04258eda6f82dc8fd
parent776dc4b1650062099df3cb4f90fa01c8e73eecfa
virtiofsd: Extend size of fuse_conn_info->capable and ->want fields

->capable keeps track of what capabilities kernel supports and ->wants keep
track of what capabilities filesytem wants.

Right now these fields are 32bit in size. But now fuse has run out of
bits and capabilities can now have bit number which are higher than 31.

That means 32 bit fields are not suffcient anymore. Increase size to 64
bit so that we can add newer capabilities and still be able to use existing
code to check and set the capabilities.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Message-Id: <20220208204813.682906-5-vgoyal@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/fuse_common.h
tools/virtiofsd/fuse_lowlevel.c