Date: Mon, 08 Mar 2021 22:00:08 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254146] gmirror does not create a mirror or silently truncates its name Message-ID: <bug-254146-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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@FreeBSD.org Reporter: rashey@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.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254146-227>
