MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_offline

Function vdev_offline

freebsd/contrib/openzfs/module/zfs/vdev.c:3921–3931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3919}
3920
3921int
3922vdev_offline(spa_t *spa, uint64_t guid, uint64_t flags)
3923{
3924 int error;
3925
3926 mutex_enter(&spa->spa_vdev_top_lock);
3927 error = vdev_offline_locked(spa, guid, flags);
3928 mutex_exit(&spa->spa_vdev_top_lock);
3929
3930 return (error);
3931}
3932
3933/*
3934 * Clear the error counts associated with this vdev. Unlike vdev_online() and

Callers 2

zfs_ioc_vdev_set_stateFunction · 0.85
ztest_fault_injectFunction · 0.85

Calls 3

mutex_enterFunction · 0.85
vdev_offline_lockedFunction · 0.85
mutex_exitFunction · 0.85

Tested by 1

ztest_fault_injectFunction · 0.68