Currently there are two types of interfaces for listing datasets / snapshots /
holds.  ZFS_IOC_DATASET_LIST_NEXT / ZFS_IOC_SNAPSHOT_LIST_NEXT return strictly a
single entity.  ZFS_IOC_GET_HOLDS returns strictly all (or none, if they don't
fit) holds .

It seems that the both approaches are not ideal from the points of view of the
performance and the memory requirements.

I think that a more balanced and universal approach could be to get entries via
the iteration but with getting more than one entry per an iteration if the
allocated memory allows that.

Just thinking out loud...
-- 
Andriy Gapon
_______________________________________________
developer mailing list
developer@open-zfs.org
http://lists.open-zfs.org/mailman/listinfo/developer

Reply via email to