Searched refs:hr_localfd (Results 1 - 7 of 7) sorted by relevance
/freebsd-current/sbin/hastd/ |
H A D | subr.c | 86 if (res->hr_localfd == -1) { 87 res->hr_localfd = open(res->hr_localpath, 89 if (res->hr_localfd == -1) { 95 if (fstat(res->hr_localfd, &sb) == -1) { 103 if (ioctl(res->hr_localfd, DIOCGMEDIASIZE, 110 if (ioctl(res->hr_localfd, DIOCGSECTORSIZE, 244 if (cap_rights_limit(res->hr_localfd, &rights) == -1) { 248 if (cap_ioctls_limit(res->hr_localfd, geomcmds,
|
H A D | metadata.c | 63 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 D | hast.h | 170 int hr_localfd; member in struct:hast_resource
|
H A D | secondary.c | 337 if (pread(res->hr_localfd, map, mapsize, METADATA_SIZE) != 775 if (pwrite(res->hr_localfd, map, mapsize, 793 ret = pread(res->hr_localfd, hio->hio_data, 804 ret = pwrite(res->hr_localfd, hio->hio_data, 815 ret = g_delete(res->hr_localfd, 830 ret = g_flush(res->hr_localfd);
|
H A D | primary.c | 345 if (pwrite(res->hr_localfd, buf, size, METADATA_SIZE) != 352 g_flush(res->hr_localfd) == -1) { 547 if (pread(res->hr_localfd, buf, mapsize, METADATA_SIZE) != 1402 ret = pread(res->hr_localfd, ggio->gctl_data, 1425 ret = pwrite(res->hr_localfd, ggio->gctl_data, 1447 ret = g_delete(res->hr_localfd, 1465 ret = g_flush(res->hr_localfd);
|
H A D | parse.y | 547 curres->hr_localfd = -1;
|
/freebsd-current/sbin/hastctl/ |
H A D | hastctl.c | 153 if (pwrite(res->hr_localfd, buf, mapsize, METADATA_SIZE) != 163 if (res->hr_localfd >= 0) 164 close(res->hr_localfd);
|
Completed in 99 milliseconds