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
|
/*
* vmfs-tools - Tools to access VMFS filesystems
* Copyright (C) 2009 Christophe Fillot <cf@utc.fr>
* Copyright (C) 2009 Mike Hommey <mh@glandium.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef VMFS_H
#define VMFS_H
/* VMFS types - forward declarations */
typedef struct vmfs_volinfo vmfs_volinfo_t;
typedef struct vmfs_fsinfo vmfs_fsinfo_t;
typedef struct vmfs_lvminfo vmfs_lvminfo_t;
typedef struct vmfs_heartbeat vmfs_heartbeat_t;
typedef struct vmfs_metadata_hdr vmfs_metadata_hdr_t;
typedef struct vmfs_block_info vmfs_block_info_t;
typedef struct vmfs_bitmap_header vmfs_bitmap_header_t;
typedef struct vmfs_bitmap_entry vmfs_bitmap_entry_t;
typedef struct vmfs_bitmap vmfs_bitmap_t;
typedef struct vmfs_inode vmfs_inode_t;
typedef struct vmfs_dirent vmfs_dirent_t;
typedef struct vmfs_dir vmfs_dir_t;
typedef struct vmfs_blk_array vmfs_blk_array_t;
typedef struct vmfs_blk_list vmfs_blk_list_t;
typedef struct vmfs_file vmfs_file_t;
typedef struct vmfs_device vmfs_device_t;
typedef struct vmfs_volume vmfs_volume_t;
typedef struct vmfs_lvm vmfs_lvm_t;
typedef struct vmfs_fs vmfs_fs_t;
union vmfs_flags {
int packed;
struct {
unsigned int debug_level:4;
unsigned int read_write:1;
unsigned int allow_missing_extents:1;
};
};
typedef union vmfs_flags vmfs_flags_t __attribute__((transparent_union));
#include "utils.h"
#include "vmfs_heartbeat.h"
#include "vmfs_metadata.h"
#include "vmfs_block.h"
#include "vmfs_bitmap.h"
#include "vmfs_inode.h"
#include "vmfs_dirent.h"
#include "vmfs_file.h"
#include "vmfs_device.h"
#include "vmfs_volume.h"
#include "vmfs_lvm.h"
#include "vmfs_fs.h"
#include "vmfs_host.h"
#endif
|