Squid Web Cache master
Loading...
Searching...
No Matches
fs_io.h File Reference
#include "mem/forward.h"
#include "sbuf/forward.h"
#include "typedefs.h"
Include dependency graph for fs_io.h:
This graph shows which files directly or indirectly include this file:

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()

◆ file_open()

◆ file_read()

void file_read ( int  fd,
char *  buf,
int  req_len,
off_t  offset,
DRCB handler,
void *  client_data 
)

Definition at line 424 of file fs_io.cc.

References assert, cbdataReference, and diskHandleRead.

Referenced by BlockingFile::read(), and DiskThreadsDiskFile::read().

◆ file_write()

◆ FileRename()

bool FileRename ( const SBuf from,
const SBuf to 
)

◆ fsBlockSize()

int fsBlockSize ( const char *  path,
int blksize 
)

Definition at line 466 of file fs_io.cc.

References DBG_IMPORTANT, debugs, statvfs::f_frsize, int, xstatvfs(), and xstrerr().

Referenced by Fs::Ufs::UFSSwapDir::init().

◆ fsStats()

int fsStats ( const char *  path,
int totl_kb,
int free_kb,
int totl_in,
int free_in 
)

◆ safeunlink()