Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #61412 > unrolled thread

Bug#903838: Unable to mount ext4 filesystem with meta_bg flag

Started bydebian@heinopeters.de
First post2018-07-15 18:20 +0200
Last post2018-07-17 22:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#903838: Unable to mount ext4 filesystem with meta_bg flag debian@heinopeters.de - 2018-07-15 18:20 +0200
    Bug#903838: Unable to mount ext4 filesystem with meta_bg flag Ben Hutchings <ben@decadent.org.uk> - 2018-07-17 22:50 +0200

#61412 — Bug#903838: Unable to mount ext4 filesystem with meta_bg flag

Fromdebian@heinopeters.de
Date2018-07-15 18:20 +0200
SubjectBug#903838: Unable to mount ext4 filesystem with meta_bg flag
Message-ID<wbRUB-lX-1@gated-at.bofh.it>
Package: linux-image-4.9.0-7-amd64
Version: 4.9.110-1

Mounting ext4 filesystem with meta_bg set fails with "structure needs cleaning".
Mounting the same filesystem with the kernel from linux-image-4.9.0-6-amd64
works as expected.

root@mini:/home/peters# mkfs.ext4 -O meta_bg,^resize_inode /dev/sdb1
mke2fs 1.43.4 (31-Jan-2017)
Creating filesystem with 10485504 4k blocks and 2621440 inodes
Filesystem UUID: 5400c937-1062-4cc2-8c4c-94dcf8ec2f57
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done   

root@mini:/home/peters# mount -v /dev/sdb1 /mnt
mount: mount /dev/sdb1 on /mnt failed: Structure needs cleaning
root@mini:/home/peters# tail -3 /var/log/syslog 
Jul 15 11:42:44 mini kernel: [   28.425654]  sdb: sdb1
Jul 15 11:48:26 mini kernel: [  370.639747] EXT4-fs (sdb1): ext4_check_descriptors: Block bitmap for group 0 overlaps block group descriptors
Jul 15 11:48:26 mini kernel: [  370.640447] EXT4-fs (sdb1): group descriptors corrupted!
root@mini:/home/peters# uname -a
Linux mini 4.9.0-7-amd64 #1 SMP Debian 4.9.110-1 (2018-07-05) x86_64 GNU/Linux
root@mini:/home/peters# 

[toc] | [next] | [standalone]


#61441

FromBen Hutchings <ben@decadent.org.uk>
Date2018-07-17 22:50 +0200
Message-ID<wcF4Z-4Cd-1@gated-at.bofh.it>
In reply to#61412

[Multipart message — attachments visible in raw view] — view raw

Control: tag -1 confirmed patch pending

On Sun, 2018-07-15 at 18:03 +0200, debian@heinopeters.de wrote:
> Package: linux-image-4.9.0-7-amd64
> Version: 4.9.110-1
> 
> Mounting ext4 filesystem with meta_bg set fails with "structure needs cleaning".
> Mounting the same filesystem with the kernel from linux-image-4.9.0-6-amd64
> works as expected.
[...]

I can reproduce this and found that it is fixed by a commit in Ted
Ts'o's ext4 development repository.  I'm attaching a backported version
which applies to stretch.

As a workaround, you can mount a filesystems affected by this bug as
read-only and then remount it read-write.  In this case the consistency
checks do not prevent mounting.  (This is probably a bug in itself!)

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web