]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r347953:
authorallanjude <allanjude@FreeBSD.org>
Thu, 6 Jun 2019 05:09:43 +0000 (05:09 +0000)
committerallanjude <allanjude@FreeBSD.org>
Thu, 6 Jun 2019 05:09:43 +0000 (05:09 +0000)
commitcc93071a2a3c2097363a5af65504af49c705bfed
treeba4a67d1c2edf8a0927632eae40e2df7d4a85ea7
parentf9c933d62048242827ffec5dcfe492c8340e17b0
MFC r347953:

MFV/ZoL: `zfs userspace` ignored all unresolved UIDs after the first

zfsonlinux/zfs@88cfff182432e4d1c24c877f33b47ee6cf109eee

zfs_main: fix `zfs userspace` squashing unresolved entries

The `zfs userspace` squashes all entries with unresolved numeric
values into a single output entry due to the comparsion always
made by the string name which is empty in case of unresolved IDs.

Fix this by falling to a numerical comparison when either one
of string values is not found. This then compares any numerical
values after all with a name resolved.

Signed-off-by: Pavel Boldin <boldin.pavel@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reported by: clusteradm
Obtained from: ZFS-on-Linux

Approved by: re (gjb)
cddl/contrib/opensolaris/cmd/zfs/zfs_main.c