Home
last modified time | relevance | path

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

/freebsd-12.1/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 nlabels = zpool_read_all_labels(devFd, &devLabel); in ReadLabel()
212 string devName = fdevname(devFd); in ReadLabel()
H A Dzfsd_event.h141 static nvlist_t *ReadLabel(int devFd, bool &inUse, bool &degraded);
/freebsd-12.1/lib/libdevdctl/
H A Devent.cc286 int devFd(open(devPath.c_str(), O_RDONLY)); in DevPath() local
287 if (devFd == -1) in DevPath()
291 devName = fdevname(devFd); in DevPath()
294 close(devFd); in DevPath()
307 int devFd(open(devPath.c_str(), O_RDONLY)); in PhysicalPath() local
308 if (devFd == -1) in PhysicalPath()
313 bool result(ioctl(devFd, DIOCGPHYSPATH, physPath) == 0); in PhysicalPath()
314 close(devFd); in PhysicalPath()