From: Ian Campbell Subject: Re: Failed to read /local/domain/0/backend/qdisk/26/51713/feature-flush-cache. Date: Thu, 31 Oct 2013 18:54:41 +0000 Message-ID: <1383245681.5436.85.camel@dagon.hellion.org.uk> References: <1383232499.25018.106.camel@dagon.hellion.org.uk> <20131031181345.GB7325@type.youpi.perso.aquilenet.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20131031181345.GB7325@type.youpi.perso.aquilenet.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Samuel Thibault Cc: Ian Jackson , xen-devel , Stefano Stabellini , =?UTF-8?Q?=E6=B5=A9=E6=A8=8A=E5=95=8A?= List-Id: xen-devel@lists.xenproject.org On Thu, 2013-10-31 at 19:13 +0100, Samuel Thibault wrote: > Ian Campbell, le Thu 31 Oct 2013 15:14:59 +0000, a =E9crit : > > extras/mini-os/blkfront.c should deal with this. However it > > unconditionally uses BLKIF_OP_FLUSH_DISKCACHE in blkfront_sync, > = > ? It checks for dev->info.flush being 1. Oh, I incorrectly read that as the request being to flush... > AFAIK the printed warning > does not have consequences by itself. > = > > I'm not sure what the fallback (if any) is supposed to be. I doubt it > > can be safely ignored, but that might be the only/best option? > = > Well, I don't know the precise semantic of missing barrier and cache > features. Normally it means (resp.) there is strict ordering of > operations, and no cache, but I doubt all implementations do that. I'm > indeed afraid there is no other option than what is already implemented. OK, so I also incorrectly read init_blkfront() and took the char path[strlen(dev->backend) + strlen("/feature-flush-cache") + = 1]; snprintf(path, sizeof(path), "%s/mode", dev->backend); msg =3D xenbus_read(XBT_NIL, path, &c); if (msg) { printk("Error %s when reading the mode\n", msg); goto error; } to be erroring on reading feature-flush-cache, which it isn't... So far I'm 0/2, sorry. So, the upshot is that this is just a warning message and nothing to worry about. fanh2010, if you are really bothered by this warning perhaps a patch to make a variant of xenbus_read_integer which silently accepts ENOENT would be reasonable. (wait for Samuel to ack/nack the concept before putting in the effort though) Ian.