Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
54c56d12fa9cf50ad5416224bf67d6e6ce2201ef
[fs/lustre-release.git]
/
libsysio
/
tests
/
startup.c
1
#include <stdlib.h>
2
#include <errno.h>
3
#include <sys/types.h>
4
#include <sys/queue.h>
5
6
#include "sysio.h"
7
8
#include "test.h"
9
10
int
11
_test_sysio_startup()
12
{
13
int err;
14
const char *s;
15
16
err = _sysio_init();
17
if (err)
18
return err;
19
err = drv_init_all();
20
if (err)
21
return err;
22
s = getenv("SYSIO_NAMESPACE");
23
err = s ? _sysio_boot(s) : -ENOTTY;
24
if (err)
25
return err;
26
return 0;
27
}