From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web11.5217.1608159158748979519 for ; Wed, 16 Dec 2020 14:52:38 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QjMRsdsh; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608159158; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rtcUg39j2YOG9DTtiWwW2tKCdmEx18upMPxS9F2ob8E=; b=QjMRsdshiGkQ1JvUHwLu/Wuh0+TO2KV214wb8pVik7yLNIZy/NLA5fGBun6GlQyhXCY2NY Q5sk8fV3yI/TgOCmjAnAz9B6vxdUI5myByBmY9gUxLIyUZgby/gZF/Aw8ubFnFqmfpDe8C TPbXlxnSykcqGhAOF31gmdJmlZjo5Fw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-507-gaaCmfP_OZaP6ab-p8ixZA-1; Wed, 16 Dec 2020 17:52:34 -0500 X-MC-Unique: gaaCmfP_OZaP6ab-p8ixZA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 193AB107ACE4; Wed, 16 Dec 2020 22:52:33 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-152.ams2.redhat.com [10.36.114.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 433AD10013C0; Wed, 16 Dec 2020 22:52:28 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io, virtio-fs@redhat.com, lersek@redhat.com Cc: Ard Biesheuvel , Jordan Justen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [edk2 PATCH 48/48] OvmfPkg/VirtioFsDxe: handle attribute updates in EFI_FILE_PROTOCOL.SetInfo Date: Wed, 16 Dec 2020 22:11:25 +0100 Message-Id: <20201216211125.19496-49-lersek@redhat.com> In-Reply-To: <20201216211125.19496-1-lersek@redhat.com> References: <20201216211125.19496-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 VXNpbmcgdGhlIGZ1bmN0aW9ucyBpbnRyb2R1Y2VkIHByZXZpb3VzbHksIHdlIGNhbiBub3cgdXBk YXRlIGZpbGUKYXR0cmlidXRlcyBpbiBWaXJ0aW9Gc1NpbXBsZUZpbGVTZXRJbmZvKCkuCgpDYzog QXJkIEJpZXNoZXV2ZWwgPGFyZC5iaWVzaGV1dmVsQGFybS5jb20+CkNjOiBKb3JkYW4gSnVzdGVu IDxqb3JkYW4ubC5qdXN0ZW5AaW50ZWwuY29tPgpDYzogUGhpbGlwcGUgTWF0aGlldS1EYXVkw6kg PHBoaWxtZEByZWRoYXQuY29tPgpSZWY6IGh0dHBzOi8vYnVnemlsbGEudGlhbm9jb3JlLm9yZy9z aG93X2J1Zy5jZ2k/aWQ9MzA5NwpTaWduZWQtb2ZmLWJ5OiBMYXN6bG8gRXJzZWsgPGxlcnNla0By ZWRoYXQuY29tPgotLS0KIE92bWZQa2cvVmlydGlvRnNEeGUvU2ltcGxlRnNTZXRJbmZvLmMgfCAx MDcgKysrKysrKysrKysrKysrKysrKy0KIDEgZmls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VTRV9BVFRSSUJVVEVTX1JFU1BPTlNFIEZ1c2VBdHRyOw0KKyAgRUZJX0ZJTEVfSU5G TyAgICAgICAgICAgICAgICAgICAgICBGaWxlSW5mbzsNCisgIEJPT0xFQU4gICAgICAgICAgICAg ICAgICAgICAgICAgICAgVXBkYXRlRmlsZVNpemU7DQorICBVSU5UNjQgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIEZpbGVTaXplOw0KKyAgQk9PTEVBTiAgICAgICAgICAgICAgICAgICAgICAg ICAgICBVcGRhdGVBdGltZTsNCisgIEJPT0xFQU4gICAgICAgICAgICAgICAgICAgICAgICAgICAg VXBkYXRlTXRpbWU7DQorICBVSU5UNjQgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0aW1l Ow0KKyAgVUlOVDY0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBNdGltZTsNCisgIEJPT0xF QU4gICAgICAgICAgICAgICAgICAgICAgICAgICAgVXBkYXRlTW9kZTsNCisgIFVJTlQzMiAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgTW9kZTsNCisNCisgIFZpcnRpb0ZzID0gVmlydGlvRnNG aWxlLT5Pd25lckZzOw0KKw0KKyAgLy8NCisgIC8vIEZldGNoIHRoZSBjdXJyZW50IGF0dHJpYnV0 ZXMgZmlyc3QsIHNvIHdlIGNhbiBidWlsZCB0aGUgZGlmZmVyZW5jZSBiZXR3ZWVuDQorICAvLyB0 aGVtIGFuZCBOZXdGaWxlSW5mby4NCisgIC8vDQorICBTdGF0dXMgPSBWaXJ0aW9Gc0Z1c2VHZXRB dHRyIChWaXJ0aW9GcywgVmlydGlvRnNGaWxlLT5Ob2RlSWQsICZGdXNlQXR0cik7DQorICBpZiAo RUZJX0VSUk9SIChTdGF0dXMpKSB7DQorICAgIHJldHVybiBTdGF0dXM7DQorICB9DQorICBTdGF0 dXMgPSBWaXJ0aW9Gc0Z1c2VBdHRyVG9FZmlGaWxlSW5mbyAoJkZ1c2VBdHRyLCAmRmlsZU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