Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jul 2022 06:55:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 265184] gunion(8) create has exit code 1 on success
Message-ID:  <bug-265184-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265184

            Bug ID: 265184
           Summary: gunion(8) create has exit code 1 on success
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: pho@FreeBSD.org

Created attachment 235229
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235229&action=
=3Dedit
Reproducer

"union create" seems to return an incorrect error status for the "create"
command:

[root@mercat1 /usr/src/tools/test/stress2/misc]# ./gun.sh
+ gunion create -v /dev/md11 /dev/md10
gunion: Device md11-md10.union created with memory map size 1315888.
+ s=3D1
+ [ 1 -ne 0 ]
+ echo 'gunion create returned 1'
gunion create returned 1
+ ls -l /dev/md10 /dev/md11 /dev/md11-md10.union /dev/mdctl
crw-r-----  1 root  operator  0xac Jul 13 07:18 /dev/md10
crw-r-----  1 root  operator  0xae Jul 13 07:18 /dev/md11
crw-r-----  1 root  operator  0xb0 Jul 13 07:18 /dev/md11-md10.union
crw-------  1 root  wheel     0x10 Jul 13 07:12 /dev/mdctl
+ set -e
+ gunion commit /dev/md11-md10.union
+ gunion destroy /dev/md11-md10.union
+ set +x
[root@mercat1 /usr/src/tools/test/stress2/misc]# uname -a
FreeBSD mercat1.netperf.freebsd.org 14.0-CURRENT FreeBSD 14.0-CURRENT #0
main-n256675-becd9908beb8f: Tue Jul 12 20:45:53 CEST 2022=20=20=20=20
pho@mercat1.netperf.freebsd.org:/usr/src/sys/amd64/compile/PHO amd64
[root@mercat1 /usr/src/tools/test/stress2/misc]#=20
$

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265184-227>