Index: e2fsprogs-cfs/tests/f_check_filetype/expect.1
===================================================================
--- /dev/null
+++ e2fsprogs-cfs/tests/f_check_filetype/expect.1
@@ -0,0 +1,65 @@
+Pass 1: Checking inodes, blocks, and sizes
+Inode 12, i_blocks is 2, should be 0.  Fix? yes
+
+Pass 2: Checking directory structure
+Entry 'dir1' in / (2) has an incorrect filetype (was 2, should be 3).
+Fix? yes
+
+Pass 3: Checking directory connectivity
+Unconnected directory inode 13 (???)
+Connect to /lost+found? yes
+
+Unconnected directory inode 14 (???)
+Connect to /lost+found? yes
+
+Unconnected directory inode 15 (???)
+Connect to /lost+found? yes
+
+Unconnected directory inode 16 (???)
+Connect to /lost+found? yes
+
+Unconnected directory inode 17 (???)
+Connect to /lost+found? yes
+
+Unconnected directory inode 18 (???)
+Connect to /lost+found? yes
+
+Unconnected directory inode 19 (???)
+Connect to /lost+found? yes
+
+Pass 4: Checking reference counts
+Inode 2 ref count is 4, should be 3.  Fix? yes
+
+Inode 12 ref count is 2, should be 1.  Fix? yes
+
+Inode 13 ref count is 3, should be 2.  Fix? yes
+
+Inode 14 ref count is 3, should be 2.  Fix? yes
+
+Inode 15 ref count is 3, should be 2.  Fix? yes
+
+Inode 16 ref count is 3, should be 2.  Fix? yes
+
+Inode 17 ref count is 3, should be 2.  Fix? yes
+
+Inode 18 ref count is 3, should be 2.  Fix? yes
+
+Inode 19 ref count is 3, should be 2.  Fix? yes
+
+Pass 5: Checking group summary information
+Block bitmap differences:  -1112
+Fix? yes
+
+Free blocks count wrong for group #0 (7072, counted=7073).
+Fix? yes
+
+Free blocks count wrong (7072, counted=7073).
+Fix? yes
+
+Directories count wrong for group #0 (10, counted=9).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 19/256 files (5.3% non-contiguous), 1119/8192 blocks
+Exit status is 1
Index: e2fsprogs-cfs/tests/f_check_filetype/expect.2
===================================================================
--- /dev/null
+++ e2fsprogs-cfs/tests/f_check_filetype/expect.2
@@ -0,0 +1,8 @@
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+
+test_filesys: 19/256 files (5.3% non-contiguous), 1119/8192 blocks
+Exit status is 0
Index: e2fsprogs-cfs/tests/f_check_filetype/name
===================================================================
--- /dev/null
+++ e2fsprogs-cfs/tests/f_check_filetype/name
@@ -0,0 +1 @@
+parent directory with corrupt mode
Index: e2fsprogs-cfs/tests/f_check_filetype/image.gz
===================================================================
--- /dev/null
+++ e2fsprogs-cfs/tests/f_check_filetype/image.gz
@@ -0,0 +1,6 @@
+RFimage Uu;A(v'HHأ"
+ȀJ/*bww.kwwvww'&v.3 /|>{9uf,:$-\(qhrMti3g.%fʏJ&76fK{{36][]ïc~^'u`*ww4JkşWN+S'm6N_iP<jfT_&                              8ӽ&N寲 |l]&gWSV(ꊗSV^(^'jϊ_RXh98yMYWLSQ8m~AipZQnWZhVcΩuҺkZ/uKR#|_qwouU_?og{j{tbyj1~0~Z?t@-Ɵo:?7Ob~e|                             fL셒?.șٲ<gaґی~Ͷa԰
+'Kʖ~2'U(	௢z0S9͒i(HR(5NMRBw
+i,͛Ki`Z(-խt<a3ɋ%ջiK瞱:2d~E_wpJէVoR}~Nŧ}z6zĎGi9btlrۡ#F<j[oվ*6kϵڽ]cF2rȘ-zn3b-oպͤo6bk^iZ}{w?bБ;rQ;r̰C2RFiTTNܫׯs^޿z^)a[٪c|-÷mnQ5~qtvNzuAEea;5f1mڷkӭcοԱX?sͶfmXs߼Sv5]n_O[gڿcֿqPs[s굇lUjסZnkb_?Lg-Z_|>I uDI՛q'0/.ߴAb%fʏJ&76xSJmO, MsIO>Ui7A?GVީO(m/n~AiTn^`}"X5'7-f5뜊_X'R~ uO=R`Uo^q'7ymRhifsU\mwʧz] w_y֬mo{ǯ~^ͫڿ7o||4+hĈ9&kMk?<-_|P=oa U>PV>\UOTxKCҦih1<OiD2mFӨM6mF1iCڱ&vN]niGڳPu@e>iߴ_?L!tX:<LG1t\{G:>wp'tj:-3KJ3ҙtv:'K҅tq$].KWtm.]nH7>8ݖnOw;]tO7ݗOCHz4=/FKOlz.=^H/jz-Hobһ~M0}>N⇌!<}L_7]>&V-e<͔fNz~5͖fOsaj&i3͕Nfi4_jOBiHZ4-OK%RiLZ6-O+eZ1JS6ڥCVNUjiFZ3UکSꜺuҺkZ/uKR#L^2N}FiIi@?Wq=	W=sN9{ouU_;y{byj1~0~Z?t@-ƟWƟ^ioO>x|/T`rS4ܶ啚LYnWۀ㪎lokÌPg52?ͧj1aTcPg51jjCU8gs                                                                                                                                                                                                                                               ePRZ(lZf[@]3$44KfiEL[i4*mMۥiL>vLcNiK5vO{=^iO7OAtH:4OG#QtL:6O'ItJ:5ƥtV:;MtQ8].MtU:]MץtS9ݒnMtW;ݓMPz8=MTz:=MϥRz9^MVz;Mi|0}>NOgiB<}L_7]>&BwJRi*Ki4s%KӬi4{#5HS85IMӜi4w'5KR4Z -JEҢixZ"-JKeҲi|Z!H-ӊUjڤi.ORǴrZ%VK5Қ"NR%M]z[Z?mg0Jw6JMR/O4(N+                                                                                                                                                                                                                                                             ii04KfiEL[i4*mMۥiL>vLcNiK5vO{=^iO7OAtH:4OG#QtL:6O'ItJ:5ƥtV:;MtQ8].MtU:]MץtS9ݒnMtW;ݓMPz8=MTz:=MϥRz9^MVz;Mi|0}>NOgiB<}L_7]>&BYPJSY*O3,^fMAjƩIjLs<Y7͗iPZ8-MiɴTZ:-M˥
+EjVLR&M+v}:*iմZZ=Liv:.inKi=H=ӆWLSQ8m~Aip[Rf                                                                                                                                                                                                                                                             LkhY0,OiD2mFӨM6mF1iC1M;.i״[=L{>iߴ_?L!tX:<LG1t\{G:>NL')tZgNOg3YtN:7OEtI4].OW+UtM6]O7MtK5ݖnOw;]tO7ݗOCHz4=OO'SLz6=O/KJz5^Oo7[Nz7OQ8}>M	E2}NߤowC
+BI*Me<͔fNz~5͖fOsaj&i3͕Nfi4_jOBiHZ4-OK%RiLZ6-O+eZ1JS6ڥCVNUjiFZ3UکSꜺuҺkZ/uKR#L^2N}Fir4                                                                                                                                                                                                                                                  `4JJ[triicry[5ܺ6,m<ey&S5ImmQcʪ?𿯁uVCF?YPg55                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             @T                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	V   
\ No newline at end of file
