Motr  M0
m0t1fs_fwait_test_helper.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <string.h>
#include <sys/ioctl.h>
#include "m0t1fs/m0t1fs_ioctl.h"
Include dependency graph for m0t1fs_fwait_test_helper.c:

Go to the source code of this file.

Macros

#define PASS   "pass"
 
#define FAIL   "fail"
 

Functions

int test_fwait_write (int fd)
 
int test_wrong_cmd (int fd)
 
int test_wrong_fd (void)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ FAIL

#define FAIL   "fail"

Definition at line 35 of file m0t1fs_fwait_test_helper.c.

◆ PASS

#define PASS   "pass"

Definition at line 34 of file m0t1fs_fwait_test_helper.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 77 of file m0t1fs_fwait_test_helper.c.

Here is the call graph for this function:

◆ test_fwait_write()

int test_fwait_write ( int  fd)

Creates an object in motr, writes some data and tries to fwait on it.

Definition at line 40 of file m0t1fs_fwait_test_helper.c.

Here is the caller graph for this function:

◆ test_wrong_cmd()

int test_wrong_cmd ( int  fd)

Generates an ioctl with an unknown command associated.

Definition at line 58 of file m0t1fs_fwait_test_helper.c.

Here is the caller graph for this function:

◆ test_wrong_fd()

int test_wrong_fd ( void  )

Generates an ioctl targeted to an invalid file descriptor.

Definition at line 69 of file m0t1fs_fwait_test_helper.c.

Here is the caller graph for this function: