[pve-devel] [PATCH] clone vm firewall config

Dietmar Maurer dietmar at proxmox.com
Fri Aug 21 17:43:12 CEST 2015


> +use File::Copy;

I am not sure if we want to use File::Copy, because I do not know if it provides
any guarantees to copy files atomically (all or nothing)?

We already have code in PVE::Tools to do that:

my $data = PVE::Tools::file_get_contents($filename_src);
PVE::Tools::file_set_contents($filename_dst, $data);

- Dietmar




More information about the pve-devel mailing list