Updated: October 28, 2024 |
Change file extended mode bits (non-POSIX)
chemod [-Rv] [-s | -c mode_bits] path
QNX Neutrino
The chemod utility displays or modifies the extended mode bits of the specified path. The mode_bits variable is a string of characters indicating which bits should be modified. Extended mode bits are currently only supported on the Power-Safe filesystem.
If neither the -c nor the -s option is given, chemod displays the mode_bits value for the given path. If multiple -c or -s options are given, the last one takes effect.
Extended mode bits
The mode_bits value can be any combination of the following characters:
Marks myfile as being affected by the artificial free space limit (alimit=) filesystem value:
chemod -s a myfile
Removes the artificial free space limit (alimit=) from myfile:
chemod -c a myfile
Marks myfile as having the Copy-on-Write semantics of the Power-Safe filesystem disabled, for the specified path. This implies a loss of power-loss resiliency in the file data:
chemod -s i myfile
Marks myfile as having the Copy-on-Write semantics of the Power-Safe filesystem enabled, for the specified path. This allows for power-loss resiliency in the file data:
chemod -c i myfile
Marks myfile as being both affected by the artificial free space limit (alimit=) filesystem value and having the Copy-on-Write semantics of the Power-Safe filesystem disabled, for the specified path:
chemod -s ai myfile