From: Carlos Venegas Date: Wed, 14 Apr 2021 20:12:06 +0000 (+0000) Subject: virtiofsd: Allow use "-o xattrmap" without "-o xattr" X-Git-Tag: v6.1.0-rc0~134^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a87d29e0d7879c7284a9441de1252f458bca6c2e;p=thirdparty%2Fqemu.git 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 Message-Id: <20210414201207.3612432-2-jose.carlos.venegas.munoz@intel.com> Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Connor Kuehl --- diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough_ll.c index 6592f96f685..2c36f4ec46f 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); }