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.web12.4736.1608157393751484524 for ; Wed, 16 Dec 2020 14:23:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FMj59ga9; 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=1608157392; 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=bZ31LekHhd9AxleRgl/oZg5LPI4p0QeVOdsn1+nVF30=; b=FMj59ga9ow3W/kSe+zVGj4lWS+Jl+U3krjsAuqsI71il2v5W/NTSpTs6wN66ymejDGUUgx m7lOFrcQNDCsE9dE2I+QG6tcMJVCEpr0CwTrKb+qBXCuWA98GMT8V+1axohDydv3TD3y/J QjYUpCq7FOKfvurFosd1Q24K/uPtlps= 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-16-Glt2OX7WMQSDiIo9kQ7bzQ-1; Wed, 16 Dec 2020 17:23:10 -0500 X-MC-Unique: Glt2OX7WMQSDiIo9kQ7bzQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CCB43107ACE6; Wed, 16 Dec 2020 22:23:09 +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 2666A5D9C0; Wed, 16 Dec 2020 22:23:04 +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 34/48] OvmfPkg/VirtioFsDxe: convert FUSE dirent filename to EFI_FILE_INFO Date: Wed, 16 Dec 2020 22:11:11 +0100 Message-Id: <20201216211125.19496-35-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.14 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 SW50cm9kdWNlIHRoZSBWaXJ0aW9Gc0Z1c2VEaXJlbnRQbHVzVG9FZmlGaWxlSW5mbygpIGZ1bmN0 aW9uLCBmb3IKY29udmVydGluZyB0aGUgVklSVElPX0ZTX0ZVU0VfRElSRU5UUExVU19SRVNQT05T RSBmaWxlbmFtZSBieXRlIGFycmF5IHRvCkVGSV9GSUxFX0lORk8uCgpUaGlzIG5ldyBmdW5jdGlv biB1cGRhdGVzIHRob3NlIEVGSV9GSUxFX0lORk8gZmllbGRzIChTaXplLCBGaWxlTmFtZSkgdGhh dAp0aGUgZWFybGllciBoZWxwZXIgZnVuY3Rpb24gVmlydGlvRnNGdXNlQXR0clRvRWZpRmlsZUlu Zm8oKSBkb2VzIG5vdCBzZXQuCgpCb3RoIGZ1bmN0aW9ucyB0b2dldGhlciB3aWxsIGJlIGFibGUg dG8gZmlsbCBpbiBFRklfRklMRV9JTkZPIGNvbXBsZXRlbHksCmZyb20gRlVTRV9SRUFERElSUExV Uy4KCkNjOiBBcmQgQmllc2hldXZlbCA8YXJkLmJpZXNoZXV2ZWxAYXJtLmNv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cmV0dXJuIEVGSV9VTlNVUFBPUlRFRDsNCiAg IH0NCiANCiAgIHJldHVybiBFRklfU1VDQ0VTUzsNCiB9DQorDQorLyoqDQorICBDb252ZXJ0IGEg VklSVElPX0ZTX0ZVU0VfRElSRU5UUExVU19SRVNQT05TRSBmaWxlbmFtZSB0byBhbiBFRklfRklM RV9JTkZPDQorICBmaWxlbmFtZS4NCisNCisgIEBwYXJhbVtpbl0gRnVzZURpcmVudCAgICBUaGUg VklSVElPX0ZTX0ZVU0VfRElSRU5UUExVU19SRVNQT05TRSBvYmplY3QgdG8NCisgICAgICAgICAg ICAgICAgICAgICAgICAgICBjb252ZXJ0IHRoZSBmaWxlbmFtZSBieXRlIGFycmF5IGZyb20uIFRo ZSBjYWxsZXIgaXMNCisgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNwb25zaWJsZSBmb3Ig ZW5zdXJpbmcgdGhhdCBGdXNlRGlyZW50LT5OYW1lbGVuDQorICAgICAgICAgICAgICAgICAgICAg ICAgICAgZGVzY3JpYmUgdmFsaWQgc3RvcmFnZS4NCisNCisgIEBwYXJhbVtpbixvdXRdIEZpbGVJ bmZvICBUaGUgRUZJX0ZJTEVfSU5GTyBzdHJ1Y3R1cmUgdG8gbW9kaWZ5LiBPbiBpbnB1dCwgdGhl DQorICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGVyIGlzIHJlc3BvbnNpYmxlIGZvciBz ZXR0aW5nIEZpbGVJbmZvLT5TaXplDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgYWNjb3Jk aW5nIHRvIHRoZSBhbGxvY2F0ZWQgc2l6ZS4gT24gc3VjY2Vzc2Z1bA0KKyAgICAgICAgICAgICAg ICAgICAgICAgICAgIHJldHVybiwgRmlsZUluZm8tPlNpemUgaXMgcmVkdWNlZCB0byByZWZsZWN0 IHRoZQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGVuYW1lIGNvbnZlcnRlZCBpbnRv IEZpbGVJbmZvLT5GaWxlTmFtZS4NCisgICAgICAgICAgICAgICAgICAgICAgICAgICBGaWxlSW5m by0+RmlsZU5hbWUgaXMgc2V0IGZyb20gdGhlIGZpbGVuYW1lIGJ5dGUNCisgICAgICAgICAgICAg ICAgICAgICAgICAgICBhcnJheSB0aGF0IGRpcmVjdGx5IGZvbGxvd3MgdGhlIEZ1c2VEaXJlbnQg aGVhZGVyDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgb2JqZWN0LiBGaWVsZHMgb3RoZXIg dGhhbiBGaWxlSW5mby0+U2l6ZSBhbmQNCisgICAgICAgICAgICAgICAgICAgICAgICAgICBGaWxl SW5mby0+RmlsZU5hbWUgYXJlIG5vdCBtb2RpZmllZC4NCisNCisgIEByZXR2YWwgRUZJX1NVQ0NF U1MgICAgICAgICAgICBDb252ZXJzaW9uIHN1Y2Nlc3NmdWwuDQorDQorICBAcmV0dmFsIEVGSV9J TlZBTElEX1BBUkFNRVRFUiAgVklSVElPX0ZTX0ZVU0VfRElSRU5UUExVU19SRVNQT05TRV9TSVpF KCkNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm5zIHplcm8gZm9yIEZ1 c2VEaXJlbnQtPk5hbWVsZW4uDQorDQorICBAcmV0dmFsIEVGSV9CVUZGRVJfVE9PX1NNQUxMICAg T24gaW5wdXQsIEZpbGVJbmZvLT5TaXplIGRvZXMgbm90IHByb3ZpZGUNCisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBlbm91Z2ggcm9vbSBmb3IgY29udmVydGluZyB0aGUgZmlsZW5h bWUgYnl0ZQ0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFycmF5IGZyb20gRnVz ZURpcmVudC4NCisNCisgIEByZXR2YWwgRUZJX1VOU1VQUE9SVEVEICAgICAgICBUaGUgRnVzZURp cmVudCBmaWxlbmFtZSBieXRlIGFycmF5IGNvbnRhaW5zIGENCisgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBieXR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