From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Nov 23 23:40:02 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B95B71065676 for ; Mon, 23 Nov 2009 23:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 952EF8FC16 for ; Mon, 23 Nov 2009 23:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nANNe2N2059009 for ; Mon, 23 Nov 2009 23:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nANNe23X059008; Mon, 23 Nov 2009 23:40:02 GMT (envelope-from gnats) Resent-Date: Mon, 23 Nov 2009 23:40:02 GMT Resent-Message-Id: <200911232340.nANNe23X059008@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anonymous Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 53FBC1065670 for ; Mon, 23 Nov 2009 23:35:23 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id D765F8FC1E for ; Mon, 23 Nov 2009 23:35:22 +0000 (UTC) Received: by ewy26 with SMTP id 26so2633053ewy.3 for ; Mon, 23 Nov 2009 15:35:21 -0800 (PST) Received: by 10.213.100.167 with SMTP id y39mr4320748ebn.51.1259019321452; Mon, 23 Nov 2009 15:35:21 -0800 (PST) Received: from localhost (95-24-83-54.broadband.corbina.ru [95.24.83.54]) by mx.google.com with ESMTPS id 28sm1773675eyg.44.2009.11.23.15.35.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Nov 2009 15:35:20 -0800 (PST) Message-Id: <86ljhw3jd5.fsf@gmail.com> Date: Tue, 24 Nov 2009 02:35:18 +0300 From: Anonymous To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/140811: [patch] sysutils/zfs-snapshot-mgmt: don't barf on top-level dataset X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2009 23:40:02 -0000 >Number: 140811 >Category: ports >Synopsis: [patch] sysutils/zfs-snapshot-mgmt: don't barf on top-level dataset >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 23 23:40:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD 9.0-CURRENT #0 199718M: Tue Nov 23 19:34:20 UTC 2009 holo@raphael.local:/a/objdir/a/dirty_build/sys/PHOENIX amd64 >Description: >How-To-Repeat: $ zfs list -Ho name tank tank/home tank/var %% zfs-snapshot-mgmt.conf snapshot_prefix: auto- filesystems: tank: creation_rule: at_multiple: 10 offset: 0 preservation_rules: - { for_minutes: 90, at_multiple: 0, offset: 0 } - { for_minutes: 720, at_multiple: 30, offset: 0 } - { for_minutes: 10080, at_multiple: 180, offset: 120 } %% # zfs-snapshot-mgmt /usr/local/bin/zfs-snapshot-mgmt:157:in `pool': private method `chop' called for nil:NilClass (NoMethodError) from /usr/local/bin/zfs-snapshot-mgmt:186:in `initialize' from /usr/local/bin/zfs-snapshot-mgmt:186:in `map' from /usr/local/bin/zfs-snapshot-mgmt:186:in `initialize' from /usr/local/bin/zfs-snapshot-mgmt:199:in `new' from /usr/local/bin/zfs-snapshot-mgmt:199 >Fix: --- poolname_crop.diff begins here --- Index: sysutils/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt =================================================================== RCS file: sysutils/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt diff -N sysutils/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sysutils/zfs-snapshot-mgmt/files/patch-zfs-snapshot-mgmt 23 Nov 2009 23:10:51 -0000 @@ -0,0 +1,14 @@ +--- 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 --- poolname_crop.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: