[pve-devel] use our own format for LXC containers

Dietmar Maurer dietmar at proxmox.com
Thu Aug 6 16:52:08 CEST 2015


>     if ($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs') {
> +           if ($size > 0) {
> +               $volid = PVE::Storage::vdisk_alloc($storage_conf, $storage,
> $vmid, 'raw',
> +                                                  "vm-$vmid-rootfs.raw",
> $size);
> +           } else {
> +               $volid = PVE::Storage::vdisk_alloc($storage_conf, $storage,
> $vmid, 'subvol',
> +                                                  "subvol-$vmid-rootfs", 0);
> +           }
> 
> 
> 
> I think this is wrong for $size == 0 ? (subvol is related to zfs right ?)

In future, I want to implement 'subvol' for normal directories (maps to
simple subdirectories).

So that we can remove those get_private_dir hacks...




More information about the pve-devel mailing list