This file is indexed.

/usr/include/o2cb/o2cb_client_proto.h is in ocfs2-tools-dev 1.8.5-3ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* -*- mode: c; c-basic-offset: 8; -*-
 * vim: noexpandtab sw=8 ts=8 sts=0:
 */

/******************************************************************************
*******************************************************************************
**
**  Copyright (C) 2005 Red Hat, Inc.  All rights reserved.
**
**  This copyrighted material is made available to anyone wishing to use,
**  modify, copy, or redistribute it subject to the terms and conditions
**  of the GNU General Public License v.2.
**
*******************************************************************************
******************************************************************************/

/*
 * Copyright (C) 2007 Oracle.  All rights reserved.
 *
 *  This copyrighted material is made available to anyone wishing to use,
 *  modify, copy, or redistribute it subject to the terms and conditions
 *  of the GNU General Public License v.2.
 */

#ifndef __O2CB_CLIENT_PROTO_H
#define __O2CB_CLIENT_PROTO_H

/* Basic communication properties */
#define OCFS2_CONTROLD_MAXLINE		256
#define OCFS2_CONTROLD_MAXARGS		16
#define OCFS2_CONTROLD_SOCK_PATH	"ocfs2_controld_sock"
#define O2CB_CONTROLD_SOCK_PATH		"o2cb_controld_sock"

/* Client messages */
typedef enum {
	CM_MOUNT,
	CM_MRESULT,
	CM_UNMOUNT,
	CM_STATUS,
	CM_LISTFS,
	CM_LISTMOUNTS,
	CM_LISTCLUSTERS,
	CM_ITEMCOUNT,
	CM_ITEM,
	CM_DUMP,
} client_message;

int client_listen(const char *path);
int client_connect(const char *path);

static inline int ocfs2_client_listen(void)
{
	return client_listen(OCFS2_CONTROLD_SOCK_PATH);
}

static inline int ocfs2_client_connect(void)
{
	return client_connect(OCFS2_CONTROLD_SOCK_PATH);
}

const char *message_to_string(client_message message);
int send_message(int fd, client_message message, ...);
int receive_message(int fd, char *buf, client_message *message,
		    char **argv);
int receive_message_full(int fd, char *buf, client_message *message,
			 char **argv, char **rest);
void free_received_list(char **list);
int receive_list(int fd, char *buf, char ***ret_list);
int parse_status(char **args, int *error, char **error_msg);

#endif  /* __O2CB_CLIENT_PROTO_H */