All Projects → jhermsmeier → Node Vhd

jhermsmeier / Node Vhd

Licence: other
Microsoft's Virtual Hard Disk (VHD) Format

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Vhd

Debotnet
🔥🚀 Debotnet is a tiny portable tool for controlling Windows 10's many privacy-related settings and keep your personal data private.
Stars: ✭ 707 (+10000%)
Mutual labels:  microsoft
Blogifier
Blogifier is an open-source publishing platform built with .NET Core 5.0 and the latest technologies.
Stars: ✭ 794 (+11242.86%)
Mutual labels:  microsoft
Node Ntfs
Windows NT File System (NTFS) file system driver
Stars: ✭ 18 (+157.14%)
Mutual labels:  disk
Dua Cli
View disk space usage and delete unwanted data, fast.
Stars: ✭ 744 (+10528.57%)
Mutual labels:  disk
Zpan
A self-hosted cloud disk base on the cloud storage./ 一个基于云存储的网盘系统,用于自建私人网盘或企业网盘。
Stars: ✭ 765 (+10828.57%)
Mutual labels:  disk
Ruby Stats
Fetch statistics about your machine using Ruby
Stars: ✭ 5 (-28.57%)
Mutual labels:  disk
Zenith
Zenith - sort of like top or htop but with zoom-able charts, CPU, GPU, network, and disk usage
Stars: ✭ 673 (+9514.29%)
Mutual labels:  disk
Cssgithubwindows
(UserStyle) GitHub Windows Edition [MIT]
Stars: ✭ 933 (+13228.57%)
Mutual labels:  microsoft
Exchangelib
Python client for Microsoft Exchange Web Services (EWS)
Stars: ✭ 787 (+11142.86%)
Mutual labels:  microsoft
Azure Openshift
RedHat Openshift Origin cluster on Azure
Stars: ✭ 17 (+142.86%)
Mutual labels:  microsoft
Microsoft Authentication Library For Dotnet
Microsoft Authentication Library (MSAL) for .NET
Stars: ✭ 746 (+10557.14%)
Mutual labels:  microsoft
Directxtk12
The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
Stars: ✭ 765 (+10828.57%)
Mutual labels:  microsoft
Flaui
UI automation library for .Net
Stars: ✭ 892 (+12642.86%)
Mutual labels:  microsoft
Python O365
A simple python library to interact with Microsoft Graph and Office 365 API
Stars: ✭ 742 (+10500%)
Mutual labels:  microsoft
Teams For Linux
Unofficial Microsoft Teams for Linux client
Stars: ✭ 905 (+12828.57%)
Mutual labels:  microsoft
Regtweaks
Registry Tweaks for Windows.
Stars: ✭ 675 (+9542.86%)
Mutual labels:  microsoft
Cleanmywechat
自动删除 PC 端微信缓存数据,包括从所有聊天中自动下载的大量文件、视频、图片等数据内容,解放你的空间。
Stars: ✭ 816 (+11557.14%)
Mutual labels:  disk
Linux Microsoft Ie Virtual Machines
Run Internet Explorer 8/9/10/11/MS-Edge Virtual machines from Microsoft under Linux via VirtualBox.
Stars: ✭ 934 (+13242.86%)
Mutual labels:  microsoft
70 483
compartilhamos conhecimento
Stars: ✭ 24 (+242.86%)
Mutual labels:  microsoft
Azure Core Concepts Book
A curated guide to get going fast on the Azure platform. Links, best-practices, explanations and comments, I wish I had known before I started using Azure.
Stars: ✭ 17 (+142.86%)
Mutual labels:  microsoft

VHD - Virtual Hard Disk

npm npm npm downloads build status

VHD (Virtual Hard Disk) is a file format which represents a virtual hard disk drive (HDD). It may contain what is found on a physical HDD, such as disk partitions and a file system, which in turn can contain files and folders. It is typically used as the hard disk of a virtual machine. The format was created by Connectix for Connectix Virtual PC product, which was later acquired by Microsoft in 2003, for what is now known as Microsoft Virtual PC. Since June 2005, Microsoft has made the VHD Image Format Specification available to third parties under the Microsoft Open Specification Promise.

From Wikipedia's VHD article

Install via npm

$ npm install --save vhd

Index

Types

  • Fixed — The VHD image file is pre-allocated on the backing store for the maximum size requested.
  • Expandable — The VHD image file uses only as much space on the backing store as needed to store the actual data the virtual disk currently contains. Note: The maximum size of a dynamic virtual disk is 2,040 GB.
  • Differencing — A parent virtual disk is used as the basis of this type, with any subsequent writes written to the virtual disk as differences to the new differencing VHD image file, and the parent VHD image file is not modified. Note: The maximum size of a dynamic virtual disk is 2,040 GB.

For more information, see MSDN

Limitations

All virtual disk types have a minimum size of 3 MB.

The VHD format has a built-in limitation of just under 2 TiB (2040 GiB) for the size of any dynamic or differencing VHDs. This is due to a sector offset table that only allows for the maximum of a 32-bit quantity - Which fits our JavaScript environment perfectly, since we can't work with 64 bit integers natively.

Usage

var VHD = require( 'vhd' )

Fixed size VHD

var fixed = new VHD.Fixed( './path/to/image.vhd' )
fixed.open( function( error ) {
  if( error ) {
    // Obviously, something went wrong...
  } else {
    // Ready to read/write to/from image
  }
})
fixed.read( offset, length, function( error, bytesRead, buffer ) {
  // ...
})
fixed.write( buffer, offset, function( error, bytesWritten, buffer ) {
  // ...
})
fixed.close( function( error ) {
  // ...
})

TODO

General

  • [ ] Write tests
  • [ ] Add integration tests (with node-disk etc.)
  • [ ] Flesh out docs
    • [ ] Generate API docs
    • [ ] Complete VHD spec doc
  • [ ] Add runnable examples
  • [ ] Add PR & Issue templates (?)

Dynamic Images

  • [ ] Impl BlockDevice API
    • [ ] Impl partitions
  • [ ] Impl cross-sector reads
  • [ ] Impl writes

Fixed Images

  • [ ] Impl BlockDevice API
    • [ ] Impl partitions
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].