From 5b3e01e56b7ea46cd6b2e5a586f15bd35fa169d8 Mon Sep 17 00:00:00 2001 From: Matt Palmer Date: Fri, 4 Jul 2014 20:14:16 +1000 Subject: [PATCH] Need to double those hyphens, kids --- lib/lvm/snapshot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lvm/snapshot.rb b/lib/lvm/snapshot.rb index 6189e66..1deea42 100644 --- a/lib/lvm/snapshot.rb +++ b/lib/lvm/snapshot.rb @@ -108,6 +108,6 @@ def metadata_header end def metadata_device - "/dev/mapper/#{@vg}-#{@lv}-cow" + "/dev/mapper/#{@vg}-#{@lv.gsub('-', '--')}-cow" end end