[Bug 203115] sysutils/zfstools Divide-by-zero in zfs-auto-snapshot when no snapshots exist.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Sep 15 04:01:12 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203115

            Bug ID: 203115
           Summary: sysutils/zfstools Divide-by-zero in zfs-auto-snapshot
                    when no snapshots exist.
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: bdrewery at FreeBSD.org
          Reporter: draenan at gmail.com
          Assignee: bdrewery at FreeBSD.org
             Flags: maintainer-feedback?(bdrewery at FreeBSD.org)

When running zfs-auto-snapshot:

$ sudo /usr/local/sbin/zfs-auto-snapshot weekly 4
/usr/local/lib/ruby/site_ruby/2.1/zfstools/snapshot.rb:118:in `/': divided by 0
(ZeroDivisionError)
    from /usr/local/lib/ruby/site_ruby/2.1/zfstools/snapshot.rb:118:in
`create_many'
    from /usr/local/lib/ruby/site_ruby/2.1/zfstools.rb:152:in
`do_new_snapshots'
    from /usr/local/sbin/zfs-auto-snapshot:68:in `<main>'
$

Initially I thought that this was because I was running it on a test system,
however I also tried creating some snapshots ("zfs snapshot -r
zroot at zfs-auto-snap_weekly-2015-09-13-00h00") and "zfs-auto-snapshot weekly 4"
still failed with the above error.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list