diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2018-08-05 04:40:13 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2018-08-05 04:40:13 +0000 |
commit | 9b1662e67b54e3a4ae04050beacc38645a003a8c (patch) | |
tree | bca5f029a89a2ba2a68ec6931a283dbe452d2556 /lib/libbe/be.c | |
parent | f97b318f7d23f2ef500a7342fe050ddac9424460 (diff) | |
download | src-9b1662e67b54e3a4ae04050beacc38645a003a8c.tar.gz src-9b1662e67b54e3a4ae04050beacc38645a003a8c.zip |
bectl: Implement -D ("space if origin datasets were deleted")
This also accomplishes the following:
- Proxy through zfs_nicenum as be_nicenum, because it looks better than
humanize_number and would presumably be useful to other libbe consumers.
- Rename be_get_snapshot_props to be_get_dataset_props, make it more useful
Notes
Notes:
svn path=/projects/bectl/; revision=337343
Diffstat (limited to 'lib/libbe/be.c')
-rw-r--r-- | lib/libbe/be.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libbe/be.c b/lib/libbe/be.c index 48bb36c2beea..4e889abee2e4 100644 --- a/lib/libbe/be.c +++ b/lib/libbe/be.c @@ -171,6 +171,15 @@ libbe_close(libbe_handle_t *lbh) free(lbh); } +/* + * Proxy through to libzfs for the moment. + */ +void +be_nicenum(uint64_t num, char *buf, size_t buflen) +{ + + zfs_nicenum(num, buf, buflen); +} /* * Destroy the boot environment or snapshot specified by the name |