Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148440512
D30882.id91305.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
984 B
Referenced Files
None
Subscribers
None
D30882.id91305.diff
View Options
Index: cddl/usr.sbin/zfsd/case_file.cc
===================================================================
--- cddl/usr.sbin/zfsd/case_file.cc
+++ cddl/usr.sbin/zfsd/case_file.cc
@@ -280,9 +280,17 @@
|| vdev->PoolGUID() == Guid::InvalidGuid())
&& vdev->GUID() == m_vdevGUID) {
- zpool_vdev_online(pool, vdev->GUIDString().c_str(),
- ZFS_ONLINE_CHECKREMOVE | ZFS_ONLINE_UNSPARE,
- &m_vdevState);
+ if (zpool_vdev_online(pool, vdev->GUIDString().c_str(),
+ ZFS_ONLINE_CHECKREMOVE | ZFS_ONLINE_UNSPARE,
+ &m_vdevState) != 0) {
+ syslog(LOG_ERR,
+ "Failed to online vdev(%s/%s:%s): %s: %s\n",
+ zpool_get_name(pool), vdev->GUIDString().c_str(),
+ devPath.c_str(), libzfs_error_action(g_zfsHandle),
+ libzfs_error_description(g_zfsHandle));
+ return (/*consumed*/false);
+ }
+
syslog(LOG_INFO, "Onlined vdev(%s/%s:%s). State now %s.\n",
zpool_get_name(pool), vdev->GUIDString().c_str(),
devPath.c_str(),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 18, 9:52 PM (3 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29928268
Default Alt Text
D30882.id91305.diff (984 B)
Attached To
Mode
D30882: zfsd: Check for error from zpool_vdev_online
Attached
Detach File
Event Timeline
Log In to Comment