zdb.c (cde58dbc6a23d4d38db7c8866312be83221c765f) | zdb.c (1d8ccc7bfd8ab0f27a23c5253d95c22ceb9c27f4) |
---|---|
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 --- 1276 unchanged lines hidden (view full) --- 1285 uint64_t version; 1286 1287 VERIFY(zap_lookup(os, MASTER_NODE_OBJ, ZPL_VERSION_STR, 1288 8, 1, &version) == 0); 1289 if (version >= ZPL_VERSION_SA) { 1290 VERIFY(zap_lookup(os, MASTER_NODE_OBJ, ZFS_SA_ATTRS, 1291 8, 1, &sa_attrs) == 0); 1292 } | 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 --- 1276 unchanged lines hidden (view full) --- 1285 uint64_t version; 1286 1287 VERIFY(zap_lookup(os, MASTER_NODE_OBJ, ZPL_VERSION_STR, 1288 8, 1, &version) == 0); 1289 if (version >= ZPL_VERSION_SA) { 1290 VERIFY(zap_lookup(os, MASTER_NODE_OBJ, ZFS_SA_ATTRS, 1291 8, 1, &sa_attrs) == 0); 1292 } |
1293 sa_attr_table = sa_setup(os, sa_attrs, 1294 zfs_attr_table, ZPL_END); | 1293 if ((error = sa_setup(os, sa_attrs, zfs_attr_table, 1294 ZPL_END, &sa_attr_table)) != 0) { 1295 (void) printf("sa_setup failed errno %d, can't " 1296 "display znode contents\n", error); 1297 return; 1298 } |
1295 sa_loaded = B_TRUE; 1296 } 1297 1298 if (sa_handle_get(os, object, NULL, SA_HDL_PRIVATE, &hdl)) { 1299 (void) printf("Failed to get handle for SA znode\n"); 1300 return; 1301 } 1302 --- 1849 unchanged lines hidden --- | 1299 sa_loaded = B_TRUE; 1300 } 1301 1302 if (sa_handle_get(os, object, NULL, SA_HDL_PRIVATE, &hdl)) { 1303 (void) printf("Failed to get handle for SA znode\n"); 1304 return; 1305 } 1306 --- 1849 unchanged lines hidden --- |