Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp745514lqh; Thu, 28 Mar 2024 15:22:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkHrWeSLWAawOGOO2n72W1ZMhu0Bemiv+wMLcSyqYzN0poLrkwRux2MHt6AjoO5GdhrpucEcv3wUeeBOQwUuJIFooX4roOjtz2lwixRw== X-Google-Smtp-Source: AGHT+IH+JTm74zisNq19D6GuAcKjWRnrURaQ120O0lk9LLEUp8cZlGurFXwEqr6/3Y2tD6fyNuer X-Received: by 2002:a05:6808:4492:b0:3c3:eb35:7d01 with SMTP id eq18-20020a056808449200b003c3eb357d01mr827236oib.14.1711664579130; Thu, 28 Mar 2024 15:22:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711664579; cv=pass; d=google.com; s=arc-20160816; b=eXTEdKvJJTq1s1myj5/ZJHxQf1QABVDkD8C8+BOb4+SBek3a0QPXWttGmYm3C51x9g 5nsow0NGv4FtyZxuDPXK6HfXcG8zc7Kh2QpnFhljIlOdNUA4VPPm8LAC695DAounhw3Q DdR8A9OxEFDFkeuBQ/wx+yaXytrgJpFCM/BKPhaGbXeY/n3uEAwIeVVprfH+B/NtU5Ta 41FngshwxIpt5ki6wnaJ6sHtH661lsPLOXWGuZpxySEM12BO0+HM82QN8utgk2ZFaRTV M6d2VKNu8VRF0/CKhxLKkP2oi/JnHax5IdO3F6H1VPTnW/5Oka6mmOME30ynIuhvYJE9 o8dA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=c0gVdAJady0w2m/mZdiSsjO56B184pXm5Ghe4hgiYIs=; fh=zaNS7a0ivRt0Jtyv5L6ZQWkVjRrFTtwidT0IM+uzgbQ=; b=xXdAR5jNE8XqPE0jr2YWKD2ffdHW67qb+xS4+7xPWgPBzFnvfCLHWQd+ZYDFHMLbPC 8ODI4C2wCt2cPl8iiSQWPlfj1sIKfBpxyXSRHU3JaN0uIia2BnxiKv1zkGkJTu+sQTBD vh1lapEqg1NFuXN2lJFP0FHyl2Zogr9gBHcDORaH/w83moXlqzieCTfaqgaKRDNlQJiv njnZ42NdANMzZqLQ5WlgkJdyscFQUSftCNhE0i61HHLiJIJkTAHWUADdRO3XS5ZJ5Nyy cokEJXgZfaTuB6Gcv9oVCwSqA2F9w08nVqaBPwUtKlgQVT0VTy6wmLIWNz6Ifh1Euw2f jUnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iXZUrSRm; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-123769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x12-20020a05622a000c00b0043182e6df07si2427725qtw.24.2024.03.28.15.22.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 15:22:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iXZUrSRm; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-123769-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C46101C2FF34 for ; Thu, 28 Mar 2024 22:22:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6896A13F45E; Thu, 28 Mar 2024 22:19:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iXZUrSRm" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E066813D526 for ; Thu, 28 Mar 2024 22:19:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711664381; cv=none; b=LsJ8c4AgSqhHHD8N5+bBQCi+B/TjIYoHSo6O8nOiAGoy+UNV7PjlXquzQfZnl+FOEc6B/akaTEHKE2MYH5BcKS9Dp9GqEL1wbvxAxGZ4vMo6IQS5sHpCQqy02+3zk8NDjzIpexDUxacMkg5zUvSPtrZ/l7Dnl/3KMD8rY5Y+Jy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711664381; c=relaxed/simple; bh=KNmyW5fEKd4KjDtcb2BedrvwQ/K9KSHvnnjPqGPoltY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O5qrijZCynxKoluOpaLj/8R0WvX58YHGVA0Bo5Dkqg5+0fhdTWgRMouAmkLeFiu+lb6LXkpZ4VtPok3PfVDEwYX5LssjVtUoS/wOUduEZcKATiOmbXjq6xz28/tEuldluu2AvhkC38m4bCiMYe0jxeVWNSzyXeZIrPB1mOYvjgQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=iXZUrSRm; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711664377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=c0gVdAJady0w2m/mZdiSsjO56B184pXm5Ghe4hgiYIs=; b=iXZUrSRmzxh+Zpma4UND/6LJaLURiiQjJSvOtXo25ZLYK3GAN5DmbkgXXusODUxRuV7+0r uOzPaMLTVwZ2GJPZBYoQeWJQM3270ll0QUh04VUMEidPitZnyuLCEkxy/4OYMqPZGs0Gd8 7QDN/TFOT/sVVmBUzb92FRSQ9OhjwBU= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-552-Is6uAylFP6CykLsXkY2xAA-1; Thu, 28 Mar 2024 18:19:34 -0400 X-MC-Unique: Is6uAylFP6CykLsXkY2xAA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 14395380213D; Thu, 28 Mar 2024 22:19:34 +0000 (UTC) Received: from redhat.com (unknown [10.2.16.33]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 65AEC1C06690; Thu, 28 Mar 2024 22:19:31 +0000 (UTC) Date: Thu, 28 Mar 2024 17:19:26 -0500 From: Eric Blake To: Stefan Hajnoczi Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Alasdair Kergon , Mikulas Patocka , dm-devel@lists.linux.dev, David Teigland , Mike Snitzer , Jens Axboe , Christoph Hellwig , Joe Thornber Subject: Re: [RFC 5/9] selftests: block_seek_hole: add dm-zero test Message-ID: References: <20240328203910.2370087-1-stefanha@redhat.com> <20240328203910.2370087-6-stefanha@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240328203910.2370087-6-stefanha@redhat.com> User-Agent: NeoMutt/20240201 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 On Thu, Mar 28, 2024 at 04:39:06PM -0400, Stefan Hajnoczi wrote: > Signed-off-by: Stefan Hajnoczi > --- > .../selftests/block_seek_hole/Makefile | 2 +- > .../testing/selftests/block_seek_hole/config | 2 ++ > .../selftests/block_seek_hole/dm_zero.sh | 31 +++++++++++++++++++ > 3 files changed, 34 insertions(+), 1 deletion(-) > create mode 100755 tools/testing/selftests/block_seek_hole/dm_zero.sh > > +++ b/tools/testing/selftests/block_seek_hole/dm_zero.sh > @@ -0,0 +1,31 @@ > +#!/bin/sh > +# SPDX-License-Identifier: GPL-2.0-only > +# > +# dm_zero.sh > +# > +# Test that dm-zero reports data because it does not have a custom > +# SEEK_HOLE/SEEK_DATA implementation. Why not? Wouldn't it make more sense to have dm-zero report the entire device as a hole (that is, an in-range SEEK_HOLE always returns the same offset, while an in-range SEEK_DATA returns the device size)? -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org