zap.c (321547) | zap.c (339034) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1037 unchanged lines hidden (view full) --- 1046 zap_cursor_retrieve(&zc, &za) == 0; 1047 (void) zap_cursor_advance(&zc)) { 1048 if (za.za_integer_length != 8 || za.za_num_integers != 1) { 1049 err = SET_ERROR(EINVAL); 1050 break; 1051 } 1052 err = zap_add(os, intoobj, za.za_name, 1053 8, 1, &value, tx); | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1037 unchanged lines hidden (view full) --- 1046 zap_cursor_retrieve(&zc, &za) == 0; 1047 (void) zap_cursor_advance(&zc)) { 1048 if (za.za_integer_length != 8 || za.za_num_integers != 1) { 1049 err = SET_ERROR(EINVAL); 1050 break; 1051 } 1052 err = zap_add(os, intoobj, za.za_name, 1053 8, 1, &value, tx); |
1054 if (err) | 1054 if (err != 0) |
1055 break; 1056 } 1057 zap_cursor_fini(&zc); 1058 return (err); 1059} 1060 1061int 1062zap_join_increment(objset_t *os, uint64_t fromobj, uint64_t intoobj, --- 296 unchanged lines hidden --- | 1055 break; 1056 } 1057 zap_cursor_fini(&zc); 1058 return (err); 1059} 1060 1061int 1062zap_join_increment(objset_t *os, uint64_t fromobj, uint64_t intoobj, --- 296 unchanged lines hidden --- |