freebsd-nq/cddl
Allan Jude 19a9d4fa28 MFV/ZoL: zfs userspace ignored all unresolved UIDs after the first
zfsonlinux/zfs@88cfff1824

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
2019-05-18 12:27:22 +00:00
..
compat/opensolaris Honor all options of "zfs mount -o" 2017-09-05 19:28:35 +00:00
contrib/opensolaris MFV/ZoL: zfs userspace ignored all unresolved UIDs after the first 2019-05-18 12:27:22 +00:00
lib Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
sbin Do not blindly include illumos kernel headers instead of user-space. 2018-08-02 18:55:55 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
usr.bin Make dnode definition uniform on !x86 2018-08-21 03:45:09 +00:00
usr.sbin Drop -g from CFLAGS for zfsd(8). No idea why it was ever there. 2019-04-16 12:25:15 +00:00
Makefile Convert traditional ${MK_TESTS} conditional idiom for including test 2017-08-02 08:35:51 +00:00
Makefile.inc