-
Notifications
You must be signed in to change notification settings - Fork 109
/
op_init.c
38 lines (30 loc) · 840 Bytes
/
op_init.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Copyright (c) 2010, Gerard Lledó Vives, [email protected]
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. See README and COPYING for
* more details.
*/
#include <stdlib.h>
#include "inode.h"
#include "logging.h"
#include "ops.h"
#include "super.h"
void *op_init(struct fuse_conn_info *info)
{
INFO("Using FUSE protocol %d.%d", info->proto_major, info->proto_minor);
if (super_fill() != 0) {
ERR("ext4fuse cannot continue");
abort();
}
if (super_group_fill() != 0) {
ERR("ext4fuse cannot continue");
abort();
}
if (inode_init() != 0) {
ERR("inode initialization failed")
abort();
}
return NULL;
}