~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/ocfs2/ocfs1_fs_compat.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * ocfs1_fs_compat.h
  4  *
  5  * OCFS1 volume header definitions.  OCFS2 creates valid but unmountable
  6  * OCFS1 volume headers on the first two sectors of an OCFS2 volume.
  7  * This allows an OCFS1 volume to see the partition and cleanly fail to
  8  * mount it.
  9  *
 10  * Copyright (C) 2002, 2004 Oracle.  All rights reserved.
 11  */
 12 
 13 #ifndef _OCFS1_FS_COMPAT_H
 14 #define _OCFS1_FS_COMPAT_H
 15 
 16 #define OCFS1_MAX_VOL_SIGNATURE_LEN          128
 17 #define OCFS1_MAX_MOUNT_POINT_LEN            128
 18 #define OCFS1_MAX_VOL_ID_LENGTH               16
 19 #define OCFS1_MAX_VOL_LABEL_LEN               64
 20 #define OCFS1_MAX_CLUSTER_NAME_LEN            64
 21 
 22 #define OCFS1_MAJOR_VERSION              (2)
 23 #define OCFS1_MINOR_VERSION              (0)
 24 #define OCFS1_VOLUME_SIGNATURE           "OracleCFS"
 25 
 26 /*
 27  * OCFS1 superblock.  Lives at sector 0.
 28  */
 29 struct ocfs1_vol_disk_hdr
 30 {
 31 /*00*/  __u32 minor_version;
 32         __u32 major_version;
 33 /*08*/  __u8 signature[OCFS1_MAX_VOL_SIGNATURE_LEN];
 34 /*88*/  __u8 mount_point[OCFS1_MAX_MOUNT_POINT_LEN];
 35 /*108*/ __u64 serial_num;
 36 /*110*/ __u64 device_size;
 37         __u64 start_off;
 38 /*120*/ __u64 bitmap_off;
 39         __u64 publ_off;
 40 /*130*/ __u64 vote_off;
 41         __u64 root_bitmap_off;
 42 /*140*/ __u64 data_start_off;
 43         __u64 root_bitmap_size;
 44 /*150*/ __u64 root_off;
 45         __u64 root_size;
 46 /*160*/ __u64 cluster_size;
 47         __u64 num_nodes;
 48 /*170*/ __u64 num_clusters;
 49         __u64 dir_node_size;
 50 /*180*/ __u64 file_node_size;
 51         __u64 internal_off;
 52 /*190*/ __u64 node_cfg_off;
 53         __u64 node_cfg_size;
 54 /*1A0*/ __u64 new_cfg_off;
 55         __u32 prot_bits;
 56         __s32 excl_mount;
 57 /*1B0*/
 58 };
 59 
 60 
 61 struct ocfs1_disk_lock
 62 {
 63 /*00*/  __u32 curr_master;
 64         __u8 file_lock;
 65         __u8 compat_pad[3];  /* Not in original definition.  Used to
 66                                 make the already existing alignment
 67                                 explicit */
 68         __u64 last_write_time;
 69 /*10*/  __u64 last_read_time;
 70         __u32 writer_node_num;
 71         __u32 reader_node_num;
 72 /*20*/  __u64 oin_node_map;
 73         __u64 dlock_seq_num;
 74 /*30*/
 75 };
 76 
 77 /*
 78  * OCFS1 volume label.  Lives at sector 1.
 79  */
 80 struct ocfs1_vol_label
 81 {
 82 /*00*/  struct ocfs1_disk_lock disk_lock;
 83 /*30*/  __u8 label[OCFS1_MAX_VOL_LABEL_LEN];
 84 /*70*/  __u16 label_len;
 85 /*72*/  __u8 vol_id[OCFS1_MAX_VOL_ID_LENGTH];
 86 /*82*/  __u16 vol_id_len;
 87 /*84*/  __u8 cluster_name[OCFS1_MAX_CLUSTER_NAME_LEN];
 88 /*A4*/  __u16 cluster_name_len;
 89 /*A6*/
 90 };
 91 
 92 
 93 #endif /* _OCFS1_FS_COMPAT_H */
 94 
 95 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php