Searched refs:devFd (Results 1 - 3 of 3) sorted by relevance
/freebsd-11-stable/cddl/usr.sbin/zfsd/ |
H A D | zfsd_event.h | 132 * \param devFd The device from which to read ZFS label information. 139 * devFd. Otherwise NULL. 141 static nvlist_t *ReadLabel(int devFd, bool &inUse, bool °raded);
|
H A D | zfsd_event.cc | 122 int devFd(open(devPath.c_str(), O_RDONLY)); 123 if (devFd == -1) 128 nvlist_t *devLabel(ReadLabel(devFd, inUse, degraded)); 135 close(devFd); 175 GeomEvent::ReadLabel(int devFd, bool &inUse, bool °raded) argument 185 if (zpool_in_use(g_zfsHandle, devFd, &poolState, 193 nlabels = zpool_read_all_labels(devFd, &devLabel); 212 string devName = fdevname(devFd);
|
/freebsd-11-stable/lib/libdevdctl/ |
H A D | event.cc | 286 int devFd(open(devPath.c_str(), O_RDONLY)); 287 if (devFd == -1) 291 devName = fdevname(devFd); 294 close(devFd); 307 int devFd(open(devPath.c_str(), O_RDONLY)); 308 if (devFd == -1) 313 bool result(ioctl(devFd, DIOCGPHYSPATH, physPath) == 0); 314 close(devFd);
|
Completed in 159 milliseconds