[Bug 225908] sysutils/bareos-server sbin/chio-bareos broken could we import chio-changer from upstream?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 15 08:56:21 UTC 2018


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

            Bug ID: 225908
           Summary: sysutils/bareos-server sbin/chio-bareos broken could
                    we import chio-changer from upstream?
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm at FreeBSD.org
          Reporter: pcm at pogotopia.net
             Flags: maintainer-feedback?(acm at FreeBSD.org)
          Assignee: acm at FreeBSD.org

Hi,

i've tried sbin/chio-bareos with SIMULATE_BARCODE=false and it is broken:

#chio-bareos /dev/ch0 list 1 /dev/sa0 0
1 2 3 4 6 7 8

It also does not implement the listall command (needed by the webui):

#chio-bareos /dev/ch0 listall 1 /dev/sa0 0
Valid commands:

unload          Unloads a tape into the slot
                from where it was loaded.
load <slot>     Loads a tape from the slot <slot>
                (slot-base is calculated to 1 as first slot)
list            Lists full storage slots
loaded          Gives slot from where the tape was loaded.
                0 means the tape drive is empty.
slots           Gives Number of aviable slots.

Could we import freebsd/chio-changer from upstream? I've tested it and here is
the the output for the "list" and "listall" command:

# chio-changer /dev/ch0 list 1 /dev/sa0 0
1:A00411L3
2:A00412L3
3:A00413L3
4:A00414L3
6:A00416L3
7:A00417L3
8:CLN690L1
# chio-changer /dev/ch0 listall 1 /dev/sa0 0
S:1:F:A00411L3
S:2:F:A00412L3
S:3:F:A00413L3
S:4:F:A00414L3
S:5:E
S:6:F:A00416L3
S:7:F:A00417L3
S:8:F:CLN690L1
D:0:F:5:A00415L3

This output looks pretty much like the one generated by mtx-changer (see Bug
225119 - [patch] sysutils/bareos-server mtx-changer script is broken).

Also the webui isn't complaing anymore.

https://github.com/bareos/bareos/blob/master/platforms/freebsd/chio-changer

Thanks & Cheers,
Daniel

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


More information about the freebsd-ports-bugs mailing list