| 3919 | } |
| 3920 | |
| 3921 | int |
| 3922 | vdev_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 |