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

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/qnx4_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 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 /*
  3  *  Name                         : qnx4_fs.h
  4  *  Author                       : Richard Frowijn
  5  *  Function                     : qnx4 global filesystem definitions
  6  *  History                      : 23-03-1998 created
  7  */
  8 #ifndef _LINUX_QNX4_FS_H
  9 #define _LINUX_QNX4_FS_H
 10 
 11 #include <linux/types.h>
 12 #include <linux/qnxtypes.h>
 13 #include <linux/magic.h>
 14 
 15 #define QNX4_ROOT_INO 1
 16 
 17 #define QNX4_MAX_XTNTS_PER_XBLK 60
 18 /* for di_status */
 19 #define QNX4_FILE_USED          0x01
 20 #define QNX4_FILE_MODIFIED      0x02
 21 #define QNX4_FILE_BUSY          0x04
 22 #define QNX4_FILE_LINK          0x08
 23 #define QNX4_FILE_INODE         0x10
 24 #define QNX4_FILE_FSYSCLEAN     0x20
 25 
 26 #define QNX4_I_MAP_SLOTS        8
 27 #define QNX4_Z_MAP_SLOTS        64
 28 #define QNX4_VALID_FS           0x0001  /* Clean fs. */
 29 #define QNX4_ERROR_FS           0x0002  /* fs has errors. */
 30 #define QNX4_BLOCK_SIZE         0x200   /* blocksize of 512 bytes */
 31 #define QNX4_BLOCK_SIZE_BITS    9       /* blocksize shift */
 32 #define QNX4_DIR_ENTRY_SIZE     0x040   /* dir entry size of 64 bytes */
 33 #define QNX4_DIR_ENTRY_SIZE_BITS 6      /* dir entry size shift */
 34 #define QNX4_XBLK_ENTRY_SIZE    0x200   /* xblk entry size */
 35 #define QNX4_INODES_PER_BLOCK   0x08    /* 512 / 64 */
 36 
 37 /* for filenames */
 38 #define QNX4_SHORT_NAME_MAX     16
 39 #define QNX4_NAME_MAX           48
 40 
 41 /*
 42  * This is the original qnx4 inode layout on disk.
 43  */
 44 struct qnx4_inode_entry {
 45         char            di_fname[QNX4_SHORT_NAME_MAX];
 46         qnx4_off_t      di_size;
 47         qnx4_xtnt_t     di_first_xtnt;
 48         __le32          di_xblk;
 49         __le32          di_ftime;
 50         __le32          di_mtime;
 51         __le32          di_atime;
 52         __le32          di_ctime;
 53         qnx4_nxtnt_t    di_num_xtnts;
 54         qnx4_mode_t     di_mode;
 55         qnx4_muid_t     di_uid;
 56         qnx4_mgid_t     di_gid;
 57         qnx4_nlink_t    di_nlink;
 58         __u8            di_zero[4];
 59         qnx4_ftype_t    di_type;
 60         __u8            di_status;
 61 };
 62 
 63 struct qnx4_link_info {
 64         char            dl_fname[QNX4_NAME_MAX];
 65         __le32          dl_inode_blk;
 66         __u8            dl_inode_ndx;
 67         __u8            dl_spare[10];
 68         __u8            dl_status;
 69 };
 70 
 71 struct qnx4_xblk {
 72         __le32          xblk_next_xblk;
 73         __le32          xblk_prev_xblk;
 74         __u8            xblk_num_xtnts;
 75         __u8            xblk_spare[3];
 76         __le32          xblk_num_blocks;
 77         qnx4_xtnt_t     xblk_xtnts[QNX4_MAX_XTNTS_PER_XBLK];
 78         char            xblk_signature[8];
 79         qnx4_xtnt_t     xblk_first_xtnt;
 80 };
 81 
 82 struct qnx4_super_block {
 83         struct qnx4_inode_entry RootDir;
 84         struct qnx4_inode_entry Inode;
 85         struct qnx4_inode_entry Boot;
 86         struct qnx4_inode_entry AltBoot;
 87 };
 88 
 89 #endif
 90 

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