linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NVMe: Regression: write zeros corrupts ext4 file system
@ 2019-03-11  2:24 Ming Lei
  2019-03-11  7:54 ` Dongli Zhang
  2019-03-11 14:54 ` Keith Busch
  0 siblings, 2 replies; 6+ messages in thread
From: Ming Lei @ 2019-03-11  2:24 UTC (permalink / raw)
  To: linux-nvme, linux-block, Christoph Hellwig, Jens Axboe,
	Chaitanya Kulkarni

Hi,

It is observed that ext4 is corrupted easily by running some workloads
on QEMU NVMe, such as:

1) mkfs.ext4 /dev/nvme0n1

2) mount /dev/nvme0n1 /mnt

3) cd /mnt; git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

4) then the following error message may show up:

[ 1642.271816] EXT4-fs error (device nvme0n1): ext4_mb_generate_buddy:747: group 0, block bitmap and bg descriptor inconsistent: 32768 vs 23513 free clusters

Or fsck.ext4 will complain after running 'umount /mnt'

The issue disappears by reverting 6e02318eaea53eaafe6 ("nvme: add support for the
Write Zeroes command").

QEMU version:

QEMU emulator version 2.10.2(qemu-2.10.2-1.fc27)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

Thanks,
Ming

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-03-12  1:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-11  2:24 NVMe: Regression: write zeros corrupts ext4 file system Ming Lei
2019-03-11  7:54 ` Dongli Zhang
2019-03-11 10:16   ` Ming Lei
2019-03-11 14:54 ` Keith Busch
2019-03-11 15:23   ` Christoph Hellwig
2019-03-12  1:32   ` Ming Lei

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).