Lines Matching full:vdev
67 #include "vdev.h"
156 caseFile->ReEvaluate(devPath, physPath, /*vdev*/NULL); in Process()
209 Vdev vdev(devLabel); in ReadLabel() local
210 degraded = vdev.State() != VDEV_STATE_HEALTHY; in ReadLabel()
238 syslog(LOG_INFO, "Interrogating VDEV label for %s\n", in OnlineByLabel()
240 Vdev vdev(devConfig); in OnlineByLabel() local
241 CaseFile::Find(vdev.PoolGUID(),vdev.GUID(), case_list); in OnlineByLabel()
244 ret |= (*curr)->ReEvaluate(devPath, physPath, &vdev); in OnlineByLabel()
304 /* Only currently interested in Vdev related events. */ in Process()
319 if (Value("class").find("fs.zfs.vdev.no_replicas") == 0) { in Process()
329 * Create a case file for this vdev, and have it in Process()
348 msg << "ZfsEvent::Process: Event for unknown vdev "; in Process()
356 Vdev vdev(zpl.front(), vdevConfig); in Process() local
357 caseFile = &CaseFile::Create(vdev); in Process()
361 msg << "ZfsEvent::Process: Unconsumed event for vdev("; in Process()
363 msg << vdev.GUID() << ") "; in Process()
446 ZfsEvent::TryDetach(Vdev &vdev, void *cbArg) in TryDetach() argument
455 if (vdev.IsSpare()) { in TryDetach()
456 std::list<Vdev> siblings; in TryDetach()
457 std::list<Vdev>::iterator siblings_it; in TryDetach()
460 Vdev parent = vdev.Parent(); in TryDetach()
467 Vdev sibling = *siblings_it; in TryDetach()
477 syslog(LOG_INFO, "Detaching spare vdev %s from pool %s", in TryDetach()
478 vdev.Path().c_str(), zpool_get_name(hdl)); in TryDetach()
479 zpool_vdev_detach(hdl, vdev.Path().c_str()); in TryDetach()