From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: insyde.com, ip: 210.71.195.45, mailfrom: tim.lewis@insyde.com) Received: from out04.hibox.biz (out04.hibox.biz [210.71.195.45]) by groups.io with SMTP; Wed, 04 Sep 2019 17:14:41 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2C+AABnUHBd/w00GKxmGgEBAQEBAgE?= =?us-ascii?q?BAQEHAgEBAQGBZwKBFIFvmkeDYoc+hBOFboIXCQEBAQEBAQEBAQgvAQGHFjk?= =?us-ascii?q?FDQILAQEFAQEBAQEGBIVYT4VZAiNZBQ0JUj8BBB4FgxOBHa81GgKFLoUFgTQ?= =?us-ascii?q?BgWKMLIlyhRYElU1DlhQHgiWUXhuNdQOKc6ZugWiBeHCDPT6QaJERAQE?= X-IronPort-AV: E=Sophos;i="5.64,468,1559491200"; d="scan'208,217";a="15386566" Received: from unknown (HELO hb3-BKT203.hibox.biz) ([172.24.52.13]) by out04.hibox.biz with ESMTP; 05 Sep 2019 08:14:38 +0800 Received: from unknown (HELO hb3-BKT101.hibox.biz) ([172.24.51.11]) by hb3-BKT203.hibox.biz with ESMTP; 05 Sep 2019 08:14:38 +0800 Received: from unknown (HELO hb3-IN04.hibox.biz) ([172.24.12.14]) by hb3-BKT101.hibox.biz with ESMTP; 05 Sep 2019 08:14:38 +0800 X-Remote-IP: 172.24.136.144 X-Remote-Host: No hostname X-SBRS: None X-MID: 29901076 X-Auth-ID: tim.lewis@insyde.com X-EnvelopeFrom: tim.lewis@insyde.com hiBox-Sender: 1 Received: from unknown (HELO DESKTOPHG9V3E8) ([172.24.136.144]) by hb3-IN04.hibox.biz with ESMTP/TLS/AES256-SHA; 05 Sep 2019 08:14:38 +0800 From: "Tim Lewis" To: Subject: Mappings and StdLib Date: Wed, 4 Sep 2019 17:14:35 -0700 Message-ID: <01d101d5637e$e80098c0$b801ca40$@insyde.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdVjfn0npKS0l3KZR0yV54NNF5AiNw== Content-Type: multipart/alternative; boundary="----=_NextPart_000_01D2_01D56344.3BA2AB20" Content-Language: en-us ------=_NextPart_000_01D2_01D56344.3BA2AB20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Following up on my last e-mail, I guess I had the wrong assumption: there doesn't appear to be a way to resolve mappings within StdLib. Are there any plans here? Thanks, Tim ------=_NextPart_000_01D2_01D56344.3BA2AB20 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Following up on my last e-mail, I guess I had the = wrong assumption: there doesn’t appear to be a way to resolve = mappings within StdLib.

 

Are there = any plans here?

 

Thanks,

 

Tim

------=_NextPart_000_01D2_01D56344.3BA2AB20-- From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=hLNoMfdv; spf=pass (domain: apple.com, ip: 17.171.2.68, mailfrom: afish@apple.com) Received: from ma1-aaemail-dr-lapp02.apple.com (ma1-aaemail-dr-lapp02.apple.com [17.171.2.68]) by groups.io with SMTP; Wed, 04 Sep 2019 17:35:44 -0700 Received: from pps.filterd (ma1-aaemail-dr-lapp02.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp02.apple.com (8.16.0.27/8.16.0.27) with SMTP id x850W0U0013597; Wed, 4 Sep 2019 17:35:42 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=sender : from : content-type : mime-version : subject : date : references : to : in-reply-to : message-id; s=20180706; bh=SXHdNMS8FT6d0B1wQ8AhxtTicEA9AOjrun7d7y9Mk3A=; b=hLNoMfdv4VK5O+zerpx2Nb9AVZK3wiKo2so7uma7qudBvwSU+5T0vpJj7PZfz6ZNo+Zr Trl8AKCC/viegO8xBBTbqVXj2tyXYa5wZCbhIjbnjvaxdwEt4cyfZLjHAUuapttsgne1 I2Q+VkWYKjLMLGrsUwR4W5LYafrYrkVhYRTzsglFGgcCpnXYH7loY/dlGCVX0WDodW65 WAFkmcHHaURCCp+phJcanLwzNljQrSIpW16FNo5r2dXAyPoaqzWaWYIswBORzXV4gsKO +f80wM/N2I1LsO2OplFW7BgiJirepaQHxl+s1IuVLqYtXHcAF9ETlGheRvuG2GyH3Crc wQ== Received: from ma1-mtap-s01.corp.apple.com (ma1-mtap-s01.corp.apple.com [17.40.76.5]) by ma1-aaemail-dr-lapp02.apple.com with ESMTP id 2uqnk4gr2y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 04 Sep 2019 17:35:42 -0700 Received: from nwk-mmpp-sz11.apple.com (nwk-mmpp-sz11.apple.com [17.128.115.155]) by ma1-mtap-s01.corp.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPS id <0PXC00GPB1NG0M30@ma1-mtap-s01.corp.apple.com>; Wed, 04 Sep 2019 17:35:42 -0700 (PDT) Received: from process_milters-daemon.nwk-mmpp-sz11.apple.com by nwk-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) id <0PXC008001NHZ900@nwk-mmpp-sz11.apple.com>; Wed, 04 Sep 2019 17:35:42 -0700 (PDT) X-Va-A: X-Va-T-CD: fc4de0ab1b28b90c1989f0db93b04441 X-Va-E-CD: 3f69c98d0f6aac1ea45a962e8f5df907 X-Va-R-CD: 7b06f41ea370f1a19540e4fd5050fcd1 X-Va-CD: 0 X-Va-ID: 64ebb29b-2712-4455-82e0-9e89be855388 X-V-A: X-V-T-CD: fc4de0ab1b28b90c1989f0db93b04441 X-V-E-CD: 3f69c98d0f6aac1ea45a962e8f5df907 X-V-R-CD: 7b06f41ea370f1a19540e4fd5050fcd1 X-V-CD: 0 X-V-ID: d2bdc6d3-a208-4b54-9500-b262c368f187 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-09-04_06:,, signatures=0 Received: from [17.235.44.2] (unknown [17.235.44.2]) by nwk-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPSA id <0PXC001KB1N38IF0@nwk-mmpp-sz11.apple.com>; Wed, 04 Sep 2019 17:35:30 -0700 (PDT) Sender: afish@apple.com From: "Andrew Fish" MIME-version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [edk2-devel] Mappings and StdLib Date: Wed, 04 Sep 2019 17:35:16 -0700 References: <01d101d5637e$e80098c0$b801ca40$@insyde.com> To: devel@edk2.groups.io, tim.lewis@insyde.com In-reply-to: <01d101d5637e$e80098c0$b801ca40$@insyde.com> Message-id: X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-09-04_06:,, signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_AA16C189-BBE9-459D-A320-AC2850CCFA64" --Apple-Mail=_AA16C189-BBE9-459D-A320-AC2850CCFA64 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Tim, I don't know about the plans with the StdLib, but I do remember a long tim= e ago with the old shell there was a protocol that let you translate volume= names (mappings) into handles and device paths.=20 So you could write a simple library that has 2 styles of APIs: 1) Handle + FilePath in Shell mapping with Volume Name out 2) Shell file path with mapping Volume names in and Simple File System han= dle Out with the file path a) A device path out version of this is also useful You can make the lib just error return if the Shell protocol does not exis= t so you don't make it a requirement. The caller handles that failure as th= e current working volume/directory case.=20 Thanks, Andrew Fish > On Sep 4, 2019, at 5:14 PM, Tim Lewis wrote: >=20 > Following up on my last e-mail, I guess I had the wrong assumption: ther= e doesn=E2=80=99t appear to be a way to resolve mappings within StdLib. > > Are there any plans here? > > Thanks, > > Tim >=20 --Apple-Mail=_AA16C189-BBE9-459D-A320-AC2850CCFA64 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Tim,

I don't know about the plans with the StdLi= b, but I do remember a long time ago with the old shell there was a protoco= l that let you translate volume names (mappings) into handles and device pa= ths. 

So you= could write a simple library that has 2 styles of APIs:
1) Handle + FilePath in Shell mapping with Volume Name out
2) Shell file path with mapping Volume names in and Simple File Sys= tem handle Out with the file path
a) A device path out version o= f this is also useful

You can make the lib just error return if the Shell protocol does no= t exist so you don't make it a requirement. The caller handles that failure= as the current working volume/directory case. 
<= br class=3D"">
Thanks,

Andrew Fish

=
On Sep 4, 2019, at 5:1= 4 PM, Tim Lewis <tim.= lewis@insyde.com> wrote:

Following up on my last e-mail, = I guess I had the wrong assumption: there doesn=E2=80=99t appear to be a wa= y to resolve mappings within StdLib.
 
Are there any plans here?
 
= Thanks,
 
Tim

--Apple-Mail=_AA16C189-BBE9-459D-A320-AC2850CCFA64-- From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: insyde.com, ip: 210.71.195.42, mailfrom: tim.lewis@insyde.com) Received: from out02.hibox.biz (out02.hibox.biz [210.71.195.42]) by groups.io with SMTP; Thu, 05 Sep 2019 10:25:11 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AmAAARQXFd/ws0GKxlHAEBAQQBAQc?= =?us-ascii?q?EAQGBUwcBAQsBgRWBb4EvhCGIHIh/jn2EE4YKgXsJAQEBAQEBAQEBCCMMAQG?= =?us-ascii?q?EPwKCWTQJDgIMAQEFAQEBAQEGBIVYQwyFSgEBAgMIAhkKITgFBwINBAQBAQ4?= =?us-ascii?q?aAwIbGBUJCAIEARILBQ0EgwKBHXyOU5tvgTIaAoQaAYEUhQWBNAGBYoN/iC2?= =?us-ascii?q?EIz6EUCqCVYJYBIxQiCeBIZYYB4kZjXEbgyOKWQOKd4xPgSuHfZEIgVKCEHB?= =?us-ascii?q?QgmwJNohZiA9Tj1ABAQ?= X-IronPort-AV: E=Sophos;i="5.64,470,1559491200"; d="scan'208,217";a="16867912" Received: from unknown (HELO hb3-BKT201.hibox.biz) ([172.24.52.11]) by out02.hibox.biz with ESMTP; 06 Sep 2019 01:25:09 +0800 Received: from unknown (HELO hb3-BKT103.hibox.biz) ([172.24.51.13]) by hb3-BKT201.hibox.biz with ESMTP; 06 Sep 2019 01:25:08 +0800 Received: from unknown (HELO hb3-IN01.hibox.biz) ([172.24.12.11]) by hb3-BKT103.hibox.biz with ESMTP; 06 Sep 2019 01:25:08 +0800 X-Remote-IP: 172.24.153.226 X-Remote-Host: No hostname X-SBRS: None X-MID: 27140919 X-Auth-ID: tim.lewis@insyde.com X-EnvelopeFrom: tim.lewis@insyde.com hiBox-Sender: 1 Received: from unknown (HELO DESKTOPHG9V3E8) ([172.24.153.226]) by hb3-IN01.hibox.biz with ESMTP/TLS/AES256-SHA; 06 Sep 2019 01:25:07 +0800 From: "Tim Lewis" To: , In-Reply-To: Subject: Re: [edk2-devel] Mappings and StdLib Date: Thu, 5 Sep 2019 10:25:05 -0700 Message-ID: <03be01d5640e$dd929ab0$98b7d010$@insyde.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKas1prrejHzdPsaRkFF2PKradNuaWStlqg Content-Type: multipart/alternative; boundary="----=_NextPart_000_03BF_01D563D4.31354950" Content-Language: en-us ------=_NextPart_000_03BF_01D563D4.31354950 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Andrew =E2=80=93 =20 There is a standard call that provides this service, but I am porting over= BSD utils to the shell and they just take a straight path and call open. S= o I want open to behave the way I expect it to. IN fact, the low level code= separates out the =E2=80=9Cdrive=E2=80=9D from the path already, but the = current library doesn=E2=80=99t add in the mappings into the list that gets= created (it is used for stdin: stdout: and stderr:) The thing is that the = underlying Shell APIs do handle this case, but the mapping is stripped befo= re it gets to that layer. =20 Tim =20 From: devel@edk2.groups.io On Behalf Of Andrew Fish= via Groups.Io Sent: Wednesday, September 4, 2019 5:35 PM To: devel@edk2.groups.io; tim.lewis@insyde.com Subject: Re: [edk2-devel] Mappings and StdLib =20 Tim, =20 I don't know about the plans with the StdLib, but I do remember a long tim= e ago with the old shell there was a protocol that let you translate volume= names (mappings) into handles and device paths.=20 =20 So you could write a simple library that has 2 styles of APIs: 1) Handle + FilePath in Shell mapping with Volume Name out 2) Shell file path with mapping Volume names in and Simple File System han= dle Out with the file path a) A device path out version of this is also useful =20 You can make the lib just error return if the Shell protocol does not exis= t so you don't make it a requirement. The caller handles that failure as th= e current working volume/directory case.=20 =20 Thanks, =20 Andrew Fish On Sep 4, 2019, at 5:14 PM, Tim Lewis > wrote: =20 Following up on my last e-mail, I guess I had the wrong assumption: there = doesn=E2=80=99t appear to be a way to resolve mappings within StdLib. =20 Are there any plans here? =20 Thanks, =20 Tim =20 ------=_NextPart_000_03BF_01D563D4.31354950 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Andrew =E2=80= =93

 

There is a standard call that provides this service, but I am portin= g over BSD utils to the shell and they just take a straight path and call o= pen. So I want open to behave the way I expect it to. IN fact, the low leve= l code separates out the =E2=80=9Cdrive=E2=80=9D=C2=A0 from the path alread= y, but the current library doesn=E2=80=99t add in the mappings into the lis= t that gets created (it is used for stdin: stdout: and stderr:) The thing i= s that the underlying Shell APIs do handle this case, but the mapping is st= ripped before it gets to that layer.

 

Tim

 

From: dev= el@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Andrew F= ish via Groups.Io
Sent: Wednesday, September 4, 2019 5:35 PM
<= b>To: devel@edk2.groups.io; tim.lewis@insyde.com
Subject: Re:= [edk2-devel] Mappings and StdLib

 

Tim,

 

I do= n't know about the plans with the StdLib, but I do remember a long time ago= with the old shell there was a protocol that let you translate volume name= s (mappings) into handles and device paths. 

=

 

S= o you could write a simple library that has 2 styles of APIs:

1) Handle + FilePath in Shell mapping with= Volume Name out

2) Shell fil= e path with mapping Volume names in and Simple File System handle Out with = the file path

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 a) A device path out version of this is al= so useful

 

You can make the lib just error return if= the Shell protocol does not exist so you don't make it a requirement. The = caller handles that failure as the current working volume/directory case.&n= bsp;

 

Thanks,

 

Andrew Fish



On S= ep 4, 2019, at 5:14 PM, Tim Lewis <tim.lewis@insyde.com> wrote:

 

Following up on my= last e-mail, I guess I had the wrong assumption: there doesn=E2=80=99t app= ear to be a way to resolve mappings within StdLib.

 

= Are there any plans here?

&nb= sp;

Thanks,

 

Tim

 

------=_NextPart_000_03BF_01D563D4.31354950-- From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: insyde.com, ip: 210.71.195.43, mailfrom: tim.lewis@insyde.com) Received: from out03.hibox.biz (out03.hibox.biz [210.71.195.43]) by groups.io with SMTP; Thu, 05 Sep 2019 13:06:07 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AMAAD3aXFd/w00GKxlGwEBAQEDAQE?= =?us-ascii?q?BBwMBAQGBUwYBAQELAYEVgW+BHBOEIYgciH+OfYQThgqBewkBAQEBAQEBAQE?= =?us-ascii?q?IIwwBAYQ/AoJZNAkOAgwBAQUBAQEBAQYEhVhDDIVKAQECAwgCGQohOAUJDQQ?= =?us-ascii?q?EAQEOGgMCGxgVCQgCBAESCwUNBIMCgR18qyCBMhoChBoBgRSFBYE0AYFig3+?= =?us-ascii?q?ILYQjPoRQKoJVglgEjFCIJ4EhlhgHiRmFDIhlG4MjilkDineMT4Erh32RCIF?= =?us-ascii?q?SghBwUIJsCTaIWYgPU49MAQE?= X-IronPort-AV: E=Sophos;i="5.64,471,1559491200"; d="scan'208,217";a="23109178" Received: from unknown (HELO hb3-BKT203.hibox.biz) ([172.24.52.13]) by out03.hibox.biz with ESMTP; 06 Sep 2019 04:06:04 +0800 Received: from unknown (HELO hb3-BKT103.hibox.biz) ([172.24.51.13]) by hb3-BKT203.hibox.biz with ESMTP; 06 Sep 2019 04:06:04 +0800 Received: from unknown (HELO hb3-IN04.hibox.biz) ([172.24.12.14]) by hb3-BKT103.hibox.biz with ESMTP; 06 Sep 2019 04:06:04 +0800 X-Remote-IP: 172.24.133.53 X-Remote-Host: No hostname X-SBRS: None X-MID: 29955033 X-Auth-ID: tim.lewis@insyde.com X-EnvelopeFrom: tim.lewis@insyde.com Received: from unknown (HELO DESKTOPHG9V3E8) ([172.24.133.53]) by hb3-IN04.hibox.biz with ESMTP/TLS/AES256-SHA; 06 Sep 2019 04:06:02 +0800 From: "Tim Lewis" To: , , In-Reply-To: <15C19AC418D00FDA.11246@groups.io> Subject: Re: [edk2-devel] Mappings and StdLib Date: Thu, 5 Sep 2019 13:06:00 -0700 Message-ID: <05a701d56425$590a9150$0b1fb3f0$@insyde.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQG2Hv1Kk5ewBjI7DGySViFJd8T5zKdcDEtg Content-Type: multipart/alternative; boundary="----=_NextPart_000_05A8_01D563EA.ACAD8E10" Content-Language: en-us ------=_NextPart_000_05A8_01D563EA.ACAD8E10 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, now I found my answer. DevShell library class must be included with Std= Lib in order to correctly process shell-style input parameters. Without it,= it falls back on DevConsole =20 Thanks, Tim =20 From: devel@edk2.groups.io On Behalf Of Tim Lewis Sent: Thursday, September 5, 2019 10:25 AM To: devel@edk2.groups.io; afish@apple.com Subject: Re: [edk2-devel] Mappings and StdLib =20 Andrew =E2=80=93 =20 There is a standard call that provides this service, but I am porting over= BSD utils to the shell and they just take a straight path and call open. S= o I want open to behave the way I expect it to. IN fact, the low level code= separates out the =E2=80=9Cdrive=E2=80=9D from the path already, but the = current library doesn=E2=80=99t add in the mappings into the list that gets= created (it is used for stdin: stdout: and stderr:) The thing is that the = underlying Shell APIs do handle this case, but the mapping is stripped befo= re it gets to that layer. =20 Tim =20 From: devel@edk2.groups.io > On Behalf Of Andrew Fish via Groups.I= o Sent: Wednesday, September 4, 2019 5:35 PM To: devel@edk2.groups.io ; tim.lewis@insyde.= com =20 Subject: Re: [edk2-devel] Mappings and StdLib =20 Tim, =20 I don't know about the plans with the StdLib, but I do remember a long tim= e ago with the old shell there was a protocol that let you translate volume= names (mappings) into handles and device paths.=20 =20 So you could write a simple library that has 2 styles of APIs: 1) Handle + FilePath in Shell mapping with Volume Name out 2) Shell file path with mapping Volume names in and Simple File System han= dle Out with the file path a) A device path out version of this is also useful =20 You can make the lib just error return if the Shell protocol does not exis= t so you don't make it a requirement. The caller handles that failure as th= e current working volume/directory case.=20 =20 Thanks, =20 Andrew Fish =20 On Sep 4, 2019, at 5:14 PM, Tim Lewis > wrote: =20 Following up on my last e-mail, I guess I had the wrong assumption: there = doesn=E2=80=99t appear to be a way to resolve mappings within StdLib. =20 Are there any plans here? =20 Thanks, =20 Tim =20 ------=_NextPart_000_05A8_01D563EA.ACAD8E10 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Ok, now I found= my answer. DevShell library class must be included with StdLib in order to= correctly process shell-style input parameters. Without it, it falls back = on DevConsole

 

Thanks,

Tim

 

From: devel@edk2.groups.io <devel@edk2.groups.io> On Be= half Of Tim Lewis
Sent: Thursday, September 5, 2019 10:25 AM<= br>To: devel@edk2.groups.io; afish@apple.com
Subject: Re: = [edk2-devel] Mappings and StdLib

 

Andrew =E2=80=93<= /p>

 

There is = a standard call that provides this service, but I am porting over BSD utils= to the shell and they just take a straight path and call open. So I want o= pen to behave the way I expect it to. IN fact, the low level code separates= out the =E2=80=9Cdrive=E2=80=9D  from the path already, but the curre= nt library doesn=E2=80=99t add in the mappings into the list that gets crea= ted (it is used for stdin: stdout: and stderr:) The thing is that the under= lying Shell APIs do handle this case, but the mapping is stripped before it= gets to that layer.

 

Tim

 

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Andrew Fish= via Groups.Io
Sent: Wednesday, September 4, 2019 5:35 PM
T= o: devel@edk2.groups.io; tim.lewis@insyde.com
Subjec= t: Re: [edk2-devel] Mappings and StdLib

 

Tim,

 

I don't know about the plans with the StdLib, but I do remember a lon= g time ago with the old shell there was a protocol that let you translate v= olume names (mappings) into handles and device paths. 

<= /div>

 

So you could write a simple library that has 2 styles of APIs:

1) Handle + FilePath in Shell ma= pping with Volume Name out

2)= Shell file path with mapping Volume names in and Simple File System handle= Out with the file path

        &nb= sp;      a) A device path out version of th= is is also useful

 =

You can make the lib just error r= eturn if the Shell protocol does not exist so you don't make it a requireme= nt. The caller handles that failure as the current working volume/directory= case. 

 

Thanks,

 

Andrew= Fish

 

On Sep 4, 2019, at 5:14 PM, Tim Lewis <= tim.lewis@insyde.com> wrote:=

 

Following up on my last e-mail, I guess I had the wrong = assumption: there doesn=E2=80=99t appear to be a way to resolve mappings wi= thin StdLib.

 

Are there any plans here?

 

Thanks,

 <= o:p>

Tim

 

------=_NextPart_000_05A8_01D563EA.ACAD8E10--