I have a need to get the value that `zfs create` will assign to
refreservation ahead of the create actually happening.  The wrong way to do
this seemed to be to write a standalone utility that calls
zvol_volsize_to_reservation().  The right way seemed to be to give zfs
create a dry-run mode.

My proposed changes are at:

https://github.com/zfsonlinux/zfs/pull/8974

Note that the first commit in pull/8974 is illumos#9318, covered in
pull/8973.

The key way that this deviates from other "dry-run with verbose & parseable
output" features is that it uses -P rather than -p, which was already taken.

Any feedback you have on the approach would be most appreciated.

TIA,
Mike

------------------------------------------
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/T9bf1d974b8153c0b-M0a020095b37c3719377d304d
Delivery options: https://openzfs.topicbox.com/groups/developer/subscription

Reply via email to