The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6947
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
From 8ebc4d2c2dc3f746716c31f370014707e54734da Mon Sep 17 00:00:00 2001 From: Thomas Parrott <thomas.parr...@canonical.com> Date: Thu, 27 Feb 2020 13:18:43 +0000 Subject: [PATCH] lxd/storage/drovers/driver/lvm/utils: Dont format block volumes with filesystem Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com> --- lxd/storage/drivers/driver_lvm_utils.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lxd/storage/drivers/driver_lvm_utils.go b/lxd/storage/drivers/driver_lvm_utils.go index ea1999c18a..9bb00730c7 100644 --- a/lxd/storage/drivers/driver_lvm_utils.go +++ b/lxd/storage/drivers/driver_lvm_utils.go @@ -381,9 +381,12 @@ func (d *lvm) createLogicalVolume(vgName, thinPoolName string, vol Volume, makeT } volDevPath := d.lvmDevPath(vgName, vol.volType, vol.contentType, vol.name) - _, err = makeFSType(volDevPath, d.volumeFilesystem(vol), nil) - if err != nil { - return errors.Wrapf(err, "Error making filesystem on LVM logical volume") + + if vol.contentType == ContentTypeFS { + _, err = makeFSType(volDevPath, d.volumeFilesystem(vol), nil) + if err != nil { + return errors.Wrapf(err, "Error making filesystem on LVM logical volume") + } } d.logger.Debug("Logical volume created", log.Ctx{"vg_name": vgName, "lv_name": lvFullName, "size": fmt.Sprintf("%db", lvSizeBytes), "fs": d.volumeFilesystem(vol)})
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel