return (rv);
}
+/*
+ * Send all snapshots for all filesystems in sdd.
+ */
static int
-dump_filesystems(zfs_handle_t *rzhp, void *arg)
+dump_filesystems(zfs_handle_t *rzhp, send_dump_data_t *sdd)
{
- send_dump_data_t *sdd = arg;
nvpair_t *fspair;
boolean_t needagain, progress;
if (parent_guid != 0) {
parent_nv = fsavl_find(sdd->fsavl, parent_guid, NULL);
if (!nvlist_exists(parent_nv, "sent")) {
- /* parent has not been sent; skip this one */
+ /* Parent has not been sent; skip this one. */
needagain = B_TRUE;
continue;
}
if (origin_nv != NULL &&
!nvlist_exists(origin_nv, "sent")) {
/*
- * origin has not been sent yet;
+ * Origin has not been sent yet;
* skip this clone.
*/
needagain = B_TRUE;
goto again;
}
- /* clean out the sent flags in case we reuse this fss */
+ /* Clean out the sent flags in case we reuse this fss. */
for (fspair = nvlist_next_nvpair(sdd->fss, NULL); fspair;
fspair = nvlist_next_nvpair(sdd->fss, fspair)) {
nvlist_t *fslist;