fix: correct 2 typos (#9873)

* Update esxi.mjs

* Update importVdi.mjs

Correct typo

* Update importDisksfromDatastore.mjs

Correct typo

* Update CHANGELOG.unreleased.md

Updated list of changed packages
This commit is contained in:
laszlobortel
2026-05-29 15:57:51 +02:00
committed by GitHub
parent dec0cf7943
commit 16bf4400ba
4 changed files with 7 additions and 4 deletions

View File

@@ -549,7 +549,7 @@ export default class Esxi extends EventEmitter {
}
}
async spanwNbdKitProcess(vmId, diskPath, { singleLink = false, threads = 1, compression = 'fastlz' } = {}) {
async spawnNbdKitProcess(vmId, diskPath, { singleLink = false, threads = 1, compression = 'fastlz' } = {}) {
const key = `${vmId}/${diskPath}/${singleLink}`
if (!this.#nbdServers.has(key)) {
const thumbprint = await this.#getServerThumbprint()
@@ -623,7 +623,7 @@ export default class Esxi extends EventEmitter {
try {
const start = Date.now()
const nbdInfoSpawn = await this.spanwNbdKitProcess(vmId, `[${datastoreName}] ${diskPath}`, {
const nbdInfoSpawn = await this.spawnNbdKitProcess(vmId, `[${datastoreName}] ${diskPath}`, {
singleLink: true,
})

View File

@@ -5,7 +5,7 @@ export async function importVdi(vdi, vhd, xapi, sr) {
// create a fake VM
const vmRef = await importVm(
{
name_label: `[xva-disp-import]${vdi.name_label}`,
name_label: `[xva-disk-import]${vdi.name_label}`,
memory: 1024 * 1024 * 32,
nCpus: 1,
firmware: 'bios',

View File

@@ -31,4 +31,7 @@
<!--packages-start-->
- @xen-orchestra/vmware-explorer patch
- @xen-orchestra/xva patch
<!--packages-end-->

View File

@@ -16,7 +16,7 @@ export async function importStream({ esxi, dataMap, disk, vmId, format }, consum
let stream
try {
// we read the data from the full chain to ensure we don't have partial blocks ( blocks with 0 when clusters are in parent only)
const { nbdInfos } = await esxi.spanwNbdKitProcess(vmId, `[${datastoreName}] ${diskPath}`)
const { nbdInfos } = await esxi.spawnNbdKitProcess(vmId, `[${datastoreName}] ${diskPath}`)
signal?.throwIfAborted()
vmdk = new NbdDisk(nbdInfos, READ_BLOCK_SIZE, { dataMap })