[Bug 254146] gmirror does not create a mirror or silently truncates its name

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 8 22:00:09 UTC 2021


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

            Bug ID: 254146
           Summary: gmirror does not create a mirror or silently truncates
                    its name
           Product: Base System
           Version: 13.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: rashey at superbox.pl

Issue 1: If a specified providers' names are too long to hardcode in metadata,
gmirror does not create a mirror and does not return an error.

# gmirror label -h -b prefer data1
/dev/gpt/a12345678901234567890123456789012345
/dev/gpt/b12345678901234567890123456789012345
# echo $?
0
# gmirror list data1
gmirror: Class 'MIRROR' does not have an instance named 'data1'.

Issue 2: If a specified mirror name is too long, gmirror silently truncates it
and does not return an error.

# gmirror label -h -b prefer m12345678901234567890 /dev/gpt/a1234567890
/dev/gpt/b1234567890
# echo $?
0
# gmirror status -s
mirror/m12345678901234  COMPLETE  gpt/a1234567890 (ACTIVE)
mirror/m12345678901234  COMPLETE  gpt/b1234567890 (ACTIVE)

In my case the maximum possible length for the provider name is 11 characters
and for the mirror name is 15 characters.

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


More information about the freebsd-bugs mailing list