taco-db  0.1.0
Namespaces | Functions
FSFile_private.cpp File Reference
#include "storage/FSFile.h"
#include <fcntl.h>
#include <absl/flags/flag.h>

Namespaces

 taco
 

Functions

 ABSL_FLAG (bool, test_never_call_fallocate, false, "If enabled, fallocate_zerofill_fast() will always return false " "without fallocate(2) even if it exists. This is used for testing " "only.")
 
bool taco::fallocate_zerofill_fast (int fd, off_t offset, off_t len)
 Calls fallocate(2) with mode FALLOC_FL_ZERO_RANGE if it is available. More...
 

Function Documentation

◆ ABSL_FLAG()

ABSL_FLAG ( bool  ,
test_never_call_fallocate  ,
false  ,
"If  enabled,
fallocate_zerofill_fast() will always return false " "without fallocate(2) even if it exists. This is used for testing " "only."   
)