Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp552295ybt; Fri, 10 Jul 2020 06:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynU940GzLfUlGC2hle/h/kwSBsoA2bW7VoQx9zF1HrzGEW3FufjFf1juqmkgNI+UpsuPkS X-Received: by 2002:a17:907:42cb:: with SMTP id nz19mr60031668ejb.447.1594388697031; Fri, 10 Jul 2020 06:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594388697; cv=none; d=google.com; s=arc-20160816; b=hXMV1201OkqBhEr9QvrAEApgXzFX9JJD0L774vqzBku1Fw9iTP3RiudjoYZQUaHcqV OrIjzRE6uE/JG1vOunkE6n4244ohp3OvnnjbZcrrvK9hreSUK5Ck3q9hXuUQsDgiInIB S+Ye33IuPMl2Hyli4sdWqZAr5+3lSD5pugoG/nmwfxZgZRaTnoeHBQ+pCf+fFkcNRzdn VL5j7Y0MHm1+3orHHhgUC/wclaIjzVhJHQMEkqWMoDK1DAUbaj84MsIVreKjHEz4ngnk OntNamUdEt6PwMLZUQ08a41MH4lDJhWVA9/xHq3uPn7n9nAnUU0sARjYY4qjaaiziyOg ZyLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=LfLVLxxOmlmDOlDinFk/aMFA2Uwys7/Mharys896vzk=; b=noGchAkfnvVMFy6vztv/m1DO3XRWtVY2kyEcQcUWJ9cTCXEBIsq0cxq4VMVo0tl85l zPDSM7bbUxPaeoNuNl6kGRNN1jDQNbDN7PnU/txYcxl0gZMWQA+dGn8FVWROc0brPh5I 7hL27nc1lDZdTF4ZYuiJvT7wh3z9CL/kZbX8V+PBNv+2GLwKpzATQi4epdi/E2x0OwVE ahnwm7bvxlZYVaSJoXwTl8Y7/jsYG5oMqnKPnEaXHE8ry5wtfqo64bok14b7jgdI3fzF JNv4OwzZcoXCDQq8XI4lp51kmD9/NqtqunBEKx9GcULZP8Qy0x6bB5at2YdusCI2ErAZ ZtFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=FEgCX43a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si4659063edk.332.2020.07.10.06.44.34; Fri, 10 Jul 2020 06:44:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=FEgCX43a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728031AbgGJNoB (ORCPT + 99 others); Fri, 10 Jul 2020 09:44:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726774AbgGJNn6 (ORCPT ); Fri, 10 Jul 2020 09:43:58 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEE07C08C5CE; Fri, 10 Jul 2020 06:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=LfLVLxxOmlmDOlDinFk/aMFA2Uwys7/Mharys896vzk=; b=FEgCX43ahzk8VgsN48BnOirVa7 hR9txw/NB9mjn/87qH2UYTdR7rgygcTR8Nz5Xi+P49yt4q22U5C+OCtwUZ4lVWaRURRJzMEpM9auM xqw0wfdltzcTKQbC4y9XP1pqoy0oXSmVnO9VmBHNW1J160FmEfPLZzyTHRoDLJRf+V1ThAln6JKTz Z9YKVNj9tayvMraarD0G5EyLOl9+XyFCYHd/D3pMN6k7tkoOedBy5MXaNSDf5v0SOFeuBsbYqHVZq DCCcOi3foi91pfuXUlGUl3WILL3+u14o2OtbLS5q0nuBh8B7e1mVJnw/qmuRy6ykVaqa8imrURarn VeNQz3yw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jttJe-0003qg-Co; Fri, 10 Jul 2020 13:43:50 +0000 Date: Fri, 10 Jul 2020 14:43:50 +0100 From: Christoph Hellwig To: Kanchan Joshi Cc: Christoph Hellwig , Jens Axboe , Kanchan Joshi , viro@zeniv.linux.org.uk, bcrl@kvack.org, Damien.LeMoal@wdc.com, asml.silence@gmail.com, linux-fsdevel@vger.kernel.org, Matias Bj??rling , linux-kernel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-block@vger.kernel.org, Selvakumar S , Nitesh Shetty , Javier Gonzalez Subject: Re: [PATCH v3 4/4] io_uring: add support for zone-append Message-ID: <20200710134350.GA14704@infradead.org> References: <1593974870-18919-5-git-send-email-joshi.k@samsung.com> <20200709085501.GA64935@infradead.org> <20200709140053.GA7528@infradead.org> <2270907f-670c-5182-f4ec-9756dc645376@kernel.dk> <20200710130912.GA7491@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 06:59:45PM +0530, Kanchan Joshi wrote: > > block doesn't work for the case of writes to files that don't have > > to be aligned in any way. And that I think is the more broadly > > applicable use case than zone append on block devices. > > But when can it happen that we do zone-append on a file (zonefs I > asssume), and device returns a location (write-pointer essentially) > which is not in multiple of 512b? All the time. You open a file with O_APPEND. You write a record to it of any kind of size, then the next write will return the position it got written at, which can be anything.