Deleted Added
full compact
207a208
> rwlock_t zd_zilog_lock;
240a242
> ztest_func_t ztest_zil_remount;
275a278
> { ztest_zil_remount, 1, &zopt_sometimes },
988a992
> VERIFY(rwlock_init(&zd->zd_zilog_lock, USYNC_THREAD, NULL) == 0);
1967a1972,1973
> (void) rw_rdlock(&zd->zd_zilog_lock);
>
2002a2009,2010
> (void) rw_unlock(&zd->zd_zilog_lock);
>
2056a2065,2066
> (void) rw_rdlock(&zd->zd_zilog_lock);
>
2067a2078,2079
>
> (void) rw_unlock(&zd->zd_zilog_lock);
2070a2083,2105
> * This function is designed to simulate the operations that occur during a
> * mount/unmount operation. We hold the dataset across these operations in an
> * attempt to expose any implicit assumptions about ZIL management.
> */
> /* ARGSUSED */
> void
> ztest_zil_remount(ztest_ds_t *zd, uint64_t id)
> {
> objset_t *os = zd->zd_os;
>
> (void) rw_wrlock(&zd->zd_zilog_lock);
>
> /* zfsvfs_teardown() */
> zil_close(zd->zd_zilog);
>
> /* zfsvfs_setup() */
> VERIFY(zil_open(os, ztest_get_data) == zd->zd_zilog);
> zil_replay(os, zd, ztest_replay_vector);
>
> (void) rw_unlock(&zd->zd_zilog_lock);
> }
>
> /*