Home
last modified time | relevance | path

Searched refs:devPath (Results 1 – 5 of 5) sorted by relevance

/freebsd-13.1/cddl/usr.sbin/zfsd/
H A Dzfsd_event.cc120 string devPath; in Process() local
121 if (!DevPath(devPath)) in Process()
124 int devFd(open(devPath.c_str(), O_RDONLY)); in Process()
140 OnlineByLabel(devPath, physPath, devLabel); in Process()
158 caseFile->ReEvaluate(devPath, physPath, /*vdev*/NULL); in Process()
216 string devPath = _PATH_DEV + devName; in ReadLabel() local
218 + devPath + ": "); in ReadLabel()
229 GeomEvent::OnlineByLabel(const string &devPath, const string& physPath, in OnlineByLabel() argument
239 devPath.c_str()); in OnlineByLabel()
244 return (caseFile->ReEvaluate(devPath, physPath, &vdev)); in OnlineByLabel()
[all …]
H A Dcase_file.cc239 CaseFile::ReEvaluate(const string &devPath, const string &physPath, Vdev *vdev) in ReEvaluate() argument
289 devPath.c_str(), libzfs_error_action(g_zfsHandle), in ReEvaluate()
296 devPath.c_str(), in ReEvaluate()
343 if (zpool_label_disk(g_zfsHandle, pool, devPath.c_str()) != 0) { in ReEvaluate()
354 devPath.c_str()); in ReEvaluate()
355 return (Replace(VDEV_TYPE_DISK, devPath.c_str(), /*isspare*/false)); in ReEvaluate()
493 char *devPath, *vdev_type; in ActivateSpare() local
569 error = nvlist_lookup_string(spares[i], ZPOOL_CONFIG_PATH, &devPath); in ActivateSpare()
585 return (Replace(vdev_type, devPath, /*isspare*/true)); in ActivateSpare()
H A Dzfsd_event.h125 static bool OnlineByLabel(const string &devPath,
H A Dcase_file.h176 bool ReEvaluate(const string &devPath, const string &physPath,
/freebsd-13.1/lib/libdevdctl/
H A Devent.cc286 string devPath(_PATH_DEV + devName); in DevPath() local
287 int devFd(open(devPath.c_str(), O_RDONLY)); in DevPath()
307 string devPath; in PhysicalPath() local
309 if (!DevPath(devPath)) in PhysicalPath()
312 int devFd(open(devPath.c_str(), O_RDONLY)); in PhysicalPath()