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.web09.3759.1608154611875723771 for ; Wed, 16 Dec 2020 13:36:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=C1qXrGy1; 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=1608154611; 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=unL4a481YSmvR9YvQDuMpwal25Q5KwQpDoIuPHn3TBA=; b=C1qXrGy1zq6cF/X+PbpOwra3CzarboFeoc3X9Wjj+8EFT+RaJlIVsXrgNNE4zsa6KzU1IR a9WixoB6AjZhmUtEwHCZsaZsywbOs8LXqaxF5MrcFy2LeBCm4gDRZHn+3rOl3+T7zRpK76 om3yX7juYH4qb5GHkRUTe1kZL6MekAs= 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-87-_o6owpZPOzOSHNpMZ6F0pg-1; Wed, 16 Dec 2020 16:36:47 -0500 X-MC-Unique: _o6owpZPOzOSHNpMZ6F0pg-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 06C1C1015C80; Wed, 16 Dec 2020 21:36:46 +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 7F8FC10021B3; Wed, 16 Dec 2020 21:36:41 +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 12/48] OvmfPkg/VirtioFsDxe: implement the wrapper function for FUSE_FORGET Date: Wed, 16 Dec 2020 22:10:49 +0100 Message-Id: <20201216211125.19496-13-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 QWRkIHRoZSBWaXJ0aW9Gc0Z1c2VGb3JnZXQoKSBmdW5jdGlvbiwgZm9yIHNlbmRpbmcgdGhlIEZV U0VfRk9SR0VUIGNvbW1hbmQKdG8gdGhlIFZpcnRpbyBGaWxlc3lzdGVtIGRldmljZS4KClRoaXMg aXMgYW4gdW51c3VhbCBjb21tYW5kIGluIHRoYXQgaXQgZG9lc24ndCBnZW5lcmF0ZSBhbnkgcmVz cG9uc2UgZnJvbQp0aGUgRlVTRSBzZXJ2ZXIuCgpDYzogQXJkIEJpZXNoZXV2ZWwgPGFyZC5iaWVz aGV1dmVsQGFybS5jb20+CkNjOiBKb3JkYW4gSnVzdGVuIDxqb3JkYW4ubC5qdXN0ZW5AaW50ZWwu Y29tPgpDYzogUGhpbGlwcGUgTWF0aGlldS1EYXVkw6kgPHBoaWxtZEByZWRoYXQuY29tPgpSZWY6 IGh0dHBzOi8vYnVnemlsbGEudGlhbm9jb3JlLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzA5NwpTaWdu ZWQtb2ZmLWJ5OiBMYXN6bG8gRXJzZWsgPGxlcn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