What I need to do:
- To port the entire lwext4 project over to Visual Studio C/C++ (MSVC) environment, and compile it as a static library.
- To create a clr wrapper around the lwext4 static library and compiled as a .Net assembly DLL.
- To provide a .Net friendly interface for .Net Application to use.
When creating this .Net library, I would like to access not only physical Linux disk directly, but also Linux disk image file.
SharpExt4 provides two open disk APIs:
//Open physical Linux disk ExtDisk SharpExt4.ExtDisk.Open(int DiskNumber); //Open Linux disk image file ExtDisk SharpExt4.ExtDisk.Open(String imagePath);
Open Linux disk image allows developer to directly manipulate the saved Linux disk image file, e.g. Raspberry Pi OS image or Debian OS image. The saved Linux disk image must be raw format. This API doesn’t support Virtual Machine disk files (VHD, VDI, XVA, VMDK, etc).
This API also support open USB/Hard drive as physical disk by giving disk number. If you have a USB disk or hard drive formatted as ext2/3/4 file system, this API allows the developer to read/write directly.
To be continue…
Next post: https://www.nickdu.com/?p=912