Searched refs:hr_localfd (Results 1 - 7 of 7) sorted by relevance

/freebsd-10.3-release/sbin/hastd/
H A Dsubr.c87 if (res->hr_localfd == -1) {
88 res->hr_localfd = open(res->hr_localpath,
90 if (res->hr_localfd == -1) {
96 if (fstat(res->hr_localfd, &sb) == -1) {
104 if (ioctl(res->hr_localfd, DIOCGMEDIASIZE,
111 if (ioctl(res->hr_localfd, DIOCGSECTORSIZE,
245 if (cap_rights_limit(res->hr_localfd, &rights) == -1) {
249 if (cap_ioctls_limit(res->hr_localfd, geomcmds,
H A Dmetadata.c63 if (res->hr_localfd == -1) {
71 if (flock(res->hr_localfd, LOCK_EX | LOCK_NB) == -1) {
103 done = pread(res->hr_localfd, buf, METADATA_SIZE, 0);
161 close(res->hr_localfd);
162 res->hr_localfd = -1;
215 done = pwrite(res->hr_localfd, buf, METADATA_SIZE, 0);
H A Dhast.h170 int hr_localfd; member in struct:hast_resource
H A Dsecondary.c338 if (pread(res->hr_localfd, map, mapsize, METADATA_SIZE) !=
776 if (pwrite(res->hr_localfd, map, mapsize,
794 ret = pread(res->hr_localfd, hio->hio_data,
805 ret = pwrite(res->hr_localfd, hio->hio_data,
816 ret = g_delete(res->hr_localfd,
831 ret = g_flush(res->hr_localfd);
H A Dprimary.c347 if (pwrite(res->hr_localfd, buf, size, METADATA_SIZE) !=
354 g_flush(res->hr_localfd) == -1) {
549 if (pread(res->hr_localfd, buf, mapsize, METADATA_SIZE) !=
1404 ret = pread(res->hr_localfd, ggio->gctl_data,
1427 ret = pwrite(res->hr_localfd, ggio->gctl_data,
1449 ret = g_delete(res->hr_localfd,
1467 ret = g_flush(res->hr_localfd);
H A Dparse.y547 curres->hr_localfd = -1;
/freebsd-10.3-release/sbin/hastctl/
H A Dhastctl.c154 if (pwrite(res->hr_localfd, buf, mapsize, METADATA_SIZE) !=
164 if (res->hr_localfd >= 0)
165 close(res->hr_localfd);

Completed in 128 milliseconds