mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-07 20:09:05 +00:00
[PATCH] fuse: bump interface version
Change interface version to 7.4. Following changes will need backward compatibility support, so store the minor version returned by userspace. Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
4633a22e7a
commit
45714d6561
@ -178,6 +178,8 @@ static void request_end(struct fuse_conn *fc, struct fuse_req *req)
|
|||||||
if (req->misc.init_in_out.major != FUSE_KERNEL_VERSION)
|
if (req->misc.init_in_out.major != FUSE_KERNEL_VERSION)
|
||||||
fc->conn_error = 1;
|
fc->conn_error = 1;
|
||||||
|
|
||||||
|
fc->minor = req->misc.init_in_out.minor;
|
||||||
|
|
||||||
/* After INIT reply is received other requests can go
|
/* After INIT reply is received other requests can go
|
||||||
out. So do (FUSE_MAX_OUTSTANDING - 1) number of
|
out. So do (FUSE_MAX_OUTSTANDING - 1) number of
|
||||||
up()s on outstanding_sem. The last up() is done in
|
up()s on outstanding_sem. The last up() is done in
|
||||||
|
@ -272,6 +272,9 @@ struct fuse_conn {
|
|||||||
/** Is create not implemented by fs? */
|
/** Is create not implemented by fs? */
|
||||||
unsigned no_create : 1;
|
unsigned no_create : 1;
|
||||||
|
|
||||||
|
/** Negotiated minor version */
|
||||||
|
unsigned minor;
|
||||||
|
|
||||||
/** Backing dev info */
|
/** Backing dev info */
|
||||||
struct backing_dev_info bdi;
|
struct backing_dev_info bdi;
|
||||||
};
|
};
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#define FUSE_KERNEL_VERSION 7
|
#define FUSE_KERNEL_VERSION 7
|
||||||
|
|
||||||
/** Minor version number of this interface */
|
/** Minor version number of this interface */
|
||||||
#define FUSE_KERNEL_MINOR_VERSION 3
|
#define FUSE_KERNEL_MINOR_VERSION 4
|
||||||
|
|
||||||
/** The node ID of the root inode */
|
/** The node ID of the root inode */
|
||||||
#define FUSE_ROOT_ID 1
|
#define FUSE_ROOT_ID 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user