From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.groups.io with SMTP id smtpd.web09.3896.1608155240927863680 for ; Wed, 16 Dec 2020 13:47:21 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e/QMXrDg; spf=pass (domain: redhat.com, ip: 63.128.21.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608155240; 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=HWwMVJlfF5PvuRN5TtHBlTD7HEEWj8J2y/DcO0vvVG0=; b=e/QMXrDgqRv9qZbrQ7pj4v+Wdbrva9LXBgJKMAEl1uh/oiUYCELc/QNi8eZMdm48ZmAPAQ I4kokZudkLZ1Ztw98wQhDPUeiKOCbOV/vPg3qL7QIvHMjTlj511pDr/wWNd7BMYrnk6LT5 Fu01mIXUgo6ruOXpAm6bj4iVtcXPknw= 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-584-AuVTaftFO2qRTuoaTwa_pg-1; Wed, 16 Dec 2020 16:47:18 -0500 X-MC-Unique: AuVTaftFO2qRTuoaTwa_pg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5D3AC180E46D; Wed, 16 Dec 2020 21:47:17 +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 A5DAE1754A; Wed, 16 Dec 2020 21:47:12 +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 17/48] OvmfPkg/VirtioFsDxe: manage path lifecycle in OpenVolume, Close, Delete Date: Wed, 16 Dec 2020 22:10:54 +0100 Message-Id: <20201216211125.19496-18-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.16 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 QWRkIGEgY2Fub25pY2FsIHBhdGhuYW1lIGZpZWxkIHRvIFZJUlRJT19GU19GSUxFLgoKSW5pdGlh bGl6ZSB0aGUgbmV3IGZpZWxkIGluIEVGSV9TSU1QTEVfRklMRV9TWVNURU1fUFJPVE9DT0wuT3Bl blZvbHVtZSgpLgoKUmVsZWFzZSB0aGUgbmV3IGZpZWxkIGluIEVGSV9GSUxFX1BST1RPQ09MLkNs b3NlKCkgYW5kCkVGSV9GSUxFX1BST1RPQ09MLkRlbGV0ZSgpLgoKQ2M6IEFyZCBCaWVzaGV1dmVs IDxhcmQuYmllc2hldXZlbEBhcm0uY29tPgpDYzogSm9yZGFuIEp1c3RlbiA8am9yZGFuLmwuanVz dGVuQGludGVsLmNvbT4KQ2M6IFBoaWxpcHBlIE1hdGhpZXUtRGF1ZMOpIDxwaGlsbWRAcmVkaGF0 LmNvbT4KUmVmOiBodHRwczovL2J1Z3ppbGxhLnRpYW5vY29yZS5vcmcvc2hvd19idWcuY2dpP2lk PTMwOTcKU2lnbmVkLW9mZi1ieTogTGFzemxvIEVyc2Vr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