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.web10.4480.1608156507213690620 for ; Wed, 16 Dec 2020 14:08:27 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OIB7lwgC; 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=1608156506; 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=00fXEEPFPrbA7xY89giIfVqDXsnFQ7Mss5FMQ8kNIBg=; b=OIB7lwgCUDzgwjAaNEl7vB2FH4/BfIYEl9l2ML4vqmQPaFrOfvAisDsfysHG75JV9etKqg L/9xrD6A9bLa0Vvty0/tpBCEgaWlXwqaWcrYbhrk7J3LKP7sXVtUQTNMyznt19LdNrR/KK UP4l7fqqelJddRfQjn+iArea6j3xUCE= 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-192-ufGrjuhQNPS226jPZmfBdA-1; Wed, 16 Dec 2020 17:08:24 -0500 X-MC-Unique: ufGrjuhQNPS226jPZmfBdA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 325AC10051A8; Wed, 16 Dec 2020 22:08:23 +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 44AD56F926; Wed, 16 Dec 2020 22:08:15 +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 27/48] OvmfPkg/VirtioFsDxe: erase the dir. entry in EFI_FILE_PROTOCOL.Delete() Date: Wed, 16 Dec 2020 22:11:04 +0100 Message-Id: <20201216211125.19496-28-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.11 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 QXQgdGhpcyBwb2ludCwgdGhlIGluZnJhc3RydWN0dXJlIGlzIGF2YWlsYWJsZSBmb3IgbG9va2lu ZyB1cCB0aGUgZGlyZWN0bHkKY29udGFpbmluZyBkaXJlY3Rvcnkgb2YgdGhlIGZpbGUgaW4gRUZJ X0ZJTEVfUFJPVE9DT0wuRGVsZXRlKCksIGFuZCB0bwpyZW1vdmUgdGhlIGZpbGUgaW4gdGhhdCBk aXJlY3RvcnkgYnkgbGFzdCBwYXRobmFtZSBjb21wb25lbnQuIERvIHNvLgoKVGhlICJSTSIgVUVG SSBzaGVsbCBjb21tYW5kIHdpbGwgc3RhcnQgd29ya2luZyBvbmx5IGxhdGVyIGluIHRoZSBzZXJp ZXM7CnRoZSBzaGVsbCBuZWVkcyBtb3JlIEVGSV9GSUxFX1BST1RPQ09MIG1lbWJlcnMgdG8gZnVu Y3Rpb24gYmVmb3JlIGl0IGNhbGxzCkRlbGV0ZSgpLgoKQ2M6IEFyZCBCaWVzaGV1dmVsIDxhcmQu Ymllc2hldXZlbEBhcm0uY29tPgpDYzogSm9yZGFuIEp1c3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bXBvbmVudA0KKyAgICAgICAgICAgICAgICk7DQorICAgIGlmICghRUZJ X0VSUk9SIChTdGF0dXMpKSB7DQorICAgICAgLy8NCisgICAgICAvLyBBdHRlbXB0IHRoZSBhY3R1 YWwgcmVtb3ZhbC4gUmVnYXJkbGVzcyBvZiB0aGUgb3V0Y29tZSwgUGFyZW50Tm9kZUlkDQorICAg ICAgLy8gbXVzdCBiZSBmb3Jnb3R0ZW4gcmlnaHQgYWZ0ZXIgKHVubGVzcyBpdCBzdGFuZHMgZm9y IHRoZSByb290DQorICAgICAgLy8gZGlyZWN0b3J5KS4NCisgICAgICAvLw0KKyAgICAgIFN0YXR1 cyA9IFZpcnRpb0ZzRnVzZVJlbW92ZUZpbGVPckRpciAoDQorICAgICAgICAgICAgICAgICBWaXJ0 aW9GcywNCisgICAgICAgICAgICAgICAgIFBhcmVudE5vZGVJZCwNCisgICAgICAgICAgICAgICAg IExhc3RDb21wb25lbnQsDQorICAgICAgICAgICAgICAgICBWaXJ0aW9Gc0ZpbGUtPklzRGlyZWN0 b3J5DQorICAgICAgICAgICAgICAgICApOw0KKyAgICAgIGlmIChQYXJlbnROb2RlSWQgIT0gVklS VElPX0ZTX0ZVU0VfUk9PVF9ESVJfTk9ERV9JRCkgew0KKyAgICAgICAgVmlydGlvRnNGdXNlRm9y Z2V0IChWaXJ0aW9GcywgUGFyZW50Tm9kZUlkKTsNCisgICAgICB9DQorICAgIH0NCisgICAgaWYg KEVGSV9FUlJPUiAoU3RhdHVzKSkgew0KKyAgICAgIC8vDQorICAgICAgLy8gTWFwIGFueSBmYWls dXJlIHRvIHRoZSBzcGVjLW1hbmRhdGVkIHdhcm5pbmcgY29kZS4NCisgICAgICAvLw0KKyAgICAg IFN0YXR1cyA9IEVGSV9XQVJOX0RFTEVURV9GQUlMVVJFOw0KKyAgICB9DQorICB9IGVsc2Ugew0K KyAgICBTdGF0dXMgPSBFRklfV0FSTl9ERUxFVEVfRkFJTFVSRTsNCisgIH0NCiANCiAgIC8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