]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFV/ZoL: `zfs userspace` ignored all unresolved UIDs after the first
authorallanjude <allanjude@FreeBSD.org>
Sat, 18 May 2019 12:27:22 +0000 (12:27 +0000)
committerallanjude <allanjude@FreeBSD.org>
Sat, 18 May 2019 12:27:22 +0000 (12:27 +0000)
commita32298998a2c215306183052ea5a171197eef67c
tree45d99818af5de36fa4f9544b8bd62a2e2a799b7f
parent3fc610135cbdfcef2a460d76d710575d509b9bac
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
MFC after: 3 days
cddl/contrib/opensolaris/cmd/zfs/zfs_main.c