MySQL 9.1.0
Source Code Documentation
os_file_stat_t Struct Reference

Struct used in fetching information of a file in a directory. More...

#include <os0file.h>

Public Attributes

char name [OS_FILE_MAX_PATH]
 path to a file More...
 
os_file_type_t type
 file type More...
 
os_offset_t size
 file size in bytes More...
 
os_offset_t alloc_size
 Allocated size for sparse files in bytes. More...
 
uint32_t block_size
 Block size to use for IO in bytes. More...
 
time_t ctime
 creation time More...
 
time_t mtime
 modification time More...
 
time_t atime
 access time More...
 
bool rw_perm
 true if can be opened in read-write mode. More...
 

Detailed Description

Struct used in fetching information of a file in a directory.

Member Data Documentation

◆ alloc_size

os_offset_t os_file_stat_t::alloc_size

Allocated size for sparse files in bytes.

◆ atime

time_t os_file_stat_t::atime

access time

◆ block_size

uint32_t os_file_stat_t::block_size

Block size to use for IO in bytes.

◆ ctime

time_t os_file_stat_t::ctime

creation time

◆ mtime

time_t os_file_stat_t::mtime

modification time

◆ name

char os_file_stat_t::name[OS_FILE_MAX_PATH]

path to a file

◆ rw_perm

bool os_file_stat_t::rw_perm

true if can be opened in read-write mode.

Only valid if type == OS_FILE_TYPE_FILE

◆ size

os_offset_t os_file_stat_t::size

file size in bytes

◆ type

os_file_type_t os_file_stat_t::type

file type


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