]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfs_main: fix `zfs userspace` squashing unresolved entries
authorPavel Boldin <boldin.pavel@gmail.com>
Sun, 27 Mar 2016 22:28:32 +0000 (01:28 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Mar 2016 19:39:21 +0000 (12:39 -0700)
commit88cfff182432e4d1c24c877f33b47ee6cf109eee
treead329613fada477c3e2a11ebe08239421b67e1fe
parent726c4a25659bfc0b3458da48a115dad67ddcb2ab
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>
Closes #4440
cmd/zfs/zfs_main.c