netatalk  4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
test_capabilities.h File Reference
#include <atalk/volume.h>

Go to the source code of this file.

Enumerations

enum  test_capability { TEST_CAP_FAULT_INJECT , TEST_CAP_EA_SYS }

Functions

int test_capability (enum test_capability cap, const struct vol *vol)
 Probe a capability; the result is cached for the run.
const char * test_capability_name (enum test_capability cap)
 Short capability name for skip/log messages.

Enumeration Type Documentation

◆ test_capability

Enumerator
TEST_CAP_FAULT_INJECT 
TEST_CAP_EA_SYS 

Function Documentation

◆ test_capability()

int test_capability ( enum test_capability cap,
const struct vol * vol )

Probe a capability; the result is cached for the run.

Parameters
capthe capability to probe
volsupplies a filesystem path for capabilities probed against the volume (TEST_CAP_EA_SYS, TEST_CAP_FAULT_INJECT use vol->v_path for a scratch file); must not be NULL.
Returns
1 if the capability is available, 0 otherwise.

◆ test_capability_name()

const char * test_capability_name ( enum test_capability cap)

Short capability name for skip/log messages.