Home
last modified time | relevance | path

Searched refs:devFd (Results 1 – 3 of 3) sorted by relevance

/freebsd-13.1/cddl/usr.sbin/zfsd/
H A Dzfsd_event.cc124 int devFd(open(devPath.c_str(), O_RDONLY)); in Process() local
125 if (devFd == -1) in Process()
130 nvlist_t *devLabel(ReadLabel(devFd, inUse, degraded)); in Process()
137 close(devFd); in Process()
177 GeomEvent::ReadLabel(int devFd, bool &inUse, bool &degraded) in ReadLabel() argument
187 if (zpool_in_use(g_zfsHandle, devFd, &poolState, in ReadLabel()
195 if (zpool_read_label(devFd, &devLabel, &nlabels) != 0) in ReadLabel()
215 string devName = fdevname(devFd); in ReadLabel()
H A Dzfsd_event.h141 static nvlist_t *ReadLabel(int devFd, bool &inUse, bool &degraded);
/freebsd-13.1/lib/libdevdctl/
H A Devent.cc287 int devFd(open(devPath.c_str(), O_RDONLY)); in DevPath() local
288 if (devFd == -1) in DevPath()
292 if (fdevname_r(devFd, buf, sizeof(buf)) == NULL) { in DevPath()
293 close(devFd); in DevPath()
299 close(devFd); in DevPath()
312 int devFd(open(devPath.c_str(), O_RDONLY)); in PhysicalPath() local
313 if (devFd == -1) in PhysicalPath()
318 bool result(ioctl(devFd, DIOCGPHYSPATH, physPath) == 0); in PhysicalPath()
319 close(devFd); in PhysicalPath()