Searched refs:hr_localfd (Results 1 - 7 of 7) sorted by relevance
/freebsd-9.3-release/sbin/hastd/ |
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 | 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,
|
H A D | hast.h | 170 int hr_localfd; member in struct:hast_resource
|
H A D | secondary.c | 338 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 D | primary.c | 347 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 D | parse.y | 854 curres->hr_localfd = -1;
|
/freebsd-9.3-release/sbin/hastctl/ |
H A D | hastctl.c | 154 if (pwrite(res->hr_localfd, buf, mapsize, METADATA_SIZE) != 164 if (res->hr_localfd >= 0) 165 close(res->hr_localfd);
|
Completed in 102 milliseconds