• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/cddl/usr.sbin/zfsd/

Lines Matching defs:vdev

36  * We keep case files for any leaf vdev that is not in the optimal state.
70 #include "vdev.h"
111 * We only carry one active case per-vdev.
155 CaseFile::Create(Vdev &vdev)
159 activeCase = Find(vdev.PoolGUID(), vdev.GUID());
161 activeCase = new CaseFile(vdev);
238 CaseFile::ReEvaluate(const string &devPath, const string &physPath, Vdev *vdev)
247 * The pool or vdev for this case file is no longer
279 if (vdev != NULL
280 && ( vdev->PoolGUID() == m_poolGUID
281 || vdev->PoolGUID() == Guid::InvalidGuid())
282 && vdev->GUID() == m_vdevGUID) {
284 zpool_vdev_online(pool, vdev->GUIDString().c_str(),
287 syslog(LOG_INFO, "Onlined vdev(%s/%s:%s). State now %s.\n",
288 zpool_get_name(pool), vdev->GUIDString().c_str(),
293 * Check the vdev state post the online action to see
344 "Replace vdev(%s/%s) by physical path (label): %s: %s\n",
387 * The pool or vdev for this case file is no longer
437 * If this vdev is DEGRADED, FAULTED, or UNAVAIL, try to
459 /* Find a Vdev containing the vdev with the given GUID */
475 Vdev vdev(pool_config, vdevChildren[ch]);
477 if (vdev.GUID() == child_guid)
513 syslog(LOG_ERR, "CaseFile::ActivateSpare: Could not find vdev "
523 * Don't activate spares for members of a "replacing" vdev.
550 "find vdev stats for pool %s, spare %d",
579 "the vdev type of pool %s, spare %d. Error %d",
727 * If the vdev is already degraded or faulted,
730 * state. However, if the vdev is simply missing,
748 * or this vdev is no longer a member of
756 * Any vdev we find that does not have a case file
789 CaseFile::CaseFile(const Vdev &vdev)
790 : m_poolGUID(vdev.PoolGUID()),
791 m_vdevGUID(vdev.GUID()),
792 m_vdevState(vdev.State()),
793 m_vdevPhysPath(vdev.PhysicalPath())
961 * or this vdev is no longer a member of
972 /* Fault the vdev and close the case. */
975 syslog(LOG_INFO, "Faulting vdev(%s/%s)",
982 syslog(LOG_ERR, "Fault vdev(%s/%s): %s: %s\n",
990 /* Degrade the vdev and close the case. */
993 syslog(LOG_INFO, "Degrading vdev(%s/%s)",
1000 syslog(LOG_ERR, "Degrade vdev(%s/%s): %s: %s\n",
1037 /* Skip our vdev. */
1090 * Build a root vdev/leaf vdev configuration suitable for
1099 syslog(LOG_ERR, "Replace vdev(%s/%s): Unable to allocate "
1110 syslog(LOG_ERR, "Replace vdev(%s/%s): Unable to initialize "
1117 /* Data was copied when added to the root vdev. */
1123 syslog(LOG_INFO, "Replacing vdev(%s/%s) with %s\n",
1126 syslog(LOG_ERR, "Replace vdev(%s/%s): %s: %s\n",