![](fs__io_8h__incl.png)
![](fs__io_8h__dep__incl.png)
Go to the source code of this file.
Classes | |
class | dread_ctrl |
class | dwrite_q |
Functions | |
int | file_open (const char *path, int mode) |
void | file_close (int fd) |
void | file_write (int, off_t, void const *, int len, DWCB *, void *, FREE *) |
void | file_read (int, char *, int, off_t, DRCB *, void *) |
void | safeunlink (const char *path, int quiet) |
bool | FileRename (const SBuf &from, const SBuf &to) |
int | fsBlockSize (const char *path, int *blksize) |
int | fsStats (const char *, int *, int *, int *, int *) |
Function Documentation
◆ file_close()
void file_close | ( | int | fd | ) |
Definition at line 93 of file fs_io.cc.
References assert, debugs, StatCounters::disk, diskHandleWrite, F(), fd_close(), fd_table, statCounter, and StatCounters::syscalls.
Referenced by Fs::Ufs::UFSSwapDir::closeLog(), Fs::Ufs::UFSSwapDir::closeTmpSwapLog(), DiskerClose(), diskHandleWrite(), MmappedFile::doClose(), BlockingFile::doClose(), DiskThreadsDiskFile::doClose(), MimeIcon::load(), TemplateFile::loadFromFile(), logfile_mod_stdio_close(), logfile_mod_stdio_rotate(), logfile_mod_udp_close(), netdbReloadState(), Fs::Ufs::UFSSwapDir::openTmpSwapLog(), Fs::Ufs::RebuildState::rebuildFromDirectory(), UFSCleanLog::write(), Fs::Ufs::UFSSwapDir::writeCleanDone(), Rock::Rebuild::~Rebuild(), and Fs::Ufs::UFSSwapDir::~UFSSwapDir().
◆ file_open()
Definition at line 65 of file fs_io.cc.
References commSetCloseOnExec(), debugs, StatCounters::disk, DISK_ERROR, FD_FILE, fd_open(), FILE_MODE, statCounter, StatCounters::syscalls, and xstrerr().
Referenced by Fs::Ufs::UFSSwapDir::closeTmpSwapLog(), DiskThreadsDiskFile::create(), DiskerOpen(), Fs::Ufs::RebuildState::getNextFile(), MimeIcon::load(), TemplateFile::loadFromFile(), logfile_mod_stdio_open(), logfile_mod_stdio_rotate(), netdbReloadState(), MmappedFile::open(), DiskThreadsDiskFile::open(), BlockingFile::open(), Fs::Ufs::UFSSwapDir::openLog(), Fs::Ufs::UFSSwapDir::openTmpSwapLog(), Rock::Rebuild::start(), Fs::Ufs::UFSSwapDir::writeCleanDone(), and Fs::Ufs::UFSSwapDir::writeCleanStart().
◆ file_read()
Definition at line 425 of file fs_io.cc.
References assert, cbdataReference, and diskHandleRead.
Referenced by BlockingFile::read(), and DiskThreadsDiskFile::read().
◆ file_write()
Definition at line 314 of file fs_io.cc.
References assert, cbdataReference, diskHandleWrite, F(), fd_table, and handle.
Referenced by Fs::Ufs::UFSSwapDir::logEntry(), Fs::Ufs::UFSSwapDir::openTmpSwapLog(), BlockingFile::write(), and DiskThreadsDiskFile::write().
◆ FileRename()
Definition at line 444 of file fs_io.cc.
References SBuf::c_str(), DBG_IMPORTANT, debugs, SBuf::length(), SBuf::rawContent(), and xstrerr().
Referenced by Fs::Ufs::UFSSwapDir::closeTmpSwapLog(), logfile_mod_stdio_rotate(), and Fs::Ufs::UFSSwapDir::writeCleanDone().
◆ fsBlockSize()
Definition at line 467 of file fs_io.cc.
References DBG_IMPORTANT, debugs, statvfs::f_frsize, int, xstatvfs(), and xstrerr().
Referenced by Fs::Ufs::UFSSwapDir::init().
◆ fsStats()
Definition at line 491 of file fs_io.cc.
References DBG_IMPORTANT, debugs, statvfs::f_bfree, statvfs::f_blocks, statvfs::f_ffree, statvfs::f_files, statvfs::f_frsize, fsbtoblk, int, xstatvfs(), and xstrerr().
Referenced by Fs::Ufs::UFSSwapDir::statfs().
◆ safeunlink()
void safeunlink | ( | const char * | path, |
int | quiet | ||
) |
Definition at line 433 of file fs_io.cc.
References DBG_IMPORTANT, debugs, StatCounters::disk, statCounter, StatCounters::syscalls, and xstrerr().
Referenced by Fs::Ufs::UFSSwapDir::DirClean(), Fs::Ufs::UFSSwapDir::openTmpSwapLog(), RemoveInstance(), and unlinkdUnlink().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products