PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
stat_t Struct Reference

Stat type. More...

#include <fs.h>

Collaboration diagram for stat_t:

Data Fields

sbid_t sbid
 The superblock ID of the filesystem containing the entry.
 
uint64_t number
 The number of the entries vnode.
 
vtype_t type
 The type of the entries vnode.
 
uint64_t size
 The size of the file that is visible outside the filesystem.
 
uint64_t blocks
 The amount of blocks used on disk to store the file.
 
uint64_t blockSize
 The preferred block size of the filesystem.
 
uint64_t maxFileSize
 The maximum size of a file on this filesystem.
 
uint64_t linkAmount
 The amount of times the vnode appears in dentries.
 
time_t accessTime
 Unix time stamp for the last vnode access.
 
time_t modifyTime
 Unix time stamp for last file content alteration.
 
time_t changeTime
 Unix time stamp for the last file metadata alteration.
 
time_t createTime
 Unix time stamp for the creation of the vnode.
 
char name [MAX_PATH]
 The name of the entry, not the full filepath. Includes the flags of the paths mount.
 
uint8_t padding [64]
 Padding to leave space for future expansion.
 

Detailed Description

Stat type.

Definition at line 377 of file fs.h.

Field Documentation

◆ sbid

sbid_t stat_t::sbid

The superblock ID of the filesystem containing the entry.

Definition at line 379 of file fs.h.

◆ number

uint64_t stat_t::number

The number of the entries vnode.

Definition at line 380 of file fs.h.

◆ type

vtype_t stat_t::type

The type of the entries vnode.

Definition at line 381 of file fs.h.

◆ size

uint64_t stat_t::size

The size of the file that is visible outside the filesystem.

Definition at line 382 of file fs.h.

◆ blocks

uint64_t stat_t::blocks

The amount of blocks used on disk to store the file.

Definition at line 383 of file fs.h.

◆ blockSize

uint64_t stat_t::blockSize

The preferred block size of the filesystem.

Definition at line 384 of file fs.h.

◆ maxFileSize

uint64_t stat_t::maxFileSize

The maximum size of a file on this filesystem.

Definition at line 385 of file fs.h.

◆ linkAmount

uint64_t stat_t::linkAmount

The amount of times the vnode appears in dentries.

Definition at line 386 of file fs.h.

◆ accessTime

time_t stat_t::accessTime

Unix time stamp for the last vnode access.

Definition at line 387 of file fs.h.

◆ modifyTime

time_t stat_t::modifyTime

Unix time stamp for last file content alteration.

Definition at line 388 of file fs.h.

◆ changeTime

time_t stat_t::changeTime

Unix time stamp for the last file metadata alteration.

Definition at line 389 of file fs.h.

◆ createTime

time_t stat_t::createTime

Unix time stamp for the creation of the vnode.

Definition at line 390 of file fs.h.

◆ name

char stat_t::name[MAX_PATH]

The name of the entry, not the full filepath. Includes the flags of the paths mount.

Definition at line 391 of file fs.h.

◆ padding

uint8_t stat_t::padding[64]

Padding to leave space for future expansion.

Definition at line 392 of file fs.h.


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