• Home
  • Raw
  • Download

Lines Matching refs:pFile

58    unixFile *pFile = (unixFile*)id;
59 - if( pFile->dirfd>=0 ){
60 - robust_close(pFile, pFile->dirfd, __LINE__);
61 - pFile->dirfd=-1;
63 if( pFile->h>=0 ){
64 robust_close(pFile, pFile->h, __LINE__);
65 pFile->h = -1;
68 if( pFile->pId ){
69 if( pFile->isDelete ){
70 - unlink(pFile->pId->zCanonicalName);
71 + osUnlink(pFile->pId->zCanonicalName);
73 vxworksReleaseFileId(pFile->pId);
74 pFile->pId = 0;
136 pFile->lastErrno = errno;
137 return unixLogError(SQLITE_IOERR_FSYNC, "full_fsync", pFile->zPath);
139 - if( pFile->dirfd>=0 ){
140 - OSTRACE(("DIRSYNC %-3d (have_fullfsync=%d fullsync=%d)\n", pFile->dirfd,
146 + if( pFile->ctrlFlags & UNIXFILE_DIRSYNC ){
148 + OSTRACE(("DIRSYNC %s (have_fullfsync=%d fullsync=%d)\n", pFile->zPath,
155 - if( (!HAVE_FULLFSYNC || !isFullsync) && full_fsync(pFile->dirfd,0,0) ){
162 - /* pFile->lastErrno = errno; */
164 + rc = osOpenDirectory(pFile->zPath, &dirfd);
167 + robust_close(pFile, dirfd, __LINE__);
171 - robust_close(pFile, pFile->dirfd, __LINE__);
172 - pFile->dirfd = -1;
173 + pFile->ctrlFlags &= ~UNIXFILE_DIRSYNC;
268 unixFile *p = (unixFile *)pFile;
324 ((unixFile*)pFile)->lastErrno = errno;
343 - rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock,
344 + rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock,
347 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
352 - rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock,
353 + rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock,
390 @@ -30074,7 +30067,7 @@ static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){
396 robust_close(pFile, fd, __LINE__);
454 unixFile *pFile = (unixFile*)id;
455 - if( pFile->dirfd>=0 ){
456 - robust_close(pFile, pFile->dirfd, __LINE__);
457 - pFile->dirfd=-1;
459 if( pFile->h>=0 ){
460 robust_close(pFile, pFile->h, __LINE__);
461 pFile->h = -1;
464 if( pFile->pId ){
465 if( pFile->isDelete ){
466 - unlink(pFile->pId->zCanonicalName);
467 + osUnlink(pFile->pId->zCanonicalName);
469 vxworksReleaseFileId(pFile->pId);
470 pFile->pId = 0;
532 pFile->lastErrno = errno;
533 return unixLogError(SQLITE_IOERR_FSYNC, "full_fsync", pFile->zPath);
535 - if( pFile->dirfd>=0 ){
536 - OSTRACE(("DIRSYNC %-3d (have_fullfsync=%d fullsync=%d)\n", pFile->dirfd,
542 + if( pFile->ctrlFlags & UNIXFILE_DIRSYNC ){
544 + OSTRACE(("DIRSYNC %s (have_fullfsync=%d fullsync=%d)\n", pFile->zPath,
551 - if( (!HAVE_FULLFSYNC || !isFullsync) && full_fsync(pFile->dirfd,0,0) ){
558 - /* pFile->lastErrno = errno; */
560 + rc = osOpenDirectory(pFile->zPath, &dirfd);
563 + robust_close(pFile, dirfd, __LINE__);
569 - robust_close(pFile, pFile->dirfd, __LINE__);
570 - pFile->dirfd = -1;
571 + pFile->ctrlFlags &= ~UNIXFILE_DIRSYNC;
666 unixFile *p = (unixFile *)pFile;
722 ((unixFile*)pFile)->lastErrno = errno;
741 - rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock,
742 + rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock,
745 rc = proxyTransformUnixFile((unixFile*)pFile, ":auto:");
750 - rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock,
751 + rc = fillInUnixFile(pVfs, fd, syncDir, pFile, zPath, noLock,
797 @@ -5929,7 +5926,7 @@ static int proxyBreakConchLock(unixFile *pFile, uuid_t myHostID){
803 robust_close(pFile, fd, __LINE__);