Searched refs:devPath (Results 1 – 5 of 5) sorted by relevance
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | zfsd_event.cc | 118 string devPath; in Process() local 119 if (!DevPath(devPath)) in Process() 122 int devFd(open(devPath.c_str(), O_RDONLY)); in Process() 138 OnlineByLabel(devPath, physPath, devLabel); in Process() 156 caseFile->ReEvaluate(devPath, physPath, /*vdev*/NULL); in Process() 214 string devPath = _PATH_DEV + devName; in ReadLabel() local 216 + devPath + ": "); in ReadLabel() 227 GeomEvent::OnlineByLabel(const string &devPath, const string& physPath, in OnlineByLabel() argument 239 devPath.c_str()); in OnlineByLabel() 244 ret |= (*curr)->ReEvaluate(devPath, physPath, &vdev); in OnlineByLabel() [all …]
|
H A D | case_file.cc | 263 CaseFile::ReEvaluate(const string &devPath, const string &physPath, Vdev *vdev) in ReEvaluate() argument 315 devPath.c_str(), libzfs_error_action(g_zfsHandle), in ReEvaluate() 322 devPath.c_str(), in ReEvaluate() 369 if (zpool_label_disk(g_zfsHandle, pool, devPath.c_str()) != 0) { in ReEvaluate() 380 devPath.c_str()); in ReEvaluate() 381 return (Replace(VDEV_TYPE_DISK, devPath.c_str(), /*isspare*/false)); in ReEvaluate() 520 const char *devPath, *poolname, *vdev_type; in ActivateSpare() local 595 error = nvlist_lookup_string(spares[i], ZPOOL_CONFIG_PATH, &devPath); in ActivateSpare() 611 return (Replace(vdev_type, devPath, /*isspare*/true)); in ActivateSpare()
|
H A D | zfsd_event.h | 123 static bool OnlineByLabel(const string &devPath,
|
H A D | case_file.h | 187 bool ReEvaluate(const string &devPath, const string &physPath,
|
/freebsd/lib/libdevdctl/ |
H A D | event.cc | 283 string devPath(_PATH_DEV + devName); in DevPath() local 284 int devFd(open(devPath.c_str(), O_RDONLY)); in DevPath() 304 string devPath; in PhysicalPath() local 306 if (!DevPath(devPath)) in PhysicalPath() 309 int devFd(open(devPath.c_str(), O_RDONLY)); in PhysicalPath()
|