* Test whether we can create a dnode at the specified location. */
| 1646 | * Test whether we can create a dnode at the specified location. |
| 1647 | */ |
| 1648 | int |
| 1649 | dnode_try_claim(objset_t *os, uint64_t object, int slots) |
| 1650 | { |
| 1651 | return (dnode_hold_impl(os, object, DNODE_MUST_BE_FREE | DNODE_DRY_RUN, |
| 1652 | slots, NULL, NULL)); |
| 1653 | } |
| 1654 | |
| 1655 | void |
| 1656 | dnode_setdirty(dnode_t *dn, dmu_tx_t *tx) |
no test coverage detected