[SETUPLIB] Add an ARC path to (and from) NT path resolver.

The NT path resolver allows mapping between an ARC path as specified in freeldr.ini / boot.ini , to its corresponding NT path, if possible.
Currently, only the mapping direction "ARC to NT" is implemented. It will be used wherever such mappings are needed, for example when identifying
the ReactOS / Windows installations from the available freeldr.ini / boot.ini entries (for upgrading / repair purposes).

The resolver supports the usual ARC paths: multi()disk()[r|f]disk()[partition()] ; eisa()disk()[r|f]disk()[partition()] ; multi()disk()cdrom() ;
scsi()disk()[r|f]disk()[partition()] ; scsi()cdrom()fdisk() ; ramdisk(x) ; net(x) (actually reported as "unsupported" since it would map to some
path on some network), and the newly-introduced Win2k signature()disk()rdisk()[partition()].

The code is in work-in-progress status.
Some validation tests, that were used during the implementation of the resolver, have been added.

svn path=/branches/setup_improvements/; revision=74621
svn path=/branches/setup_improvements/; revision=74631
This commit is contained in:
Hermès Bélusca-Maïto 2017-05-22 01:09:35 +00:00
parent b1741a07cf
commit aa44ab1fbc
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
5 changed files with 1018 additions and 0 deletions

View file

@ -28,8 +28,10 @@ extern HANDLE ProcessHeap;
#include "errorcode.h"
#include "linklist.h"
#include "ntverrsrc.h"
// #include "arcname.h"
#include "fsutil.h"
#include "genlist.h"
#include "partlist.h"
#include "arcname.h"
/* EOF */