]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
640 number_to_scaled_string is duplicated in several commands
authoravg <avg@FreeBSD.org>
Thu, 26 Oct 2017 16:20:47 +0000 (16:20 +0000)
committeravg <avg@FreeBSD.org>
Thu, 26 Oct 2017 16:20:47 +0000 (16:20 +0000)
commit7c825ba657c4938e034dd760489d32a16a8a53f2
tree4996725cec99bdc04eee7f61728db685c4ee8ec1
parente8df107e613647b318c72dc21741450e4eea7854
640 number_to_scaled_string is duplicated in several commands

illumos/illumos-gate@0a0551200ecbcd4f1b17560acaeeb7b6c8b0090e
https://github.com/illumos/illumos-gate/commit/0a0551200ecbcd4f1b17560acaeeb7b6c8b0090e

https://www.illumos.org/issues/640
  du(1), df(1m), ls(1), and swap(1m) all include a copy (it appears literally
  copied) of the 'number_to_scaled_string' function in their source. This should
  be moved to a shared library and all 4 commands should use this instead.

Reviewed by: Sebastian Wiedenroth <wiedi@frubar.net>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Author: Jason King <jason.brian.king@gmail.com>
cmd/zdb/zdb.c
cmd/ztest/ztest.c
lib/libcmdutils/common/nicenum.c [new file with mode: 0644]
lib/libzfs/common/libzfs_util.c
lib/libzpool/common/sys/zfs_context.h
lib/libzpool/common/util.c