Linux Audio

Check our new training course

Loading...
v3.15
  1/* -*- mode: c; c-basic-offset: 8; -*-
  2 * vim: noexpandtab sw=8 ts=8 sts=0:
  3 *
  4 * ocfs1_fs_compat.h
  5 *
  6 * OCFS1 volume header definitions.  OCFS2 creates valid but unmountable
  7 * OCFS1 volume headers on the first two sectors of an OCFS2 volume.
  8 * This allows an OCFS1 volume to see the partition and cleanly fail to
  9 * mount it.
 10 *
 11 * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
 12 *
 13 * This program is free software; you can redistribute it and/or
 14 * modify it under the terms of the GNU General Public
 15 * License, version 2,  as published by the Free Software Foundation.
 16 *
 17 * This program is distributed in the hope that it will be useful,
 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 20 * General Public License for more details.
 21 *
 22 * You should have received a copy of the GNU General Public
 23 * License along with this program; if not, write to the
 24 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 25 * Boston, MA 021110-1307, USA.
 26 */
 27
 28#ifndef _OCFS1_FS_COMPAT_H
 29#define _OCFS1_FS_COMPAT_H
 30
 31#define OCFS1_MAX_VOL_SIGNATURE_LEN          128
 32#define OCFS1_MAX_MOUNT_POINT_LEN            128
 33#define OCFS1_MAX_VOL_ID_LENGTH               16
 34#define OCFS1_MAX_VOL_LABEL_LEN               64
 35#define OCFS1_MAX_CLUSTER_NAME_LEN            64
 36
 37#define OCFS1_MAJOR_VERSION              (2)
 38#define OCFS1_MINOR_VERSION              (0)
 39#define OCFS1_VOLUME_SIGNATURE		 "OracleCFS"
 40
 41/*
 42 * OCFS1 superblock.  Lives at sector 0.
 43 */
 44struct ocfs1_vol_disk_hdr
 45{
 46/*00*/	__u32 minor_version;
 47	__u32 major_version;
 48/*08*/	__u8 signature[OCFS1_MAX_VOL_SIGNATURE_LEN];
 49/*88*/	__u8 mount_point[OCFS1_MAX_MOUNT_POINT_LEN];
 50/*108*/	__u64 serial_num;
 51/*110*/	__u64 device_size;
 52	__u64 start_off;
 53/*120*/	__u64 bitmap_off;
 54	__u64 publ_off;
 55/*130*/	__u64 vote_off;
 56	__u64 root_bitmap_off;
 57/*140*/	__u64 data_start_off;
 58	__u64 root_bitmap_size;
 59/*150*/	__u64 root_off;
 60	__u64 root_size;
 61/*160*/	__u64 cluster_size;
 62	__u64 num_nodes;
 63/*170*/	__u64 num_clusters;
 64	__u64 dir_node_size;
 65/*180*/	__u64 file_node_size;
 66	__u64 internal_off;
 67/*190*/	__u64 node_cfg_off;
 68	__u64 node_cfg_size;
 69/*1A0*/	__u64 new_cfg_off;
 70	__u32 prot_bits;
 71	__s32 excl_mount;
 72/*1B0*/
 73};
 74
 75
 76struct ocfs1_disk_lock
 77{
 78/*00*/	__u32 curr_master;
 79	__u8 file_lock;
 80	__u8 compat_pad[3];  /* Not in original definition.  Used to
 81				make the already existing alignment
 82				explicit */
 83	__u64 last_write_time;
 84/*10*/	__u64 last_read_time;
 85	__u32 writer_node_num;
 86	__u32 reader_node_num;
 87/*20*/	__u64 oin_node_map;
 88	__u64 dlock_seq_num;
 89/*30*/
 90};
 91
 92/*
 93 * OCFS1 volume label.  Lives at sector 1.
 94 */
 95struct ocfs1_vol_label
 96{
 97/*00*/	struct ocfs1_disk_lock disk_lock;
 98/*30*/	__u8 label[OCFS1_MAX_VOL_LABEL_LEN];
 99/*70*/	__u16 label_len;
100/*72*/	__u8 vol_id[OCFS1_MAX_VOL_ID_LENGTH];
101/*82*/	__u16 vol_id_len;
102/*84*/	__u8 cluster_name[OCFS1_MAX_CLUSTER_NAME_LEN];
103/*A4*/	__u16 cluster_name_len;
104/*A6*/
105};
106
107
108#endif /* _OCFS1_FS_COMPAT_H */
109
v4.17
  1/* -*- mode: c; c-basic-offset: 8; -*-
  2 * vim: noexpandtab sw=8 ts=8 sts=0:
  3 *
  4 * ocfs1_fs_compat.h
  5 *
  6 * OCFS1 volume header definitions.  OCFS2 creates valid but unmountable
  7 * OCFS1 volume headers on the first two sectors of an OCFS2 volume.
  8 * This allows an OCFS1 volume to see the partition and cleanly fail to
  9 * mount it.
 10 *
 11 * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
 12 *
 13 * This program is free software; you can redistribute it and/or
 14 * modify it under the terms of the GNU General Public
 15 * License, version 2,  as published by the Free Software Foundation.
 16 *
 17 * This program is distributed in the hope that it will be useful,
 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 20 * General Public License for more details.
 21 *
 22 * You should have received a copy of the GNU General Public
 23 * License along with this program; if not, write to the
 24 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 25 * Boston, MA 021110-1307, USA.
 26 */
 27
 28#ifndef _OCFS1_FS_COMPAT_H
 29#define _OCFS1_FS_COMPAT_H
 30
 31#define OCFS1_MAX_VOL_SIGNATURE_LEN          128
 32#define OCFS1_MAX_MOUNT_POINT_LEN            128
 33#define OCFS1_MAX_VOL_ID_LENGTH               16
 34#define OCFS1_MAX_VOL_LABEL_LEN               64
 35#define OCFS1_MAX_CLUSTER_NAME_LEN            64
 36
 37#define OCFS1_MAJOR_VERSION              (2)
 38#define OCFS1_MINOR_VERSION              (0)
 39#define OCFS1_VOLUME_SIGNATURE		 "OracleCFS"
 40
 41/*
 42 * OCFS1 superblock.  Lives at sector 0.
 43 */
 44struct ocfs1_vol_disk_hdr
 45{
 46/*00*/	__u32 minor_version;
 47	__u32 major_version;
 48/*08*/	__u8 signature[OCFS1_MAX_VOL_SIGNATURE_LEN];
 49/*88*/	__u8 mount_point[OCFS1_MAX_MOUNT_POINT_LEN];
 50/*108*/	__u64 serial_num;
 51/*110*/	__u64 device_size;
 52	__u64 start_off;
 53/*120*/	__u64 bitmap_off;
 54	__u64 publ_off;
 55/*130*/	__u64 vote_off;
 56	__u64 root_bitmap_off;
 57/*140*/	__u64 data_start_off;
 58	__u64 root_bitmap_size;
 59/*150*/	__u64 root_off;
 60	__u64 root_size;
 61/*160*/	__u64 cluster_size;
 62	__u64 num_nodes;
 63/*170*/	__u64 num_clusters;
 64	__u64 dir_node_size;
 65/*180*/	__u64 file_node_size;
 66	__u64 internal_off;
 67/*190*/	__u64 node_cfg_off;
 68	__u64 node_cfg_size;
 69/*1A0*/	__u64 new_cfg_off;
 70	__u32 prot_bits;
 71	__s32 excl_mount;
 72/*1B0*/
 73};
 74
 75
 76struct ocfs1_disk_lock
 77{
 78/*00*/	__u32 curr_master;
 79	__u8 file_lock;
 80	__u8 compat_pad[3];  /* Not in original definition.  Used to
 81				make the already existing alignment
 82				explicit */
 83	__u64 last_write_time;
 84/*10*/	__u64 last_read_time;
 85	__u32 writer_node_num;
 86	__u32 reader_node_num;
 87/*20*/	__u64 oin_node_map;
 88	__u64 dlock_seq_num;
 89/*30*/
 90};
 91
 92/*
 93 * OCFS1 volume label.  Lives at sector 1.
 94 */
 95struct ocfs1_vol_label
 96{
 97/*00*/	struct ocfs1_disk_lock disk_lock;
 98/*30*/	__u8 label[OCFS1_MAX_VOL_LABEL_LEN];
 99/*70*/	__u16 label_len;
100/*72*/	__u8 vol_id[OCFS1_MAX_VOL_ID_LENGTH];
101/*82*/	__u16 vol_id_len;
102/*84*/	__u8 cluster_name[OCFS1_MAX_CLUSTER_NAME_LEN];
103/*A4*/	__u16 cluster_name_len;
104/*A6*/
105};
106
107
108#endif /* _OCFS1_FS_COMPAT_H */
109