Go to the source code of this file.
◆ anonymous enum
Enumerator |
---|
SINGLE_THREAD_TEST | |
MULTI_THREAD_TEST | |
KEY_START | |
NR | |
KEY_MAX | |
NR_FIDS | |
Definition at line 41 of file flock.c.
◆ anonymous enum
Enumerator |
---|
FILE_LOCK | |
FILE_LOCK_WAIT | |
FILE_LOCKED | |
FILE_UNLOCK_WAIT | |
Definition at line 64 of file flock.c.
◆ fids_set()
static int fids_set |
( |
void |
| ) |
|
|
static |
◆ file_lock_verify()
static int file_lock_verify |
( |
struct m0_sns_cm * |
scm, |
|
|
struct m0_fid * |
fid, |
|
|
int64_t |
ref |
|
) |
| |
|
static |
◆ file_lock_wait()
◆ file_unlock_and_wait()
◆ flock_ut_fom_free()
◆ flock_ut_fom_tick()
static int flock_ut_fom_tick |
( |
struct m0_fom * |
fom, |
|
|
void * |
data, |
|
|
int * |
phase |
|
) |
| |
|
static |
◆ fom_simple2flock_fom()
◆ sns_file_lock_unlock()
static void sns_file_lock_unlock |
( |
void |
| ) |
|
|
static |
◆ sns_flock_multi_fom()
static void sns_flock_multi_fom |
( |
void |
| ) |
|
|
static |
◆ sns_flock_single_fom()
static void sns_flock_single_fom |
( |
void |
| ) |
|
|
static |
◆ test_fini()
static int test_fini |
( |
void |
| ) |
|
|
static |
◆ test_setup()
static int test_setup |
( |
void |
| ) |
|
|
static |
◆ cm
◆ fid_index
◆ flock_ut_conf
Initial value:= {
.scf_name = "flock ut fom",
}
static struct m0_sm_state_descr flock_ut_fom_phases[]
Definition at line 99 of file flock.c.
◆ flock_ut_fom_phases
Initial value:= {
.sd_name = "init",
},
.sd_name = "File lock acquire",
},
.sd_name = "Wait for file lock",
},
.sd_name = "file locked, now unlock",
},
.sd_name = "file unlocked, now fini",
},
.sd_name = "fini",
}
}
Definition at line 71 of file flock.c.
◆ fs
◆ gfid
◆ reqh
◆ scm
◆ service
◆ sns_flock_ut
Initial value:= {
.ts_name = "sns-file-lock-ut",
.ts_tests = {
}
}
static void sns_flock_single_fom(void)
static void sns_file_lock_unlock(void)
static int test_setup(void)
static void sns_flock_multi_fom(void)
static int test_fini(void)
Definition at line 343 of file flock.c.
◆ test_fids