~wb-munzinger/+junk/ocfs2-tools

« back to all changes in this revision

Viewing changes to o2cb_ctl/o2cb_scandisk.h

  • Committer: David Weber
  • Date: 2012-01-30 08:42:00 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: wb@munzinger.de-20120130084200-c8cy478mu9fk7tkf
Import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: c; c-basic-offset: 8; -*-
 
2
 * vim: noexpandtab sw=8 ts=8 sts=0:
 
3
 *
 
4
 * o2cb_scandisk.h
 
5
 *
 
6
 * Copyright (C) 2010 Oracle.  All rights reserved.
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU General Public
 
10
 * License, version 2,  as published by the Free Software Foundation.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * General Public License for more details.
 
16
 */
 
17
 
 
18
#include <stdio.h>
 
19
#include <time.h>
 
20
#include <stdlib.h>
 
21
#include <string.h>
 
22
#include <sys/param.h>
 
23
#include <dirent.h>
 
24
#include <sys/sysmacros.h>
 
25
#include <sys/stat.h>
 
26
#include <unistd.h>
 
27
 
 
28
#include "tools-internal/scandisk.h"
 
29
#include "o2cb/o2cb.h"
 
30
 
 
31
#include "ocfs2-kernel/kernel-list.h"
 
32
 
 
33
struct o2cb_device {
 
34
        struct list_head od_list;
 
35
        char *od_uuid;
 
36
#define O2CB_DEVICE_FOUND               0x01
 
37
#define O2CB_DEVICE_HB_STARTED          0x02
 
38
        int od_flags;
 
39
        struct o2cb_region_desc od_region;
 
40
        struct o2cb_cluster_desc od_cluster;
 
41
};
 
42
 
 
43
void o2cb_scandisk(struct list_head *hbdevs);