/* -*- mode: c; c-basic-offset: 8; -*- * vim: noexpandtab sw=8 ts=8 sts=0: * * ocfs1_fs_compat.h * * OCFS1 volume header definitions. OCFS2 creates valid but unmountable * OCFS1 volume headers on the first two sectors of an OCFS2 volume. * This allows an OCFS1 volume to see the partition and cleanly fail to * mount it. * * Copyright (C) 2002, 2004 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License, version 2, as published by the Free Software Foundation. * * 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. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA. */ #ifndef _OCFS1_FS_COMPAT_H #define _OCFS1_FS_COMPAT_H #define OCFS1_MAX_VOL_SIGNATURE_LEN 128 #define OCFS1_MAX_MOUNT_POINT_LEN 128 #define OCFS1_MAX_VOL_ID_LENGTH 16 #define OCFS1_MAX_VOL_LABEL_LEN 64 #define OCFS1_MAX_CLUSTER_NAME_LEN 64 #define OCFS1_MAJOR_VERSION (2) #define OCFS1_MINOR_VERSION (0) #define OCFS1_VOLUME_SIGNATURE "OracleCFS" /* * OCFS1 superblock. Lives at sector 0. */ struct ocfs1_vol_disk_hdr { /*00*/ __u32 minor_version; __u32 major_version; /*08*/ __u8 signature[OCFS1_MAX_VOL_SIGNATURE_LEN]; /*88*/ __u8 mount_point[OCFS1_MAX_MOUNT_POINT_LEN]; /*108*/ __u64 serial_num; /*110*/ __u64 device_size; __u64 start_off; /*120*/ __u64 bitmap_off; __u64 publ_off; /*130*/ __u64 vote_off; __u64 root_bitmap_off; /*140*/ __u64 data_start_off; __u64 root_bitmap_size; /*150*/ __u64 root_off; __u64 root_size; /*160*/ __u64 cluster_size; __u64 num_nodes; /*170*/ __u64 num_clusters; __u64 dir_node_size; /*180*/ __u64 file_node_size; __u64 internal_off; /*190*/ __u64 node_cfg_off; __u64 node_cfg_size; /*1A0*/ __u64 new_cfg_off; __u32 prot_bits; __s32 excl_mount; /*1B0*/ }; struct ocfs1_disk_lock { /*00*/ __u32 curr_master; __u8 file_lock; __u8 compat_pad[3]; /* Not in original definition. Used to make the already existing alignment explicit */ __u64 last_write_time; /*10*/ __u64 last_read_time; __u32 writer_node_num; __u32 reader_node_num; /*20*/ __u64 oin_node_map; __u64 dlock_seq_num; /*30*/ }; /* * OCFS1 volume label. Lives at sector 1. */ struct ocfs1_vol_label { /*00*/ struct ocfs1_disk_lock disk_lock; /*30*/ __u8 label[OCFS1_MAX_VOL_LABEL_LEN]; /*70*/ __u16 label_len; /*72*/ __u8 vol_id[OCFS1_MAX_VOL_ID_LENGTH]; /*82*/ __u16 vol_id_len; /*84*/ __u8 cluster_name[OCFS1_MAX_CLUSTER_NAME_LEN]; /*A4*/ __u16 cluster_name_len; /*A6*/ }; #endif /* _OCFS1_FS_COMPAT_H */ diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-12 21:58:13 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-12 21:58:13 -0800
commite7aa8c2eb11ba69b1b69099c3c7bd6be3087b0ba (patch)
treef63906f41699c8e38af9d12b063e2ceab0286ef2 /firmware/3com
parente34bac726d27056081d0250c0e173e4b155aa340 (diff)
parent868c97a846a73e937d835b09b8c885a69df50ec8 (diff)
Merge tag 'docs-4.10' of git://git.lwn.net/linuxHEADmaster
Pull documentation update from Jonathan Corbet: "These are the documentation changes for 4.10. It's another busy cycle for the docs tree, as the sphinx conversion continues. Highlights include: - Further work on PDF output, which remains a bit of a pain but should be more solid now. - Five more DocBook template files converted to Sphinx. Only 27 to go... Lots of plain-text files have also been converted and integrated. - Images in binary formats have been replaced with more source-friendly versions. - Various bits of organizational work, including the renaming of various files discussed at the kernel summit. - New documentation for the device_link mechanism. ... and, of course, lots of typo fixes and small updates" * tag 'docs-4.10' of git://git.lwn.net/linux: (193 commits) dma-buf: Extract dma-buf.rst Update Documentation/00-INDEX docs: 00-INDEX: document directories/files with no docs docs: 00-INDEX: remove non-existing entries docs: 00-INDEX: add missing entries for documentation files/dirs docs: 00-INDEX: consolidate process/ and admin-guide/ description scripts: add a script to check if Documentation/00-INDEX is sane Docs: change sh -> awk in REPORTING-BUGS Documentation/core-api/device_link: Add initial documentation core-api: remove an unexpected unident ppc/idle: Add documentation for powersave=off Doc: Correct typo, "Introdution" => "Introduction" Documentation/atomic_ops.txt: convert to ReST markup Documentation/local_ops.txt: convert to ReST markup Documentation/assoc_array.txt: convert to ReST markup docs-rst: parse-headers.pl: cleanup the documentation docs-rst: fix media cleandocs target docs-rst: media/Makefile: reorganize the rules docs-rst: media: build SVG from graphviz files docs-rst: replace bayer.png by a SVG image ...
Diffstat (limited to 'firmware/3com')