FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_reserved::ns_casefold Namespace Reference

Case-insensitive filesystem flag management in reserved space. More...

Functions

Value< void > write (fs::path const &path_file_binary, uint8_t is_casefold)
 Writes a notification flag to the flatimage binary.
 
Value< uint8_t > read (fs::path const &path_file_binary)
 Read a notification flag from the flatimage binary.
 

Detailed Description

Case-insensitive filesystem flag management in reserved space.

This namespace manages a single-byte flag in the binary's reserved space that controls whether the case-insensitive overlay (CIOPFS) is enabled. When enabled, CIOPFS provides Windows-style case-insensitive filesystem semantics, which is essential for Wine/Proton compatibility. Note that CIOPFS is not case-preserving and stores filenames in lowercase.

Function Documentation

◆ read()

Value< uint8_t > ns_reserved::ns_casefold::read ( fs::path const & path_file_binary)
inline

Read a notification flag from the flatimage binary.

Parameters
path_file_binaryPath to the flatimage binary
Returns
On success, if casefold is enabled or not. Or the respective error.

Definition at line 61 of file casefold.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

Value< void > ns_reserved::ns_casefold::write ( fs::path const & path_file_binary,
uint8_t is_casefold )
inline

Writes a notification flag to the flatimage binary.

Parameters
path_file_binaryPath to the flatimage binary
is_casefoldWhether casefold should be enabled or not
Returns
Value<void> Success or error

Definition at line 44 of file casefold.hpp.

Here is the call graph for this function:
Here is the caller graph for this function: