linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gabriele Giacone <1o5g4r8o@gmail.com>
To: linux-ext4@vger.kernel.org
Cc: 738758@bugs.debian.org
Subject: Re: Bug#738758: linux-image-3.12-1-amd64: ext4 can't properly handle ext2 filesystems created for GNU/Hurd
Date: Wed, 19 Mar 2014 21:20:09 +0100	[thread overview]
Message-ID: <20140319202009.GA21361@jessie01> (raw)
In-Reply-To: <20140212185534.GA4005@phenomenon>

Hello,

> 04:23 < bwh> Send mail to linux-ext4@vger.kernel.org and cc 738758@bugs.debian.org

Forwarding debian bug https://bugs.debian.org/738758

On Wed, Feb 12, 2014 at 07:55:34PM +0100, Gabriele Giacone wrote:
> Package: src:linux
> Version: 3.12.9-1
> Severity: normal
> 
> Since CONFIG_EXT4_USE_FOR_EXT23 has been enabled, ext4 module can't properly
> handle ext2 created for Hurd causing data corruption.
> ext2 module would do its job.
> 
> Reproducible with:
> 
> dd if=/dev/zero of=test.fs count=10000
> echo y|mkfs.ext2 -o hurd test.fs
> mount -t ext2 test.fs /mnt
> touch /mnt/bug0000
> umount /mnt
> fsck.ext2 -fp test.fs
> 
> Attached output with kernel 3.10-3 and 3.12-1.
> 

> + dd if=/dev/zero of=test.fs count=10000
> 10000+0 records in
> 10000+0 records out
> 5120000 bytes (5.1 MB) copied, 0.0459037 s, 112 MB/s
> + echo y
> + mkfs.ext2 -o hurd test.fs
> mke2fs 1.42.9 (28-Dec-2013)
> test.fs is not a block special device.
> Proceed anyway? (y,n) Discarding device blocks:          \b\b\b\b\b\b\b\b\bdone                            
> Filesystem label=
> OS type: Hurd
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> Stride=0 blocks, Stripe width=0 blocks
> 1280 inodes, 1250 blocks
> 62 blocks (4.96%) reserved for the super user
> First data block=0
> 1 block group
> 32768 blocks per group, 32768 fragments per group
> 1280 inodes per group
> 
> Allocating group tables: 0/1\b\b\b   \b\b\bdone                            
> Writing inode tables: 0/1\b\b\b   \b\b\bdone                            
> Writing superblocks and filesystem accounting information: 0/1\b\b\b   \b\b\bdone
> 
> + mount -t ext2 test.fs /mnt
> + touch /mnt/bug0000
> + umount /mnt
> + fsck.ext2 -fp test.fs
> test.fs: 12/1280 files (0.0% non-contiguous), 50/1250 blocks

> + dd if=/dev/zero of=test.fs count=10000
> 10000+0 records in
> 10000+0 records out
> 5120000 bytes (5.1 MB) copied, 0.0227442 s, 225 MB/s
> + echo y
> s.ext2 -o hurd test.fs
> mke2fs 1.42.9 (28-Dec-2013)
> test.fs is not a block special device.
> Proceed anyway? (y,n) Discarding device blocks:          \b\b\b\b\b\b\b\b\bdone                            
> Filesystem label=
> OS type: Hurd
> Block size=4096 (log=2)
> Fragment size=4096 (log=2)
> Stride=0 blocks, Stripe width=0 blocks
> 1280 inodes, 1250 blocks
> 62 blocks (4.96%) reserved for the super user
> First data block=0
> 1 block group
> 32768 blocks per group, 32768 fragments per group
> 1280 inodes per group
> 
> Allocating group tables: 0/1\b\b\b   \b\b\bdone                            
> Writing inode tables: 0/1\b\b\b   \b\b\bdone                            
> Writing superblocks and filesystem accounting information: 0/1\b\b\b   \b\b\bdone
> 
> + mount -t ext2 test.fs /mnt
> + touch /mnt/bug0000
> + umount /mnt
> + fsck.ext2 -fp test.fs
> test.fs: Inode 2, i_blocks is 8, should be 16.  FIXED.
> test.fs: Inode 12, i_blocks is 0, should be 8.  FIXED.
> test.fs: Duplicate or bad block in use!
> test.fs: Multiply-claimed block(s) in inode 2: 1
> test.fs: Multiply-claimed block(s) in inode 12: 1
> test.fs: (There are 2 inodes containing multiply-claimed blocks.)
> 
> test.fs: File / (inode #2, mod time Wed Feb 12 19:02:45 2014) 
>   has 1 multiply-claimed block(s), shared with 2 file(s):
> test.fs: 	<filesystem metadata>
> test.fs: 	/bug0000 (inode #12, mod time Wed Feb 12 19:02:45 2014)
> test.fs: 
> 
> test.fs: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
> 	(i.e., without -a or -p options)

--
G..e


       reply	other threads:[~2014-03-19 20:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20140212185534.GA4005@phenomenon>
2014-03-19 20:20 ` Gabriele Giacone [this message]
2014-03-20  4:34   ` [PATCH] ext4: kill i_version support for Hurd-castrated file systems Theodore Ts'o
2014-03-20  5:27     ` Andreas Dilger
2014-03-20  8:10       ` Christoph Hellwig
2014-03-20 14:44         ` tytso
2014-03-20 17:30           ` Bug#738758: " Ben Hutchings
2014-03-21 14:39             ` tytso
2014-03-21 16:48               ` [PATCH] ext4: optimize Hurd tests when reading/writing inodes Theodore Ts'o
2014-03-21 17:11                 ` Bug#738758: " Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140319202009.GA21361@jessie01 \
    --to=1o5g4r8o@gmail.com \
    --cc=738758@bugs.debian.org \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).