Home | History | Annotate | Download | only in f_resize_inode
      1 mke2fs -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384
      2 Filesystem label=
      3 OS type: Linux
      4 Block size=1024 (log=0)
      5 Fragment size=1024 (log=0)
      6 Stride=0 blocks, Stripe width=0 blocks
      7 4096 inodes, 16384 blocks
      8 819 blocks (5.00%) reserved for the super user
      9 First data block=1
     10 Maximum filesystem blocks=8421376
     11 16 block groups
     12 1024 blocks per group, 1024 fragments per group
     13 256 inodes per group
     14 Superblock backups stored on blocks: 
     15 	1025, 3073, 5121, 7169, 9217
     16 
     17 Allocating group tables:      done                            
     18 Writing inode tables:      done                            
     19 Writing superblocks and filesystem accounting information:      done
     20 
     21 Pass 1: Checking inodes, blocks, and sizes
     22 Pass 2: Checking directory structure
     23 Pass 3: Checking directory connectivity
     24 Pass 4: Checking reference counts
     25 Pass 5: Checking group summary information
     26 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
     27 Exit status is 0
     28 -----------------------------------------------
     29  
     30 debugfs -R ''set_inode_field <7> block[2] 42'' -w test.img
     31 Exit status is 0
     32 Resize inode not valid.  Recreate? yes
     33 
     34 Pass 1: Checking inodes, blocks, and sizes
     35 Pass 2: Checking directory structure
     36 Pass 3: Checking directory connectivity
     37 Pass 4: Checking reference counts
     38 Pass 5: Checking group summary information
     39 Free blocks count wrong for group #0 (717, counted=718).
     40 Fix? yes
     41 
     42 Free blocks count wrong (14276, counted=14277).
     43 Fix? yes
     44 
     45 
     46 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
     47 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
     48 Exit status is 1
     49 Pass 1: Checking inodes, blocks, and sizes
     50 Pass 2: Checking directory structure
     51 Pass 3: Checking directory connectivity
     52 Pass 4: Checking reference counts
     53 Pass 5: Checking group summary information
     54 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
     55 Exit status is 0
     56 -----------------------------------------------
     57  
     58 debugfs -R ''clri <7>'' -w test.img
     59 Exit status is 0
     60 Resize inode not valid.  Recreate? yes
     61 
     62 Pass 1: Checking inodes, blocks, and sizes
     63 Pass 2: Checking directory structure
     64 Pass 3: Checking directory connectivity
     65 Pass 4: Checking reference counts
     66 Pass 5: Checking group summary information
     67 Free blocks count wrong for group #0 (717, counted=718).
     68 Fix? yes
     69 
     70 Free blocks count wrong (14276, counted=14277).
     71 Fix? yes
     72 
     73 
     74 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
     75 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
     76 Exit status is 1
     77 Pass 1: Checking inodes, blocks, and sizes
     78 Pass 2: Checking directory structure
     79 Pass 3: Checking directory connectivity
     80 Pass 4: Checking reference counts
     81 Pass 5: Checking group summary information
     82 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
     83 Exit status is 0
     84 -----------------------------------------------
     85  
     86 debugfs -R ''set_inode_field <7> bmap[524] 57'' -w test.img
     87 Exit status is 0
     88 Resize inode not valid.  Recreate? yes
     89 
     90 Pass 1: Checking inodes, blocks, and sizes
     91 Pass 2: Checking directory structure
     92 Pass 3: Checking directory connectivity
     93 Pass 4: Checking reference counts
     94 Pass 5: Checking group summary information
     95 Free blocks count wrong for group #0 (717, counted=718).
     96 Fix? yes
     97 
     98 Free blocks count wrong (14276, counted=14277).
     99 Fix? yes
    100 
    101 
    102 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
    103 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
    104 Exit status is 1
    105 Pass 1: Checking inodes, blocks, and sizes
    106 Pass 2: Checking directory structure
    107 Pass 3: Checking directory connectivity
    108 Pass 4: Checking reference counts
    109 Pass 5: Checking group summary information
    110 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
    111 Exit status is 0
    112 -----------------------------------------------
    113  
    114 debugfs -R ''set_super_value reserved_gdt_blocks 15679'' -w test.img
    115 Exit status is 0
    116 ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap
    117 ../e2fsck/e2fsck: Group descriptors look bad... trying backup blocks...
    118 Pass 1: Checking inodes, blocks, and sizes
    119 Pass 2: Checking directory structure
    120 Pass 3: Checking directory connectivity
    121 Pass 4: Checking reference counts
    122 Pass 5: Checking group summary information
    123 
    124 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
    125 test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
    126 Exit status is 1
    127 -----------------------------------------------
    128  
    129 debugfs -R ''set_super_value reserved_gdt_blocks 32'' -w test.img
    130 Exit status is 0
    131 Pass 1: Checking inodes, blocks, and sizes
    132 Pass 2: Checking directory structure
    133 Pass 3: Checking directory connectivity
    134 Pass 4: Checking reference counts
    135 Pass 5: Checking group summary information
    136 Block bitmap differences:  -(35--258) -(1059--1282) -(3107--3330) -(5155--5378) -(7203--7426) -(9251--9474)
    137 Fix? yes
    138 
    139 Free blocks count wrong for group #0 (718, counted=942).
    140 Fix? yes
    141 
    142 Free blocks count wrong for group #1 (732, counted=956).
    143 Fix? yes
    144 
    145 Free blocks count wrong for group #3 (732, counted=956).
    146 Fix? yes
    147 
    148 Free blocks count wrong for group #5 (732, counted=956).
    149 Fix? yes
    150 
    151 Free blocks count wrong for group #7 (732, counted=956).
    152 Fix? yes
    153 
    154 Free blocks count wrong for group #9 (732, counted=956).
    155 Fix? yes
    156 
    157 Free blocks count wrong (14277, counted=15621).
    158 Fix? yes
    159 
    160 
    161 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
    162 test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks
    163 Exit status is 1
    164 Pass 1: Checking inodes, blocks, and sizes
    165 Pass 2: Checking directory structure
    166 Pass 3: Checking directory connectivity
    167 Pass 4: Checking reference counts
    168 Pass 5: Checking group summary information
    169 test_filesys: 11/4096 files (0.0% non-contiguous), 763/16384 blocks
    170 Exit status is 0
    171