Home
last modified time | relevance | path

Searched refs:hr_localfd (Results 1 – 5 of 5) sorted by relevance

/freebsd/sbin/hastd/
H A Dsubr.c86 if (res->hr_localfd == -1) { in provinfo()
87 res->hr_localfd = open(res->hr_localpath, in provinfo()
89 if (res->hr_localfd == -1) { in provinfo()
95 if (fstat(res->hr_localfd, &sb) == -1) { in provinfo()
103 if (ioctl(res->hr_localfd, DIOCGMEDIASIZE, in provinfo()
110 if (ioctl(res->hr_localfd, DIOCGSECTORSIZE, in provinfo()
244 if (cap_rights_limit(res->hr_localfd, &rights) == -1) { in drop_privs()
248 if (cap_ioctls_limit(res->hr_localfd, geomcmds, in drop_privs()
H A Dsecondary.c337 if (pread(res->hr_localfd, map, mapsize, METADATA_SIZE) != in init_remote()
775 if (pwrite(res->hr_localfd, map, mapsize, in disk_thread()
793 ret = pread(res->hr_localfd, hio->hio_data, in disk_thread()
804 ret = pwrite(res->hr_localfd, hio->hio_data, in disk_thread()
815 ret = g_delete(res->hr_localfd, in disk_thread()
830 ret = g_flush(res->hr_localfd); in disk_thread()
H A Dhast.h170 int hr_localfd; member
H A Dprimary.c345 if (pwrite(res->hr_localfd, buf, size, METADATA_SIZE) != in hast_activemap_flush()
352 g_flush(res->hr_localfd) == -1) { in hast_activemap_flush()
547 if (pread(res->hr_localfd, buf, mapsize, METADATA_SIZE) != in init_local()
1402 ret = pread(res->hr_localfd, ggio->gctl_data, in local_send_thread()
1425 ret = pwrite(res->hr_localfd, ggio->gctl_data, in local_send_thread()
1447 ret = g_delete(res->hr_localfd, in local_send_thread()
1465 ret = g_flush(res->hr_localfd); in local_send_thread()
H A Dparse.y547 curres->hr_localfd = -1;