mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-09-11 06:29:51 -05:00
the last block may be added by a different code path where the block counter wasn't padded, leading to trying to allocate a few Ettabytes
4 lines
161 B
JavaScript
4 lines
161 B
JavaScript
const formatCounter = counter => String(counter).padStart(8, '0')
|
|
|
|
export const formatBlockPath = (basePath, counter) => `${basePath}/${formatCounter(counter)}`
|