]> git.proxmox.com Git - pve-esxi-import-tools.git/log
pve-esxi-import-tools.git
6 months agomake datastores discoverable
Wolfgang Bumiller [Tue, 19 Mar 2024 14:11:37 +0000 (15:11 +0100)]
make datastores discoverable

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agobump version to 0.2.0
Thomas Lamprecht [Tue, 12 Mar 2024 15:00:57 +0000 (16:00 +0100)]
bump version to 0.2.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoRevert "buildsys: add d/rustup_home, register force system toolchain"
Thomas Lamprecht [Tue, 12 Mar 2024 15:14:31 +0000 (16:14 +0100)]
Revert "buildsys: add d/rustup_home, register force system toolchain"

This reverts commit 826e60c5c59f05cc3a0ac033a66f16d0f46ef89a, it's
introduction of an absolute link to /usr breaks source directory
boundary, failing dpkg-source.

Devs that need to have rustup and related binaries earlier in $PATH
than the system ones can just create a system toolchain via something
like `rustup toolchain link system /usr` and be done, it's their
custom setup/environment that breaks build, so default packaging
should not have to care, at least not in a way that breaks default
build in clean environments (like sbuild).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agorename --insecure option to --skip-cert-verification
Thomas Lamprecht [Tue, 12 Mar 2024 14:59:23 +0000 (15:59 +0100)]
rename --insecure option to --skip-cert-verification

a bit more telling about what it actually does.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobuildsys: clean-up more
Thomas Lamprecht [Tue, 12 Mar 2024 15:05:00 +0000 (16:05 +0100)]
buildsys: clean-up more

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobump version to 0.1.2
Wolfgang Bumiller [Tue, 12 Mar 2024 12:46:53 +0000 (13:46 +0100)]
bump version to 0.1.2

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agoesxi-folder-fuse: add --insecure option
Wolfgang Bumiller [Tue, 12 Mar 2024 12:45:38 +0000 (13:45 +0100)]
esxi-folder-fuse: add --insecure option

to disable certificate verification, and verify certificates by
default

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agolistvms.py: add --insecure parameter, verify cert by default
Wolfgang Bumiller [Tue, 12 Mar 2024 12:29:58 +0000 (13:29 +0100)]
listvms.py: add --insecure parameter, verify cert by default

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agobump version to 0.1.1
Wolfgang Bumiller [Tue, 12 Mar 2024 08:17:12 +0000 (09:17 +0100)]
bump version to 0.1.1

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agolistvms.py: include power status in vm info
Wolfgang Bumiller [Mon, 11 Mar 2024 12:46:08 +0000 (13:46 +0100)]
listvms.py: include power status in vm info

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agolistvms.py: don't iterate through vms twice, add disk info
Wolfgang Bumiller [Mon, 11 Mar 2024 10:12:11 +0000 (11:12 +0100)]
listvms.py: don't iterate through vms twice, add disk info

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agolistvms.py: add function to query disk info for vms
Wolfgang Bumiller [Mon, 11 Mar 2024 10:11:44 +0000 (11:11 +0100)]
listvms.py: add function to query disk info for vms

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agolistvms.py: factor out datastore/path file name parsing
Wolfgang Bumiller [Mon, 11 Mar 2024 10:11:11 +0000 (11:11 +0100)]
listvms.py: factor out datastore/path file name parsing

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agobuildsys: add d/rustup_home, register force system toolchain
Wolfgang Bumiller [Mon, 11 Mar 2024 12:22:15 +0000 (13:22 +0100)]
buildsys: add d/rustup_home, register force system toolchain

and set RUSTUP_HOME in d/rules, so building also actually works when
rustup is in $PATH

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agobump version to 0.1.0
Thomas Lamprecht [Fri, 8 Mar 2024 14:17:10 +0000 (15:17 +0100)]
bump version to 0.1.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobuildsys: drop odd cargo/rustc overrides
Thomas Lamprecht [Sun, 10 Mar 2024 15:10:19 +0000 (16:10 +0100)]
buildsys: drop odd cargo/rustc overrides

those should not be required for a functioning build..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobuildsys: allow to generate packages artefacts at the top-level
Thomas Lamprecht [Sun, 10 Mar 2024 14:45:04 +0000 (15:45 +0100)]
buildsys: allow to generate packages artefacts at the top-level

Allow building packages with their output being written at the
top-level, just like basically all our other repos (that contain a
hand-full of source packages at max), and make that the default.

If one want to have a double directory hierarchy for the build they
can just call:
 make OUTPUT_DIR=build/ deb

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agopackagin: ship script and tool in arch-agnostic /usr/libexec
Thomas Lamprecht [Sun, 10 Mar 2024 14:39:55 +0000 (15:39 +0100)]
packagin: ship script and tool in arch-agnostic /usr/libexec

no need to use the architecture triple, not like we plan to support
co-installable multi-arch anyway.

Rather just use the arch-agnostic /usr/libexec dir, which the FHS
specifies for:
> Directory contains binaries for internal use only and they are not
> meant to be executed directly by users shell or scripts.

Which pretty much is what this tools are made for, in our use case
anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agod/control: avoid rust- prefix for source package name
Thomas Lamprecht [Fri, 8 Mar 2024 14:57:38 +0000 (15:57 +0100)]
d/control: avoid rust- prefix for source package name

not using debcargo so we do not need to adhere to it's quirks

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobuildsys: avoid dcmd, just use already defined variables
Thomas Lamprecht [Fri, 8 Mar 2024 14:56:06 +0000 (15:56 +0100)]
buildsys: avoid dcmd, just use already defined variables

makes it easier to copy this from a build host to an upload host by
allowing to see the full command when running `make -n upload`

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobuildsys: add convenience sbuild target
Thomas Lamprecht [Fri, 8 Mar 2024 14:54:36 +0000 (15:54 +0100)]
buildsys: add convenience sbuild target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobuildsys: track dbgsym package
Thomas Lamprecht [Fri, 8 Mar 2024 14:54:14 +0000 (15:54 +0100)]
buildsys: track dbgsym package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobuildsys: use variables for output and build directory
Thomas Lamprecht [Fri, 8 Mar 2024 14:53:11 +0000 (15:53 +0100)]
buildsys: use variables for output and build directory

the target directories are still named in a slightly confusing way,
but don't care about that for now.

If it's really a problem we could use output/ for the, well, output
directory variable.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agobuildsys: DSC has no arch
Thomas Lamprecht [Fri, 8 Mar 2024 14:51:35 +0000 (15:51 +0100)]
buildsys: DSC has no arch

it's the source package which normally is arch agnostic

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agod/source: mark as native package
Thomas Lamprecht [Fri, 8 Mar 2024 14:49:29 +0000 (15:49 +0100)]
d/source: mark as native package

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
6 months agoadd upload target
Wolfgang Bumiller [Tue, 5 Mar 2024 14:08:11 +0000 (15:08 +0100)]
add upload target

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agopackaging updates
Wolfgang Bumiller [Tue, 5 Mar 2024 13:56:58 +0000 (14:56 +0100)]
packaging updates

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agomore eof handling fixups
Wolfgang Bumiller [Thu, 29 Feb 2024 11:01:11 +0000 (12:01 +0100)]
more eof handling fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agolru rotation fixup
Wolfgang Bumiller [Mon, 26 Feb 2024 14:39:39 +0000 (15:39 +0100)]
lru rotation fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agodeal with file size changes during reading
Wolfgang Bumiller [Wed, 21 Feb 2024 14:44:12 +0000 (15:44 +0100)]
deal with file size changes during reading

We cache file sizes, but if the vmx config files change they can of
course very well also change their size, in which case we might get an
http 416 Range Not Satisfiable response. Let's consider the File
handle to be at EOF at that point.

additionally, partial reads return a `content-range` header which
includes the file's size, so use this to keep track of it

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
6 months agodrop file caches on close
Wolfgang Bumiller [Wed, 21 Feb 2024 12:54:22 +0000 (13:54 +0100)]
drop file caches on close

makes reading updated vmx files easier

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agobump d/control
Wolfgang Bumiller [Thu, 15 Feb 2024 13:02:45 +0000 (14:02 +0100)]
bump d/control

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoswitch from env_logger to syslog
Wolfgang Bumiller [Thu, 15 Feb 2024 13:02:17 +0000 (14:02 +0100)]
switch from env_logger to syslog

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoadd --ready-fd parameter
Wolfgang Bumiller [Thu, 15 Feb 2024 12:41:10 +0000 (13:41 +0100)]
add --ready-fd parameter

a simple way to signal readiness - we just close the file descriptor
when we start serving fuse requests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoadd options to drop privileges
Wolfgang Bumiller [Thu, 15 Feb 2024 12:06:30 +0000 (13:06 +0100)]
add options to drop privileges

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agolistvms.py: make connection errors less noisy
Wolfgang Bumiller [Thu, 15 Feb 2024 09:34:53 +0000 (10:34 +0100)]
listvms.py: make connection errors less noisy

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agod/control: fixup python3 deps
Wolfgang Bumiller [Thu, 15 Feb 2024 09:16:23 +0000 (10:16 +0100)]
d/control: fixup python3 deps

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agobuildsys improvements
Wolfgang Bumiller [Thu, 15 Feb 2024 09:11:20 +0000 (10:11 +0100)]
buildsys improvements

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agocreate build/rust-toolchain file when packaging
Wolfgang Bumiller [Thu, 15 Feb 2024 09:07:49 +0000 (10:07 +0100)]
create build/rust-toolchain file when packaging

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoinstall python code outside the multiarch dir
Wolfgang Bumiller [Thu, 15 Feb 2024 09:06:54 +0000 (10:06 +0100)]
install python code outside the multiarch dir

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoadd shebang to listvms.py, set mode to 0755
Wolfgang Bumiller [Thu, 15 Feb 2024 09:05:05 +0000 (10:05 +0100)]
add shebang to listvms.py, set mode to 0755

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoadd basic packaging
Wolfgang Bumiller [Wed, 14 Feb 2024 15:31:42 +0000 (16:31 +0100)]
add basic packaging

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoremove example manifest.json
Wolfgang Bumiller [Wed, 14 Feb 2024 15:35:45 +0000 (16:35 +0100)]
remove example manifest.json

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agocleanup
Wolfgang Bumiller [Wed, 14 Feb 2024 15:22:35 +0000 (16:22 +0100)]
cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agochange base-url parameter to a hostname parameter
Wolfgang Bumiller [Wed, 14 Feb 2024 15:22:00 +0000 (16:22 +0100)]
change base-url parameter to a hostname parameter

for better compatibility with the python thing

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agolsitvms.py: read password from a file instead of env var
Wolfgang Bumiller [Wed, 14 Feb 2024 15:20:57 +0000 (16:20 +0100)]
lsitvms.py: read password from a file instead of env var

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoimport listvms.py
Wolfgang Bumiller [Wed, 14 Feb 2024 15:08:25 +0000 (16:08 +0100)]
import listvms.py

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Originally-by: Hannes Laimer <h.laimer@proxmox.com>
7 months agoimprove usage message
Wolfgang Bumiller [Wed, 14 Feb 2024 15:06:12 +0000 (16:06 +0100)]
improve usage message

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoclippy fixes
Wolfgang Bumiller [Wed, 14 Feb 2024 15:05:16 +0000 (16:05 +0100)]
clippy fixes

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agodrop all the unused code
Wolfgang Bumiller [Wed, 14 Feb 2024 15:04:14 +0000 (16:04 +0100)]
drop all the unused code

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoadd --password-file parameter
Wolfgang Bumiller [Wed, 14 Feb 2024 15:04:09 +0000 (16:04 +0100)]
add --password-file parameter

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agominor cleanups
Wolfgang Bumiller [Wed, 14 Feb 2024 14:57:07 +0000 (15:57 +0100)]
minor cleanups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agodelete example Test.vmx file
Wolfgang Bumiller [Wed, 14 Feb 2024 14:56:13 +0000 (15:56 +0100)]
delete example Test.vmx file

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agorequire proxmox-fuse 0.1.6
Wolfgang Bumiller [Wed, 14 Feb 2024 11:47:25 +0000 (12:47 +0100)]
require proxmox-fuse 0.1.6

otherwise there's some UB as the bitfields were padded wrong in
rust...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoturn cache into an LRU cache
Wolfgang Bumiller [Wed, 14 Feb 2024 11:46:50 +0000 (12:46 +0100)]
turn cache into an LRU cache

so it has a useful performance

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoallow passing mount options
Wolfgang Bumiller [Wed, 14 Feb 2024 08:44:44 +0000 (09:44 +0100)]
allow passing mount options

so we can use `-o allow_root`

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoparameter cleanup
Wolfgang Bumiller [Wed, 14 Feb 2024 08:00:54 +0000 (09:00 +0100)]
parameter cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agodoc comments
Wolfgang Bumiller [Tue, 13 Feb 2024 13:53:33 +0000 (14:53 +0100)]
doc comments

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agodefault to 32*8M cache
Wolfgang Bumiller [Tue, 13 Feb 2024 13:47:22 +0000 (14:47 +0100)]
default to 32*8M cache

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agouse proxmox-fuse 0.1.5
Wolfgang Bumiller [Tue, 13 Feb 2024 13:47:14 +0000 (14:47 +0100)]
use proxmox-fuse 0.1.5

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agodc parameter is dcPath, not dcName
Wolfgang Bumiller [Tue, 13 Feb 2024 11:13:45 +0000 (12:13 +0100)]
dc parameter is dcPath, not dcName

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoupdate manifest format
Wolfgang Bumiller [Tue, 13 Feb 2024 10:58:44 +0000 (11:58 +0100)]
update manifest format

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agomore file discovery fixups
Wolfgang Bumiller [Tue, 13 Feb 2024 10:44:12 +0000 (11:44 +0100)]
more file discovery fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agofixup some messaging
Wolfgang Bumiller [Tue, 13 Feb 2024 10:36:13 +0000 (11:36 +0100)]
fixup some messaging

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoswitch to discovering files via a json manifest
Wolfgang Bumiller [Tue, 13 Feb 2024 10:06:29 +0000 (11:06 +0100)]
switch to discovering files via a json manifest

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agodeclare manifest file format
Wolfgang Bumiller [Tue, 13 Feb 2024 09:28:38 +0000 (10:28 +0100)]
declare manifest file format

this will be used to map paths to their datastores within a datacenter

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agooverlapping reads: deal with eof
Wolfgang Bumiller [Mon, 12 Feb 2024 13:37:30 +0000 (14:37 +0100)]
overlapping reads: deal with eof

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agocache: don't drop current block...
Wolfgang Bumiller [Mon, 12 Feb 2024 13:14:18 +0000 (14:14 +0100)]
cache: don't drop current block...

that would be quite pointless :-)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoimplement vectored reads for non-direct i/o tests
Wolfgang Bumiller [Mon, 12 Feb 2024 13:13:26 +0000 (14:13 +0100)]
implement vectored reads for non-direct i/o tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agodowngrade cache drop message to debug level
Wolfgang Bumiller [Mon, 12 Feb 2024 12:51:14 +0000 (13:51 +0100)]
downgrade cache drop message to debug level

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoargument parsing
Wolfgang Bumiller [Mon, 12 Feb 2024 12:43:43 +0000 (13:43 +0100)]
argument parsing

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agocleanup
Wolfgang Bumiller [Mon, 12 Feb 2024 12:21:08 +0000 (13:21 +0100)]
cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agohandle open/release
Wolfgang Bumiller [Mon, 12 Feb 2024 10:58:53 +0000 (11:58 +0100)]
handle open/release

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agowork on readahead caching
Wolfgang Bumiller [Mon, 12 Feb 2024 10:17:07 +0000 (11:17 +0100)]
work on readahead caching

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agosimply retry requests when rate limited
Wolfgang Bumiller [Mon, 12 Feb 2024 09:08:30 +0000 (10:08 +0100)]
simply retry requests when rate limited

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agorefactor http request creation for retries
Wolfgang Bumiller [Mon, 12 Feb 2024 09:06:28 +0000 (10:06 +0100)]
refactor http request creation for retries

Request and its Builder don't implement Clone currently, so we need to
rebuild them completely...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agookay, we do need to deal with rate limiting...
Wolfgang Bumiller [Fri, 9 Feb 2024 15:13:24 +0000 (16:13 +0100)]
okay, we do need to deal with rate limiting...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agofix dir reading, switch to readdirplus
Wolfgang Bumiller [Fri, 9 Feb 2024 15:03:28 +0000 (16:03 +0100)]
fix dir reading, switch to readdirplus

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agogeneral fs wip
Wolfgang Bumiller [Fri, 9 Feb 2024 14:53:06 +0000 (15:53 +0100)]
general fs wip

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agorestructuring
Wolfgang Bumiller [Fri, 9 Feb 2024 13:27:04 +0000 (14:27 +0100)]
restructuring

Let's have the datacenter and datastore be the first 2 directories
with the files nested under them, we then also need directory
handling, since we can create arbitrary directories on those
datastores and put vm disks anywhere.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoupdate to a more complex Test.vmx file
Wolfgang Bumiller [Fri, 9 Feb 2024 12:59:57 +0000 (13:59 +0100)]
update to a more complex Test.vmx file

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agologging
Wolfgang Bumiller [Fri, 9 Feb 2024 10:07:38 +0000 (11:07 +0100)]
logging

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agowork on file system
Wolfgang Bumiller [Fri, 9 Feb 2024 09:52:51 +0000 (10:52 +0100)]
work on file system

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agorefactoring
Wolfgang Bumiller [Fri, 9 Feb 2024 09:31:55 +0000 (10:31 +0100)]
refactoring

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoadd EsxiFile implementing AsyncRead
Wolfgang Bumiller [Fri, 9 Feb 2024 08:52:30 +0000 (09:52 +0100)]
add EsxiFile implementing AsyncRead

The file handle will be used to as "inodes" when the kernel does a
"lookup". The AsyncRead impl is so that we can use a BufReader with it
without accidentally downloading a GB-sized vmdk when scanning them
for whether they're a descriptive text or a blob.

Although we might not even need to scan them if qemu/pve don't need to
actually list the directory contents but rather just go from whatever
the vmdks contain anyway?

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoprepare fs module
Wolfgang Bumiller [Thu, 8 Feb 2024 16:07:31 +0000 (17:07 +0100)]
prepare fs module

this will parse the vmdks and collect all files to serve

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoimplement downloading by range
Wolfgang Bumiller [Thu, 8 Feb 2024 16:00:42 +0000 (17:00 +0100)]
implement downloading by range

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agovmx: use correct disk kind match group
Wolfgang Bumiller [Thu, 8 Feb 2024 15:48:16 +0000 (16:48 +0100)]
vmx: use correct disk kind match group

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoget parameters from command line
Wolfgang Bumiller [Thu, 8 Feb 2024 15:46:38 +0000 (16:46 +0100)]
get parameters from command line

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoimport Test.vmx for reference when working on config parser
Wolfgang Bumiller [Thu, 8 Feb 2024 15:20:24 +0000 (16:20 +0100)]
import Test.vmx for reference when working on config parser

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
7 months agoimport
Wolfgang Bumiller [Thu, 8 Feb 2024 13:24:10 +0000 (14:24 +0100)]
import

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>