summaryrefslogtreecommitdiff
path: root/filesystems/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt')
-rw-r--r--filesystems/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt32
1 files changed, 32 insertions, 0 deletions
diff --git a/filesystems/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt b/filesystems/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt
new file mode 100644
index 000000000000..382543b79b93
--- /dev/null
+++ b/filesystems/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt
@@ -0,0 +1,32 @@
+--- zfs-snapshot-mgmt~
++++ zfs-snapshot-mgmt
+@@ -154,7 +154,11 @@ class FSInfo
+ end
+
+ def pool
++ if name["/"]
+ name[/\A.*?\//].chop
++ else
++ name
++ end
+ end
+
+ private
+@@ -175,7 +179,7 @@ private
+
+ end
+
+-class Config
++class ZConfig
+ attr_reader :snapshot_prefix, :filesystems, :pools
+
+ def initialize(value)
+@@ -194,7 +198,7 @@ class Config
+
+ config_yaml = File.open(CONFIG_FILE_NAME).read(CONFIG_SIZE_MAX)
+ die "Config file too long" if config_yaml.nil?
+-config = Config.new(YAML::load(config_yaml))
++config = ZConfig.new(YAML::load(config_yaml))
+
+ now_minutes = Time.now.to_i / 60
+