mirror_zfs/lib/libzfs
LOLi e7fbeb606a Add zfs_nicebytes() to print human-readable sizes
* Add zfs_nicebytes() to print human-readable sizes

Some 'zfs', 'zpool' and 'zdb' output strings can be confusing to the
user when no units are specified. This add a new zfs_nicenum_format
"ZFS_NICENUM_BYTES" used to print bytes in their human-readable form.

Additionally, update some test cases to use machine-parsable 'zfs get'.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #2414 
Closes #3185 
Closes #3594 
Closes #6032
2017-05-02 13:43:53 -07:00
..
.gitignore Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_changelist.c OpenZFS 6931 - lib/libzfs: cleanup gcc warnings 2017-02-07 14:02:27 -08:00
libzfs_config.c OpenZFS 4521 - zfstest is trying to execute evil "zfs unmount -a" 2017-02-03 13:24:44 -08:00
libzfs_core.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_dataset.c Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
libzfs_diff.c OpenZFS 6931 - lib/libzfs: cleanup gcc warnings 2017-02-07 14:02:27 -08:00
libzfs_fru.c OpenZFS 8046 - Let calloc() do the multiplication in libzfs_fru_refresh 2017-04-09 16:07:42 -07:00
libzfs_import.c Fixed zdb -e regression for active cacheless pools 2017-04-24 10:31:45 -07:00
libzfs_iter.c OpenZFS 7990 - libzfs: snapspec_cb() does not need to call zfs_strdup() 2017-03-28 17:22:46 -07:00
libzfs_mount.c OpenZFS 6931 - lib/libzfs: cleanup gcc warnings 2017-02-07 14:02:27 -08:00
libzfs_pool.c Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
libzfs_sendrecv.c Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
libzfs_status.c Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
libzfs_util.c Add zfs_nicebytes() to print human-readable sizes 2017-05-02 13:43:53 -07:00
libzfs.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
Makefile.am Add -c to zpool iostat & status to run command 2016-11-29 14:45:38 -07:00