Home
last modified time | relevance | path

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

/freebsd/cddl/usr.sbin/zfsd/
H A Dzfsd_event.cc122 int devFd(open(devPath.c_str(), O_RDONLY)); in Process() local
123 if (devFd == -1) in Process()
128 nvlist_t *devLabel(ReadLabel(devFd, inUse, degraded)); in Process()
135 close(devFd); in Process()
175 GeomEvent::ReadLabel(int devFd, bool &inUse, bool &degraded) in ReadLabel() argument
185 if (zpool_in_use(g_zfsHandle, devFd, &poolState, in ReadLabel()
193 if (zpool_read_label(devFd, &devLabel, &nlabels) != 0) in ReadLabel()
213 string devName = fdevname(devFd); in ReadLabel()
H A Dzfsd_event.h139 static nvlist_t *ReadLabel(int devFd, bool &inUse, bool &degraded);
/freebsd/lib/libdevdctl/
H A Devent.cc284 int devFd(open(devPath.c_str(), O_RDONLY)); in DevPath() local
285 if (devFd == -1) in DevPath()
289 if (fdevname_r(devFd, buf, sizeof(buf)) == NULL) { in DevPath()
290 close(devFd); in DevPath()
296 close(devFd); in DevPath()
309 int devFd(open(devPath.c_str(), O_RDONLY)); in PhysicalPath() local
310 if (devFd == -1) in PhysicalPath()
315 bool result(ioctl(devFd, DIOCGPHYSPATH, physPath) == 0); in PhysicalPath()
316 close(devFd); in PhysicalPath()