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

TOMOYO Linux Cross Reference
Linux/fs/omfs/omfs_fs.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/omfs/omfs_fs.h (Version linux-6.11.5) and /fs/omfs/omfs_fs.h (Version linux-5.10.223)


** Warning: Cannot open xref database.

  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef _OMFS_FS_H                                
  3 #define _OMFS_FS_H                                
  4                                                   
  5 /* OMFS On-disk structures */                     
  6                                                   
  7 #define OMFS_MAGIC 0xC2993D87                     
  8 #define OMFS_IMAGIC 0xD2                          
  9                                                   
 10 #define OMFS_DIR 'D'                              
 11 #define OMFS_FILE 'F'                             
 12 #define OMFS_INODE_NORMAL 'e'                     
 13 #define OMFS_INODE_CONTINUATION 'c'               
 14 #define OMFS_INODE_SYSTEM 's'                     
 15 #define OMFS_NAMELEN 256                          
 16 #define OMFS_DIR_START 0x1b8                      
 17 #define OMFS_EXTENT_START 0x1d0                   
 18 #define OMFS_EXTENT_CONT 0x40                     
 19 #define OMFS_XOR_COUNT 19                         
 20 #define OMFS_MAX_BLOCK_SIZE 8192                  
 21 #define OMFS_MAX_CLUSTER_SIZE 8                   
 22 #define OMFS_MAX_BLOCKS (1ul << 31)               
 23                                                   
 24 struct omfs_super_block {                         
 25         char s_fill1[256];                        
 26         __be64 s_root_block;            /* blo    
 27         __be64 s_num_blocks;            /* tot    
 28         __be32 s_magic;                 /* OMF    
 29         __be32 s_blocksize;             /* siz    
 30         __be32 s_mirrors;               /* # o    
 31         __be32 s_sys_blocksize;         /* siz    
 32 };                                                
 33                                                   
 34 struct omfs_header {                              
 35         __be64 h_self;                  /* FS     
 36         __be32 h_body_size;             /* siz    
 37         __be16 h_crc;                   /* crc    
 38         char h_fill1[2];                          
 39         u8 h_version;                   /* ver    
 40         char h_type;                    /* OMF    
 41         u8 h_magic;                     /* OMF    
 42         u8 h_check_xor;                 /* XOR    
 43         __be32 h_fill2;                           
 44 };                                                
 45                                                   
 46 struct omfs_root_block {                          
 47         struct omfs_header r_head;      /* hea    
 48         __be64 r_fill1;                           
 49         __be64 r_num_blocks;            /* tot    
 50         __be64 r_root_dir;              /* blo    
 51         __be64 r_bitmap;                /* blo    
 52         __be32 r_blocksize;             /* siz    
 53         __be32 r_clustersize;           /* siz    
 54         __be64 r_mirrors;               /* # o    
 55         char r_name[OMFS_NAMELEN];      /* par    
 56 };                                                
 57                                                   
 58 struct omfs_inode {                               
 59         struct omfs_header i_head;      /* hea    
 60         __be64 i_parent;                /* par    
 61         __be64 i_sibling;               /* nex    
 62         __be64 i_ctime;                 /* cti    
 63         char i_fill1[35];                         
 64         char i_type;                    /* OMF    
 65         __be32 i_fill2;                           
 66         char i_fill3[64];                         
 67         char i_name[OMFS_NAMELEN];      /* fil    
 68         __be64 i_size;                  /* siz    
 69 };                                                
 70                                                   
 71 struct omfs_extent_entry {                        
 72         __be64 e_cluster;               /* sta    
 73         __be64 e_blocks;                /* num    
 74 };                                                
 75                                                   
 76 struct omfs_extent {                              
 77         __be64 e_next;                  /* nex    
 78         __be32 e_extent_count;          /* tot    
 79         __be32 e_fill;                            
 80         struct omfs_extent_entry e_entry[];       
 81 };                                                
 82                                                   
 83 #endif                                            
 84                                                   

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