Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa Wrap >80 char lines that overflowed on NDADDR ...



details:   https://anonhg.NetBSD.org/src/rev/3cb71f5e4d5e
branches:  trunk
changeset: 786778:3cb71f5e4d5e
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri May 10 15:22:37 2013 +0000

description:
Wrap >80 char lines that overflowed on NDADDR -> EXT2FS_NDADDR changes.

diffstat:

 sys/lib/libsa/ext2fs.c |  35 ++++++++++++++++++-----------------
 1 files changed, 18 insertions(+), 17 deletions(-)

diffs (62 lines):

diff -r c20b98ee3c2a -r 3cb71f5e4d5e sys/lib/libsa/ext2fs.c
--- a/sys/lib/libsa/ext2fs.c    Fri May 10 14:55:08 2013 +0000
+++ b/sys/lib/libsa/ext2fs.c    Fri May 10 15:22:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ext2fs.c,v 1.14 2013/01/22 09:39:14 dholland Exp $     */
+/*     $NetBSD: ext2fs.c,v 1.15 2013/05/10 15:22:37 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1997 Manuel Bouyer.
@@ -241,27 +241,27 @@
         * Index structure of an inode:
         *
         * e2di_blocks[0..EXT2FS_NDADDR-1]
-        *                      hold block numbers for blocks
-        *                      0..EXT2FS_NDADDR-1
+        *              hold block numbers for blocks
+        *              0..EXT2FS_NDADDR-1
         *
         * e2di_blocks[EXT2FS_NDADDR+0]
-        *                      block EXT2FS_NDADDR+0 is the single indirect block
-        *                      holds block numbers for blocks
-        *                      EXT2FS_NDADDR .. EXT2FS_NDADDR + NINDIR(fs)-1
+        *              block EXT2FS_NDADDR+0 is the single indirect block
+        *              holds block numbers for blocks
+        *              EXT2FS_NDADDR .. EXT2FS_NDADDR + NINDIR(fs)-1
         *
         * e2di_blocks[EXT2FS_NDADDR+1]
-        *                      block EXT2FS_NDADDR+1 is the double indirect block
-        *                      holds block numbers for INDEX blocks for blocks
-        *                      EXT2FS_NDADDR + NINDIR(fs) ..
-        *                      EXT2FS_NDADDR + NINDIR(fs) + NINDIR(fs)**2 - 1
+        *              block EXT2FS_NDADDR+1 is the double indirect block
+        *              holds block numbers for INDEX blocks for blocks
+        *              EXT2FS_NDADDR + NINDIR(fs) ..
+        *              EXT2FS_NDADDR + NINDIR(fs) + NINDIR(fs)**2 - 1
         *
         * e2di_blocks[EXT2FS_NDADDR+2]
-        *                      block EXT2FS_NDADDR+2 is the triple indirect block
-        *                      holds block numbers for double-indirect
-        *                      blocks for blocks
-        *                      EXT2FS_NDADDR + NINDIR(fs) + NINDIR(fs)**2 ..
-        *                      EXT2FS_NDADDR + NINDIR(fs) + NINDIR(fs)**2
-        *                              + NINDIR(fs)**3 - 1
+        *              block EXT2FS_NDADDR+2 is the triple indirect block
+        *              holds block numbers for double-indirect
+        *              blocks for blocks
+        *              EXT2FS_NDADDR + NINDIR(fs) + NINDIR(fs)**2 ..
+        *              EXT2FS_NDADDR + NINDIR(fs) + NINDIR(fs)**2
+        *                      + NINDIR(fs)**3 - 1
         */
 
        if (file_block < EXT2FS_NDADDR) {
@@ -290,7 +290,8 @@
        }
 
        ind_block_num =
-           fs2h32(fp->f_di.e2di_blocks[EXT2FS_NDADDR + (level / fp->f_nishift - 1)]);
+           fs2h32(fp->f_di.e2di_blocks[EXT2FS_NDADDR +
+           (level / fp->f_nishift - 1)]);
 
        for (;;) {
                level -= fp->f_nishift;



Home | Main Index | Thread Index | Old Index