[pve-devel] [PATCH 8/8] add setup_blockdev_mounts to pve-mount hook
Alexandre DERUMIER
aderumier at odiso.com
Sun Aug 16 12:03:14 CEST 2015
Thanks,
I'll clean my patches tomorrow
----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Dimanche 16 Août 2015 11:20:59
Objet: Re: [pve-devel] [PATCH 8/8] add setup_blockdev_mounts to pve-mount hook
> Do you known how I can launch the parser for storage.cfg $raw datas ?
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use PVE::Tools;
use PVE::Storage;
use PVE::Storage::Plugin;
my $fn = "/etc/pve/storage.cfg";
my $raw = PVE::Tools::file_get_contents($fn);
my $conf = PVE::Storage::Plugin->parse_config($fn, $raw);
print Dumper($conf);
More information about the pve-devel
mailing list