]> git.proxmox.com Git - mirror_zfs.git/blobdiff - include/libzfs.h
Add -lhHpw options to "zpool iostat" for avg latency, histograms, & queues
[mirror_zfs.git] / include / libzfs.h
index 3faee0adddd00611d41526af7a34de15bff6dc55..654b932843182eef5837359fac3d1dc7cc49eb28 100644 (file)
@@ -747,10 +747,21 @@ extern int zfs_unshareall(zfs_handle_t *);
 extern int zfs_deleg_share_nfs(libzfs_handle_t *, char *, char *, char *,
     void *, void *, int, zfs_share_op_t);
 
+enum zfs_nicenum_format {
+       ZFS_NICENUM_1024 = 0,
+       ZFS_NICENUM_TIME = 1,
+       ZFS_NICENUM_RAW = 2
+};
+
 /*
  * Utility function to convert a number to a human-readable form.
  */
 extern void zfs_nicenum(uint64_t, char *, size_t);
+extern void zfs_nicenum_format(uint64_t num, char *buf, size_t buflen,
+    enum zfs_nicenum_format type);
+
+
+extern void zfs_nicetime(uint64_t, char *, size_t);
 extern int zfs_nicestrtonum(libzfs_handle_t *, const char *, uint64_t *);
 
 /*