1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * Copyright (c) 2000-2001 Christoph Hellwig. 3 * Copyright (c) 2000-2001 Christoph Hellwig. 4 */ 4 */ 5 #ifndef _VXFS_OLT_H_ 5 #ifndef _VXFS_OLT_H_ 6 #define _VXFS_OLT_H_ 6 #define _VXFS_OLT_H_ 7 7 8 /* 8 /* 9 * Veritas filesystem driver - Object Location 9 * Veritas filesystem driver - Object Location Table data structures. 10 * 10 * 11 * This file contains definitions for the Obje 11 * This file contains definitions for the Object Location Table used 12 * by the Veritas Filesystem version 2 and new 12 * by the Veritas Filesystem version 2 and newer. 13 */ 13 */ 14 14 15 15 16 /* 16 /* 17 * OLT magic number (vxfs_olt->olt_magic). 17 * OLT magic number (vxfs_olt->olt_magic). 18 */ 18 */ 19 #define VXFS_OLT_MAGIC 0xa504FCF5 19 #define VXFS_OLT_MAGIC 0xa504FCF5 20 20 21 /* 21 /* 22 * VxFS OLT entry types. 22 * VxFS OLT entry types. 23 */ 23 */ 24 enum { 24 enum { 25 VXFS_OLT_FREE = 1, 25 VXFS_OLT_FREE = 1, 26 VXFS_OLT_FSHEAD = 2, 26 VXFS_OLT_FSHEAD = 2, 27 VXFS_OLT_CUT = 3, 27 VXFS_OLT_CUT = 3, 28 VXFS_OLT_ILIST = 4, 28 VXFS_OLT_ILIST = 4, 29 VXFS_OLT_DEV = 5, 29 VXFS_OLT_DEV = 5, 30 VXFS_OLT_SB = 6 30 VXFS_OLT_SB = 6 31 }; 31 }; 32 32 33 /* 33 /* 34 * VxFS OLT header. 34 * VxFS OLT header. 35 * 35 * 36 * The Object Location Table header is placed 36 * The Object Location Table header is placed at the beginning of each 37 * OLT extent. It is used to fing certain fil 37 * OLT extent. It is used to fing certain filesystem-wide metadata, e.g. 38 * the initial inode list, the fileset header 38 * the initial inode list, the fileset header or the device configuration. 39 */ 39 */ 40 struct vxfs_olt { 40 struct vxfs_olt { 41 __fs32 olt_magic; /* mag 41 __fs32 olt_magic; /* magic number */ 42 __fs32 olt_size; /* siz 42 __fs32 olt_size; /* size of this entry */ 43 __fs32 olt_checksum; /* che 43 __fs32 olt_checksum; /* checksum of extent */ 44 __u32 __unused1; /* ??? 44 __u32 __unused1; /* ??? */ 45 __fs32 olt_mtime; /* tim 45 __fs32 olt_mtime; /* time of last mod. (sec) */ 46 __fs32 olt_mutime; /* tim 46 __fs32 olt_mutime; /* time of last mod. (usec) */ 47 __fs32 olt_totfree; /* fre 47 __fs32 olt_totfree; /* free space in OLT extent */ 48 __fs32 olt_extents[2]; /* add 48 __fs32 olt_extents[2]; /* addr of this extent, replica */ 49 __fs32 olt_esize; /* siz 49 __fs32 olt_esize; /* size of this extent */ 50 __fs32 olt_next[2]; /* add 50 __fs32 olt_next[2]; /* addr of next extent, replica */ 51 __fs32 olt_nsize; /* siz 51 __fs32 olt_nsize; /* size of next extent */ 52 __u32 __unused2; /* ali 52 __u32 __unused2; /* align to 8 byte boundary */ 53 }; 53 }; 54 54 55 /* 55 /* 56 * VxFS common OLT entry (on disk). 56 * VxFS common OLT entry (on disk). 57 */ 57 */ 58 struct vxfs_oltcommon { 58 struct vxfs_oltcommon { 59 __fs32 olt_type; /* typ 59 __fs32 olt_type; /* type of this record */ 60 __fs32 olt_size; /* siz 60 __fs32 olt_size; /* size of this record */ 61 }; 61 }; 62 62 63 /* 63 /* 64 * VxFS free OLT entry (on disk). 64 * VxFS free OLT entry (on disk). 65 */ 65 */ 66 struct vxfs_oltfree { 66 struct vxfs_oltfree { 67 __fs32 olt_type; /* typ 67 __fs32 olt_type; /* type of this record */ 68 __fs32 olt_fsize; /* siz 68 __fs32 olt_fsize; /* size of this free record */ 69 }; 69 }; 70 70 71 /* 71 /* 72 * VxFS initial-inode list (on disk). 72 * VxFS initial-inode list (on disk). 73 */ 73 */ 74 struct vxfs_oltilist { 74 struct vxfs_oltilist { 75 __fs32 olt_type; /* type of thi 75 __fs32 olt_type; /* type of this record */ 76 __fs32 olt_size; /* size of thi 76 __fs32 olt_size; /* size of this record */ 77 __fs32 olt_iext[2]; /* ini 77 __fs32 olt_iext[2]; /* initial inode list, replica */ 78 }; 78 }; 79 79 80 /* 80 /* 81 * Current Usage Table 81 * Current Usage Table 82 */ 82 */ 83 struct vxfs_oltcut { 83 struct vxfs_oltcut { 84 __fs32 olt_type; /* typ 84 __fs32 olt_type; /* type of this record */ 85 __fs32 olt_size; /* siz 85 __fs32 olt_size; /* size of this record */ 86 __fs32 olt_cutino; /* ino 86 __fs32 olt_cutino; /* inode of current usage table */ 87 __u8 __pad; /* unu 87 __u8 __pad; /* unused, 8 byte align */ 88 }; 88 }; 89 89 90 /* 90 /* 91 * Inodes containing Superblock, Intent log an 91 * Inodes containing Superblock, Intent log and OLTs 92 */ 92 */ 93 struct vxfs_oltsb { 93 struct vxfs_oltsb { 94 __fs32 olt_type; /* typ 94 __fs32 olt_type; /* type of this record */ 95 __fs32 olt_size; /* siz 95 __fs32 olt_size; /* size of this record */ 96 __fs32 olt_sbino; /* ino 96 __fs32 olt_sbino; /* inode of superblock file */ 97 __u32 __unused1; /* ??? 97 __u32 __unused1; /* ??? */ 98 __fs32 olt_logino[2]; /* ino 98 __fs32 olt_logino[2]; /* inode of log file,replica */ 99 __fs32 olt_oltino[2]; /* ino 99 __fs32 olt_oltino[2]; /* inode of OLT, replica */ 100 }; 100 }; 101 101 102 /* 102 /* 103 * Inode containing device configuration + it' 103 * Inode containing device configuration + it's replica 104 */ 104 */ 105 struct vxfs_oltdev { 105 struct vxfs_oltdev { 106 __fs32 olt_type; /* typ 106 __fs32 olt_type; /* type of this record */ 107 __fs32 olt_size; /* siz 107 __fs32 olt_size; /* size of this record */ 108 __fs32 olt_devino[2]; /* ino 108 __fs32 olt_devino[2]; /* inode of device config files */ 109 }; 109 }; 110 110 111 /* 111 /* 112 * Fileset header 112 * Fileset header 113 */ 113 */ 114 struct vxfs_oltfshead { 114 struct vxfs_oltfshead { 115 __fs32 olt_type; /* typ 115 __fs32 olt_type; /* type number */ 116 __fs32 olt_size; /* siz 116 __fs32 olt_size; /* size of this record */ 117 __fs32 olt_fsino[2]; /* ino 117 __fs32 olt_fsino[2]; /* inodes of fileset header */ 118 }; 118 }; 119 119 120 #endif /* _VXFS_OLT_H_ */ 120 #endif /* _VXFS_OLT_H_ */ 121 121
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.