diff options
author | Carlos Venegas | 2021-04-14 22:12:06 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2021-05-06 20:47:44 +0200 |
commit | a87d29e0d7879c7284a9441de1252f458bca6c2e (patch) | |
tree | d4c0cab15f3602a1a12421970a7465248ea1befb /tools/virtiofsd | |
parent | virtiofsd: Fix side-effect in assert() (diff) | |
download | qemu-a87d29e0d7879c7284a9441de1252f458bca6c2e.tar.gz qemu-a87d29e0d7879c7284a9441de1252f458bca6c2e.tar.xz qemu-a87d29e0d7879c7284a9441de1252f458bca6c2e.zip |
virtiofsd: Allow use "-o xattrmap" without "-o xattr"
When -o xattrmap is used, it will not work unless xattr is enabled.
This patch enables xattr when -o xattrmap is used.
Signed-off-by: Carlos Venegas <jose.carlos.venegas.munoz@intel.com>
Message-Id: <20210414201207.3612432-2-jose.carlos.venegas.munoz@intel.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Connor Kuehl <ckuehl@redhat.com>
Diffstat (limited to 'tools/virtiofsd')
-rw-r--r-- | tools/virtiofsd/passthrough_ll.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c index 6592f96f68..2c36f4ec46 100644 --- a/tools/virtiofsd/passthrough_ll.c +++ b/tools/virtiofsd/passthrough_ll.c @@ -3831,6 +3831,7 @@ int main(int argc, char *argv[]) } if (lo.xattrmap) { + lo.xattr = 1; parse_xattrmap(&lo); } |