fs_crypto_check()

Updated: October 26, 2022

Determine if the underlying filesystem supports encryption

Synopsis:

#include <fs_crypto_api.h>
#include <sys/fs_crypto.h>

int fs_crypto_check( const char *path,
                     int *preply );

Arguments:

path
The path to the filesystem's mountpoint.
preply
A pointer to a location where the function can store additional success or error information.

Library:

libfscrypto

Use the -l fscrypto option to qcc to link against this library.

Description:

The fs_crypto_check() function determines if the underlying filesystem supports encryption.

Note: In order to use filesystem encryption, download the Encrypted Filesystem package from the QNX Software Center.

This function sets the variable pointed to by preply to one of the following values:

FS_CRYPTO_REPLY_INVALID
The command wasn't completed successfully.
FS_CRYPTO_REPLY_SUPPORTED
The filesystem supports encryption.
FS_CRYPTO_REPLY_NOSUPPORT
The filesystem doesn't support encryption.

Returns:

EOK
Success.
EINVAL
The path is invalid.

This function can also return any of the errors indicated by devctl() or open().

Classification:

QNX Neutrino

Safety:  
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread Yes