Seastar
High performance C++ framework for concurrent servers
Public Attributes | Static Public Attributes | List of all members
seastar::file_open_options Struct Reference

Detailed Description

File open options

Options used to configure an open file.

file

#include <seastar/core/file.hh>

Public Attributes

uint64_t extent_allocation_size_hint = 1 << 20
 Allocate this much disk space when extending the file.
 
bool sloppy_size = false
 Allow the file size not to track the amount of data written until a flush.
 
uint64_t sloppy_size_hint = 1 << 20
 Hint as to what the eventual file size will be.
 
file_permissions create_permissions = file_permissions::default_file_permissions
 File permissions to use when creating a file.
 
bool append_is_unlikely = false
 Hint that user promises (or at least tries hard) not to write behind file size.
 

Static Public Attributes

static constexpr uint64_t max_extent_allocation_size_hint = 1 << 31
 
static constexpr uint32_t min_extent_size_hint_alignment {128u << 10}
 

The documentation for this struct was generated from the following file: