1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 /* 3 * Copyright (C) International Business Mach 4 */ 5 #ifndef _H_JFS_SUPERBLOCK 6 #define _H_JFS_SUPERBLOCK 7 8 #include <linux/uuid.h> 9 10 /* 11 * make the magic number something a human cou 12 */ 13 #define JFS_MAGIC "JFS1" /* Magic word 14 15 #define JFS_VERSION 2 /* Version num 16 17 #define LV_NAME_SIZE 11 /* MUST BE 11 18 19 /* 20 * aggregate superblock 21 * 22 * The name superblock is too close to super_b 23 * changed to jfs_superblock. The utilities a 24 */ 25 struct jfs_superblock { 26 char s_magic[4]; /* 4: magic nu 27 __le32 s_version; /* 4: version 28 29 __le64 s_size; /* 8: aggregat 30 * VFS: number 31 */ 32 __le32 s_bsize; /* 4: aggregat 33 * VFS: fragme 34 */ 35 __le16 s_l2bsize; /* 2: log2 of 36 __le16 s_l2bfactor; /* 2: log2(s_b 37 __le32 s_pbsize; /* 4: hardware 38 __le16 s_l2pbsize; /* 2: log2 of 39 __le16 pad; /* 2: padding 40 41 __le32 s_agsize; /* 4: allocati 42 43 __le32 s_flag; /* 4: aggregat 44 * see jfs_ 45 */ 46 __le32 s_state; /* 4: mount/un 47 * see jfs_ 48 */ 49 __le32 s_compress; /* 4: 50 51 pxd_t s_ait2; /* 8: first ex 52 * aggregat 53 */ 54 55 pxd_t s_aim2; /* 8: first ex 56 * aggregat 57 */ 58 __le32 s_logdev; /* 4: 59 __le32 s_logserial; /* 4: log seri 60 pxd_t s_logpxd; /* 8: inline l 61 62 pxd_t s_fsckpxd; /* 8: inline f 63 64 struct timestruc_t s_time; /* 8: 65 66 __le32 s_fsckloglen; /* 4: Number o 67 * the fsck 68 * N.B. The 69 * ver 70 * ver 71 * N.B. The 72 * len 73 */ 74 s8 s_fscklog; /* 1: which fs 75 * 0 => no 76 * 1 => the 77 * 2 => the 78 */ 79 char s_fpack[11]; /* 11: file sy 80 * N.B. Th 81 * co 82 * re 83 * On 84 */ 85 86 /* extendfs() parameter under s_state 87 __le64 s_xsize; /* 8: extendfs 88 pxd_t s_xfsckpxd; /* 8: extendfs 89 pxd_t s_xlogpxd; /* 8: extendfs 90 uuid_t s_uuid; /* 16: 128-bit 91 char s_label[16]; /* 16: volume 92 uuid_t s_loguuid; /* 16: 128-bit 93 94 }; 95 96 extern int readSuper(struct super_block *, str 97 extern int updateSuper(struct super_block *, u 98 __printf(2, 3) 99 extern void jfs_error(struct super_block *, co 100 extern int jfs_mount(struct super_block *); 101 extern int jfs_mount_rw(struct super_block *, 102 extern int jfs_umount(struct super_block *); 103 extern int jfs_umount_rw(struct super_block *) 104 extern int jfs_extendfs(struct super_block *, 105 106 extern struct task_struct *jfsIOthread; 107 extern struct task_struct *jfsSyncThread; 108 109 #endif /*_H_JFS_SUPERBLOCK */ 110
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.