mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
9p: xattr: Properly translate xattrcreate flags
As with unlinkat, these flags come from the client and need to be translated to their host values. The protocol values happen to match linux, but that need not be true in general. Signed-off-by: Keno Fischer <keno@juliacomputing.com> Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
67e8734574
commit
aca6897fba
2 changed files with 19 additions and 2 deletions
|
@ -169,6 +169,10 @@ typedef struct V9fsConf
|
|||
char *fsdev_id;
|
||||
} V9fsConf;
|
||||
|
||||
/* 9p2000.L xattr flags (matches Linux values) */
|
||||
#define P9_XATTR_CREATE 1
|
||||
#define P9_XATTR_REPLACE 2
|
||||
|
||||
typedef struct V9fsXattr
|
||||
{
|
||||
uint64_t copied_len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue