Commit 8c0aa859 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: fix SupportsVersion

parent 882312bf
...@@ -9,5 +9,5 @@ const outputHeaderSize = 160 ...@@ -9,5 +9,5 @@ const outputHeaderSize = 160
const ( const (
_FUSE_KERNEL_VERSION = 7 _FUSE_KERNEL_VERSION = 7
_MINIMUM_MINOR_VERSION = 12 _MINIMUM_MINOR_VERSION = 12
_OUR_MINOR_VERSION = 23 _OUR_MINOR_VERSION = 28
) )
...@@ -810,7 +810,7 @@ func (ms *Server) EntryNotify(parent uint64, name string) Status { ...@@ -810,7 +810,7 @@ func (ms *Server) EntryNotify(parent uint64, name string) Status {
// SupportsVersion returns true if the kernel supports the given // SupportsVersion returns true if the kernel supports the given
// protocol version or newer. // protocol version or newer.
func (in *InitIn) SupportsVersion(maj, min uint32) bool { func (in *InitIn) SupportsVersion(maj, min uint32) bool {
return in.Major >= maj || (in.Major == maj && in.Minor >= min) return in.Major > maj || (in.Major == maj && in.Minor >= min)
} }
// SupportsNotify returns whether a certain notification type is // SupportsNotify returns whether a certain notification type is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment