Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zap.c
Show First 20 Lines • Show All 1,045 Lines • ▼ Show 20 Lines | for (zap_cursor_init(&zc, os, fromobj); | ||||
zap_cursor_retrieve(&zc, &za) == 0; | zap_cursor_retrieve(&zc, &za) == 0; | ||||
(void) zap_cursor_advance(&zc)) { | (void) zap_cursor_advance(&zc)) { | ||||
if (za.za_integer_length != 8 || za.za_num_integers != 1) { | if (za.za_integer_length != 8 || za.za_num_integers != 1) { | ||||
err = SET_ERROR(EINVAL); | err = SET_ERROR(EINVAL); | ||||
break; | break; | ||||
} | } | ||||
err = zap_add(os, intoobj, za.za_name, | err = zap_add(os, intoobj, za.za_name, | ||||
8, 1, &value, tx); | 8, 1, &value, tx); | ||||
if (err) | if (err != 0) | ||||
break; | break; | ||||
} | } | ||||
zap_cursor_fini(&zc); | zap_cursor_fini(&zc); | ||||
return (err); | return (err); | ||||
} | } | ||||
int | int | ||||
zap_join_increment(objset_t *os, uint64_t fromobj, uint64_t intoobj, | zap_join_increment(objset_t *os, uint64_t fromobj, uint64_t intoobj, | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |