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.web12.4846.1608157773734583822 for ; Wed, 16 Dec 2020 14:29:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Usbo6diZ; 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=1608157772; 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=rgp2pbUB2+ITuA6hjuQyg6Snh8QLYpDU+MM00yw4l54=; b=Usbo6diZIe7yLrchcXwJSxoVhOCAf0VCydmxDJYZPsBwat7EOZ2gQNXhR5d5Tn1dptul16 SrjpOLSvtAjD8mMIK/uO64rlXKG8PGIyKk2DHtRCFZFpgbF7Y5N/q3Ju6z0jR9mGPLVB3l RXFrH1kP+Q8PQKD+pAgHlhgOUuuQbv0= 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-169-l0FHSdIFOACwD3g8UzBbEw-1; Wed, 16 Dec 2020 17:29:29 -0500 X-MC-Unique: l0FHSdIFOACwD3g8UzBbEw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E26F710054FF; Wed, 16 Dec 2020 22:29:27 +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 C09415D71B; Wed, 16 Dec 2020 22:29:22 +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 37/48] OvmfPkg/VirtioFsDxe: implement EFI_FILE_PROTOCOL.Flush() Date: Wed, 16 Dec 2020 22:11:14 +0100 Message-Id: <20201216211125.19496-38-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.79 on 10.5.11.15 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 Rm9yIGRpcmVjdG9yaWVzLCBpbXBsZW1lbnQgRUZJX0ZJTEVfUFJPVE9DT0wuRmx1c2goKSBieSBz ZW5kaW5nIHRoZQpGVVNFX0ZTWU5DRElSIGNvbW1hbmQgdG8gdGhlIFZpcnRpbyBGaWxlc3lzdGVt IGRldmljZS4KCkZvciByZWd1bGFyIGZpbGVzLCBzZW5kIEZVU0VfRkxVU0gsIGZvbGxvd2VkIGJ5 IEZVU0VfRlNZTkMuCgpDYzogQXJkIEJpZXNoZXV2ZWwgPGFyZC5iaWVzaGV1dmVsQGFybS5jb20+ CkNjOiBKb3JkYW4gSnVzdGVuIDxqb3JkYW4ubC5qdXN0ZW5AaW50ZWwuY29tPgpDYzogUGhpbGlw cGUgTWF0aGlldS1EYXVkw6kgPHBoaWxtZEByZWRoYXQuY29tPgpSZWY6IGh0dHBzOi8vYnVnemls bGEudGlhbm9jb3JlLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzA5NwpTaWduZWQtb2ZmLWJ5OiBMYXN6 bG8gRXJzZWsgPGxlcnNla0ByZWRoYXQuY29tPgotL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