From: Jan Kara Subject: Re: ext4 error when testing virtio-scsi & vhost-scsi Date: Wed, 27 Jul 2016 17:56:08 +0200 Message-ID: <20160727155608.GC1659@quack2.suse.cz> References: <20160712164324.GC11020@thunk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Theodore Ts'o , "Michael S. Tsirkin" , Nicholas Bellinger , kvm@vger.kernel.org, qemu-devel@nongnu.org, target-devel@vger.kernel.org, linux-ext4@vger.kernel.org, virtualization@lists.linux-foundation.org To: Zhangfei Gao Return-path: Received: from mx2.suse.de ([195.135.220.15]:54042 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753296AbcG0P4N (ORCPT ); Wed, 27 Jul 2016 11:56:13 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: Hi! On Wed 27-07-16 15:58:55, Zhangfei Gao wrote: > Hi, Michael > > I have met ext4 error when using vhost_scsi on arm64 platform, and > suspect it is vhost_scsi issue. > > Ext4 error when testing virtio_scsi & vhost_scsi > > > No issue: > 1. virtio_scsi, ext4 > 2. vhost_scsi & virtio_scsi, ext2 > 3. Instead of vhost, also tried loopback and no problem. > Using loopback, host can use the new block device, while vhost is used > by guest (qemu). > http://www.linux-iscsi.org/wiki/Tcm_loop > Test directly in host, not find ext4 error. > > > > Have issue: > 1. vhost_scsi & virtio_scsi, ext4 > a. iblock > b, fileio, file located in /tmp (ram), no device based. > > 2, Have tried 4.7-r2 and 4.5-rc1 on D02 board, both have issue. > Since I need kvm specific patch for D02, so it may not freely to switch > to older version. > > 3. Also test with ext4, disabling journal > mkfs.ext4 -O ^has_journal /dev/sda > > > Do you have any suggestion? So can you mount the filesystem with errors=remount-ro to avoid clobbering the fs after the problem happens? And then run e2fsck on the problematic filesystem and send the output here? Honza -- Jan Kara SUSE Labs, CR