OSDN Git Service

9p: xattr: Properly translate xattrcreate flags
authorKeno Fischer <keno@juliacomputing.com>
Thu, 7 Jun 2018 10:17:22 +0000 (12:17 +0200)
committerGreg Kurz <groug@kaod.org>
Thu, 7 Jun 2018 10:17:22 +0000 (12:17 +0200)
commitaca6897fba149a2a650dcdf5a5e1ae828371f4aa
tree19182be4a0de142101c0618944c1af0c5d5b99d1
parent67e87345744ac96d6c9560827ea094264c88fbff
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>
hw/9pfs/9p.c
hw/9pfs/9p.h