[pve-devel] [PATCH 8/8] add setup_blockdev_mounts to pve-mount hook
Dietmar Maurer
dietmar at proxmox.com
Sun Aug 16 11:20:59 CEST 2015
> 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