Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ext2fs adjust the comments for on-disk ext2fs inode ...



details:   https://anonhg.NetBSD.org/src/rev/a7b3b9d7d61a
branches:  trunk
changeset: 816924:a7b3b9d7d61a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Aug 02 17:36:02 2016 +0000

description:
adjust the comments for on-disk ext2fs inode to indicate which of the ext* was it implemented for linux kernel; makes it a bit easier to locate

split e2di_linux_reserved3 with e2di_extra_isize and e2di_checksum_high, tag as ext4

diffstat:

 sys/ufs/ext2fs/ext2fs_dinode.h |  19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diffs (33 lines):

diff -r e794c1e52510 -r a7b3b9d7d61a sys/ufs/ext2fs/ext2fs_dinode.h
--- a/sys/ufs/ext2fs/ext2fs_dinode.h    Tue Aug 02 17:24:24 2016 +0000
+++ b/sys/ufs/ext2fs/ext2fs_dinode.h    Tue Aug 02 17:36:02 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs_dinode.h,v 1.26 2013/01/22 09:39:15 dholland Exp $      */
+/*     $NetBSD: ext2fs_dinode.h,v 1.27 2016/08/02 17:36:02 jdolecek Exp $      */
 
 /*
  * Copyright (c) 1982, 1989, 1993
@@ -118,14 +118,15 @@
        uint32_t        e2di_blocks[EXT2FS_NDADDR+EXT2FS_NIADDR];
                                        /* 40: disk blocks */
        uint32_t        e2di_gen;       /* 100: generation number */
-       uint32_t        e2di_facl;      /* 104: file ACL (not implemented) */
-       uint32_t        e2di_dacl;      /* 108: dir ACL (not implemented) */
-       uint32_t        e2di_faddr;     /* 112: fragment address */
-       uint16_t        e2di_nblock_high; /* 116: Blocks count bits 47:32 */
-       uint16_t        e2di_facl_high; /* 118: file ACL bits 47:32 */
-       uint16_t        e2di_uid_high;  /* 120: Owner UID top 16 bits */
-       uint16_t        e2di_gid_high;  /* 122: Owner GID top 16 bits */
-       uint32_t        e2di_linux_reserved3; /* 124 */
+       uint32_t        e2di_facl;      /* 104: file ACL (not implemented) (ext3) */
+       uint32_t        e2di_dacl;      /* 108: dir ACL (not implemented) (ext3) */
+       uint32_t        e2di_obso_faddr;/* 112: obsolete fragment address (ext2) */
+       uint16_t        e2di_nblock_high; /* 116: Blocks count bits 47:32 (ext4) */
+       uint16_t        e2di_facl_high; /* 118: file ACL bits 47:32 (ext4) */
+       uint16_t        e2di_uid_high;  /* 120: Owner UID top 16 bits (ext4) */
+       uint16_t        e2di_gid_high;  /* 122: Owner GID top 16 bits (ext4) */
+       uint16_t        e2di_extra_isize; /* 124: inode extra size (over 128) actually used (ext4) */
+       uint16_t        e2di_checksum_high; /* 126: crc (not implemented) (ext4) */
 };
 
 



Home | Main Index | Thread Index | Old Index