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

TOMOYO Linux Cross Reference
Linux/fs/freevxfs/vxfs_olt.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /fs/freevxfs/vxfs_olt.h (Version linux-6.11.5) and /fs/freevxfs/vxfs_olt.h (Version linux-2.4.37.11)


  1 /* SPDX-License-Identifier: GPL-2.0-only */    << 
  2 /*                                                  1 /*
  3  * Copyright (c) 2000-2001 Christoph Hellwig.       2  * Copyright (c) 2000-2001 Christoph Hellwig.
                                                   >>   3  * All rights reserved.
                                                   >>   4  *
                                                   >>   5  * Redistribution and use in source and binary forms, with or without
                                                   >>   6  * modification, are permitted provided that the following conditions
                                                   >>   7  * are met:
                                                   >>   8  * 1. Redistributions of source code must retain the above copyright
                                                   >>   9  *    notice, this list of conditions, and the following disclaimer,
                                                   >>  10  *    without modification.
                                                   >>  11  * 2. The name of the author may not be used to endorse or promote products
                                                   >>  12  *    derived from this software without specific prior written permission.
                                                   >>  13  *
                                                   >>  14  * Alternatively, this software may be distributed under the terms of the
                                                   >>  15  * GNU General Public License ("GPL").
                                                   >>  16  *
                                                   >>  17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
                                                   >>  18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                                                   >>  19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                                                   >>  20  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
                                                   >>  21  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                                                   >>  22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                                                   >>  23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                                                   >>  24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                                                   >>  25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                                                   >>  26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                                                   >>  27  * SUCH DAMAGE.
                                                   >>  28  *
  4  */                                                29  */
  5 #ifndef _VXFS_OLT_H_                               30 #ifndef _VXFS_OLT_H_
  6 #define _VXFS_OLT_H_                               31 #define _VXFS_OLT_H_
  7                                                    32 
                                                   >>  33 #ident "$Id: vxfs_olt.h,v 1.5 2001/04/25 18:11:23 hch Exp hch $"
                                                   >>  34 
  8 /*                                                 35 /*
  9  * Veritas filesystem driver - Object Location     36  * Veritas filesystem driver - Object Location Table data structures.
 10  *                                                 37  *
 11  * This file contains definitions for the Obje     38  * This file contains definitions for the Object Location Table used
 12  * by the Veritas Filesystem version 2 and new     39  * by the Veritas Filesystem version 2 and newer.
 13  */                                                40  */
 14                                                    41 
 15                                                    42 
 16 /*                                                 43 /*
 17  * OLT magic number (vxfs_olt->olt_magic).         44  * OLT magic number (vxfs_olt->olt_magic).
 18  */                                                45  */
 19 #define VXFS_OLT_MAGIC          0xa504FCF5         46 #define VXFS_OLT_MAGIC          0xa504FCF5
 20                                                    47 
 21 /*                                                 48 /*
 22  * VxFS OLT entry types.                           49  * VxFS OLT entry types.
 23  */                                                50  */
 24 enum {                                             51 enum {
 25         VXFS_OLT_FREE   = 1,                       52         VXFS_OLT_FREE   = 1,
 26         VXFS_OLT_FSHEAD = 2,                       53         VXFS_OLT_FSHEAD = 2,
 27         VXFS_OLT_CUT    = 3,                       54         VXFS_OLT_CUT    = 3,
 28         VXFS_OLT_ILIST  = 4,                       55         VXFS_OLT_ILIST  = 4,
 29         VXFS_OLT_DEV    = 5,                       56         VXFS_OLT_DEV    = 5,
 30         VXFS_OLT_SB     = 6                        57         VXFS_OLT_SB     = 6
 31 };                                                 58 };
 32                                                    59 
 33 /*                                                 60 /*
 34  * VxFS OLT header.                                61  * VxFS OLT header.
 35  *                                                 62  *
 36  * The Object Location Table header is placed      63  * The Object Location Table header is placed at the beginning of each
 37  * OLT extent.  It is used to fing certain fil     64  * OLT extent.  It is used to fing certain filesystem-wide metadata, e.g.
 38  * the initial inode list, the fileset header  !!  65  * the inital inode list, the fileset header or the device configuration.
 39  */                                                66  */
 40 struct vxfs_olt {                                  67 struct vxfs_olt {
 41         __fs32          olt_magic;      /* mag !!  68         u_int32_t       olt_magic;      /* magic number                 */
 42         __fs32          olt_size;       /* siz !!  69         u_int32_t       olt_size;       /* size of this entry           */
 43         __fs32          olt_checksum;   /* che !!  70         u_int32_t       olt_checksum;   /* checksum of extent           */
 44         __u32           __unused1;      /* ??? !!  71         u_int32_t       __unused1;      /* ???                          */
 45         __fs32          olt_mtime;      /* tim !!  72         u_int32_t       olt_mtime;      /* time of last mod. (sec)      */
 46         __fs32          olt_mutime;     /* tim !!  73         u_int32_t       olt_mutime;     /* time of last mod. (usec)     */
 47         __fs32          olt_totfree;    /* fre !!  74         u_int32_t       olt_totfree;    /* free space in OLT extent     */
 48         __fs32          olt_extents[2]; /* add !!  75         vx_daddr_t      olt_extents[2]; /* addr of this extent, replica */
 49         __fs32          olt_esize;      /* siz !!  76         u_int32_t       olt_esize;      /* size of this extent          */
 50         __fs32          olt_next[2];    /* add !!  77         vx_daddr_t      olt_next[2];    /* addr of next extent, replica */
 51         __fs32          olt_nsize;      /* siz !!  78         u_int32_t       olt_nsize;      /* size of next extent          */
 52         __u32           __unused2;      /* ali !!  79         u_int32_t       __unused2;      /* align to 8 byte boundary     */
 53 };                                                 80 };
 54                                                    81 
 55 /*                                                 82 /*
 56  * VxFS common OLT entry (on disk).                83  * VxFS common OLT entry (on disk).
 57  */                                                84  */
 58 struct vxfs_oltcommon {                            85 struct vxfs_oltcommon {
 59         __fs32          olt_type;       /* typ !!  86         u_int32_t       olt_type;       /* type of this record          */
 60         __fs32          olt_size;       /* siz !!  87         u_int32_t       olt_size;       /* size of this record          */
 61 };                                                 88 };
 62                                                    89 
 63 /*                                                 90 /*
 64  * VxFS free OLT entry (on disk).                  91  * VxFS free OLT entry (on disk).
 65  */                                                92  */
 66 struct vxfs_oltfree {                              93 struct vxfs_oltfree {
 67         __fs32          olt_type;       /* typ !!  94         u_int32_t       olt_type;       /* type of this record          */
 68         __fs32          olt_fsize;      /* siz !!  95         u_int32_t       olt_fsize;      /* size of this free record     */
 69 };                                                 96 };
 70                                                    97 
 71 /*                                                 98 /*
 72  * VxFS initial-inode list (on disk).              99  * VxFS initial-inode list (on disk).
 73  */                                               100  */
 74 struct vxfs_oltilist {                            101 struct vxfs_oltilist {
 75         __fs32  olt_type;       /* type of thi !! 102         u_int32_t       olt_type;       /* type of this record          */
 76         __fs32  olt_size;       /* size of thi !! 103         u_int32_t       olt_size;       /* size of this record          */
 77         __fs32          olt_iext[2];    /* ini !! 104         vx_ino_t        olt_iext[2];    /* initial inode list, replica  */
 78 };                                                105 };
 79                                                   106 
 80 /*                                                107 /*
 81  * Current Usage Table                            108  * Current Usage Table 
 82  */                                               109  */
 83 struct vxfs_oltcut {                              110 struct vxfs_oltcut {
 84         __fs32          olt_type;       /* typ !! 111         u_int32_t       olt_type;       /* type of this record          */
 85         __fs32          olt_size;       /* siz !! 112         u_int32_t       olt_size;       /* size of this record          */
 86         __fs32          olt_cutino;     /* ino !! 113         vx_ino_t        olt_cutino;     /* inode of current usage table */
 87         __u8            __pad;          /* unu !! 114         u_int32_t       __pad;          /* unused, 8 byte align         */
 88 };                                                115 };
 89                                                   116 
 90 /*                                                117 /*
 91  * Inodes containing Superblock, Intent log an    118  * Inodes containing Superblock, Intent log and OLTs 
 92  */                                               119  */
 93 struct vxfs_oltsb {                               120 struct vxfs_oltsb {
 94         __fs32          olt_type;       /* typ !! 121         u_int32_t       olt_type;       /* type of this record          */
 95         __fs32          olt_size;       /* siz !! 122         u_int32_t       olt_size;       /* size of this record          */
 96         __fs32          olt_sbino;      /* ino !! 123         vx_ino_t        olt_sbino;      /* inode of superblock file     */
 97         __u32           __unused1;      /* ??? !! 124         u_int32_t       __unused1;      /* ???                          */
 98         __fs32          olt_logino[2];  /* ino !! 125         vx_ino_t        olt_logino[2];  /* inode of log file,replica    */
 99         __fs32          olt_oltino[2];  /* ino !! 126         vx_ino_t        olt_oltino[2];  /* inode of OLT, replica        */
100 };                                                127 };
101                                                   128 
102 /*                                                129 /*
103  * Inode containing device configuration + it'    130  * Inode containing device configuration + it's replica 
104  */                                               131  */
105 struct vxfs_oltdev {                              132 struct vxfs_oltdev {
106         __fs32          olt_type;       /* typ !! 133         u_int32_t       olt_type;       /* type of this record          */
107         __fs32          olt_size;       /* siz !! 134         u_int32_t       olt_size;       /* size of this record          */
108         __fs32          olt_devino[2];  /* ino !! 135         vx_ino_t        olt_devino[2];  /* inode of device config files */
109 };                                                136 };
110                                                   137 
111 /*                                                138 /*
112  * Fileset header                                 139  * Fileset header 
113  */                                               140  */
114 struct vxfs_oltfshead {                           141 struct vxfs_oltfshead {
115         __fs32          olt_type;       /* typ !! 142         u_int32_t       olt_type;       /* type number                  */
116         __fs32          olt_size;       /* siz !! 143         u_int32_t       olt_size;       /* size of this record          */
117         __fs32          olt_fsino[2];   /* ino !! 144         vx_ino_t        olt_fsino[2];   /* inodes of fileset header     */
118 };                                                145 };
119                                                   146 
120 #endif /* _VXFS_OLT_H_ */                         147 #endif /* _VXFS_OLT_H_ */
121                                                   148 

~ [ 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