get_objset_type
(void) get_objset_type(ds, &ds_type);
error = get_objset_type(ds, &zfs_type);
error = get_objset_type(ds, &type);