[pve-devel] [PATCH manager 1/2] close #4369: api: optionally only suggest unique IDs
DERUMIER, Alexandre
alexandre.derumier at groupe-cyllene.com
Sun Sep 29 15:47:31 CEST 2024
Hi,
I'm very interested by this patch series too.
My 2 cents:
Couldn't we simply move the deleted vm config file
to a trash/tombstone directory ?
/etc/pve/.deleted/<vmid>.conf ?
(I could be great to be able to mass delete vms in // without having a
big lock on a file)
I'm not sure about read performance with a lof of delete vms ?
Regards,
Alexandre
-------- Message initial --------
De: Dietmar Maurer <dietmar at proxmox.com>
Répondre à: Proxmox VE development discussion <pve-
devel at lists.proxmox.com>
À: Proxmox VE development discussion <pve-devel at lists.proxmox.com>
Objet: Re: [pve-devel] [PATCH manager 1/2] close #4369: api: optionally
only suggest unique IDs
Date: 26/09/2024 17:34:20
The format of the used_vmids.list is simply, but can lead to
a very large file over time (we want to avoid large files on
/etc/pev/).
> PVE::Cluster::cfs_write_file('used_vmids.list', join("\n",
> @$vmid_list));
A future version could compress that list, by using integer ranges,
for example:
---used_vmids.list---
100-10005
10007-20000
---------------------
I guess this would be simple to implement...
_______________________________________________
pve-devel mailing list
pve-devel at lists.proxmox.com
https://antiphishing.vadesecure.com/v4?f=S084UmJ0TUJ5SGx4M2JIcAIhGX6X6z
EreV6yzjRX6e4emC-ysDzTtLPBgM9ZbyIXhW74ybnKUou-
3S_OXWnGoQ&i=QlRib2gzNE4zbnc2V0tXWXbojbkfbDhF08DP0Pbwl7A&k=txWj&r=OHc5N
2VwYkhyTWJ3YXNsN2-
dQK1UWYRKaljQfJwVQ6Ar59VbBlnwTPhyqMnvPxOp&s=ceea9f4110a5b090c1585cc8c70
3e460dc77ba643b2d94451299a18d4b7dc18d&u=https%3A%2F%2Flists.proxmox.com
%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpve-devel
More information about the pve-devel
mailing list