| 365 | } |
| 366 | |
| 367 | void |
| 368 | dnode_buf_byteswap(void *vbuf, size_t size) |
| 369 | { |
| 370 | int i = 0; |
| 371 | |
| 372 | ASSERT3U(sizeof (dnode_phys_t), ==, (1<<DNODE_SHIFT)); |
| 373 | ASSERT((size & (sizeof (dnode_phys_t)-1)) == 0); |
| 374 | |
| 375 | while (i < size) { |
| 376 | dnode_phys_t *dnp = (void *)(((char *)vbuf) + i); |
| 377 | dnode_byteswap(dnp); |
| 378 | |
| 379 | i += DNODE_MIN_SIZE; |
| 380 | if (dnp->dn_type != DMU_OT_NONE) |
| 381 | i += dnp->dn_extra_slots * DNODE_MIN_SIZE; |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | void |
| 386 | dnode_setbonuslen(dnode_t *dn, int newsize, dmu_tx_t *tx) |
nothing calls this directly
no test coverage detected