• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-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.
72 #include "vdev.h"
112 * We only carry one active case per-vdev.
156 CaseFile::Create(Vdev &vdev)
160 activeCase = Find(vdev.PoolGUID(), vdev.GUID());
162 activeCase = new CaseFile(vdev);
239 CaseFile::ReEvaluate(const string &devPath, const string &physPath, Vdev *vdev)
246 * The pool or vdev for this case file is no longer
278 if (vdev != NULL
279 && ( vdev->PoolGUID() == m_poolGUID
280 || vdev->PoolGUID() == Guid::InvalidGuid())
281 && vdev->GUID() == m_vdevGUID) {
283 zpool_vdev_online(pool, vdev->GUIDString().c_str(),
286 syslog(LOG_INFO, "Onlined vdev(%s/%s:%s). State now %s.\n",
287 zpool_get_name(pool), vdev->GUIDString().c_str(),
292 * Check the vdev state post the online action to see
337 "Replace vdev(%s/%s) by physical path (label): %s: %s\n",
380 * The pool or vdev for this case file is no longer
430 * If this vdev is DEGRADED, FAULTED, or UNAVAIL, try to
452 /* Find a Vdev containing the vdev with the given GUID */
468 Vdev vdev(pool_config, vdevChildren[ch]);
470 if (vdev.GUID() == child_guid)
506 syslog(LOG_ERR, "CaseFile::ActivateSpare: Could not find vdev "
516 * Don't activate spares for members of a "replacing" vdev.
543 "find vdev stats for pool %s, spare %d",
572 "the vdev type of pool %s, spare %d. Error %d",
720 * If the vdev is already degraded or faulted,
723 * state. However, if the vdev is simply missing,
741 * or this vdev is no longer a member of
749 * Any vdev we find that does not have a case file
782 CaseFile::CaseFile(const Vdev &vdev)
783 : m_poolGUID(vdev.PoolGUID()),
784 m_vdevGUID(vdev.GUID()),
785 m_vdevState(vdev.State()),
786 m_vdevPhysPath(vdev.PhysicalPath())
954 * or this vdev is no longer a member of
965 /* Fault the vdev and close the case. */
968 syslog(LOG_INFO, "Faulting vdev(%s/%s)",
975 syslog(LOG_ERR, "Fault vdev(%s/%s): %s: %s\n",
983 /* Degrade the vdev and close the case. */
986 syslog(LOG_INFO, "Degrading vdev(%s/%s)",
993 syslog(LOG_ERR, "Degrade vdev(%s/%s): %s: %s\n",
1030 /* Skip our vdev. */
1083 * Build a root vdev/leaf vdev configuration suitable for
1092 syslog(LOG_ERR, "Replace vdev(%s/%s): Unable to allocate "
1103 syslog(LOG_ERR, "Replace vdev(%s/%s): Unable to initialize "
1110 /* Data was copied when added to the root vdev. */
1116 syslog(LOG_INFO, "Replacing vdev(%s/%s) with %s\n",
1119 syslog(LOG_ERR, "Replace vdev(%s/%s): %s: %s\n",