Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5456712ybi; Tue, 28 May 2019 13:26:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqVWFW7943jYKiwL17J8PMrEf1m4nwbVoYo+NHL0QE1vhWtGFa04LF5sMjjahN1FYScbrQ X-Received: by 2002:a17:902:2de4:: with SMTP id p91mr120725062plb.300.1559075199177; Tue, 28 May 2019 13:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559075199; cv=none; d=google.com; s=arc-20160816; b=K5duW9HK1Uxisk7dEWLQBjt9qtS+d9bwo7aGvO/gBBO1EzRT9uPHYpVnU+14orI9wh WxsHWAuIaBczaNydgUQI1oj/eFv1a/iKcaoTvn7d7+2yxa9eKvH+xcJY77Nj6tkQOdXp RbJ1Nw2xkczmepNAFsjJjkV7+8PdjX6BoltadDGNFwnrqcv6xZ9qZALlV0Mi7eaE/3KS 6zs79+qCs8UUVJ/w9ktWFikjxTIQhkXXwoGfSqrH+RJLFuJHbbAztCP28ronmKBqN1rD PIt6wwLZyI6YHe+92Nz6rDlsYYClrqAXEmGSdGE9h6paHyKbXGozLwJGlw77enIKTzyp ncGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:in-reply-to:references:message-id:cc:to:subject:from :dkim-signature:dkim-signature; bh=LojlEPe8YR70GfOe6f/ftvxLfgd8jqj7S65SitE1l4c=; b=gEnWMOla20uUCvsXJ2XBWMcT97L8T3cMRLurb7snXzXAb6G+eDhSGbRqrJMP5pThMi /CEnGQmg0guCXiixmQRHwRSvFlFcAHp04lKbh0/tABCnaLJQOu0iCtBGSUBzidqRh3U2 4bJqtSXhu9qEsv9IJO82SsgGOaetgoqZdeGpvPzvyMr2tNiIaUnNzd9ntrSVn1MN9c4U ASfMDcmkIweolW/3924nSnQFfXrSGCUfvaHlBDwe8rCM6HX8uC0IreeHb2+xkbBm46so bBTroib8Mukt2VI3qELToRoSu7LSIscHlMEr8R3f5rRL9PzeafD87jCWaf0h6OW4D5zI OM5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexedi.com header.s=mandrill header.b=TXfkP60A; dkim=pass header.i=@mandrillapp.com header.s=mandrill header.b=pNBW4xRB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si23605827pgv.166.2019.05.28.13.26.23; Tue, 28 May 2019 13:26:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nexedi.com header.s=mandrill header.b=TXfkP60A; dkim=pass header.i=@mandrillapp.com header.s=mandrill header.b=pNBW4xRB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727433AbfE1TCX (ORCPT + 99 others); Tue, 28 May 2019 15:02:23 -0400 Received: from mail179-11.suw41.mandrillapp.com ([198.2.179.11]:55267 "EHLO mail179-11.suw41.mandrillapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726961AbfE1TCW (ORCPT ); Tue, 28 May 2019 15:02:22 -0400 X-Greylist: delayed 900 seconds by postgrey-1.27 at vger.kernel.org; Tue, 28 May 2019 15:02:21 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=mandrill; d=nexedi.com; h=From:Subject:To:Cc:Message-Id:References:In-Reply-To:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; i=kirr@nexedi.com; bh=LojlEPe8YR70GfOe6f/ftvxLfgd8jqj7S65SitE1l4c=; b=TXfkP60AvsSN5mk0Qy5l2u4NO/ZXLPtD30y1zgr7WkPaQxeSuHHAG7VcQ3gSRahkKWlOsGMTT35e oWrfm2SPLRiewZt5UvkFItp/dq3tBjCyix00M274BOIhVvXPD5JU4Dq07el4g9XzqYjQY2H2+FTd a1WyU2yLamHxAnqXxbQ= Received: from pmta04.mandrill.prod.suw01.rsglab.com (127.0.0.1) by mail179-11.suw41.mandrillapp.com id htm2rq22s28f for ; Tue, 28 May 2019 18:47:18 +0000 (envelope-from ) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1559069238; h=From : Subject : To : Cc : Message-Id : References : In-Reply-To : Date : MIME-Version : Content-Type : Content-Transfer-Encoding : From : Subject : Date : X-Mandrill-User : List-Unsubscribe; bh=LojlEPe8YR70GfOe6f/ftvxLfgd8jqj7S65SitE1l4c=; b=pNBW4xRBG/Rfu8SQI2XJbOdJzB+cW0yJlmwOa2KlfwoE+MbJmZertWr5t1k+IwOokTQ4ow UalryLJF+1F9ILzXOOx9jwtRPiVcmgvIRjDxU72/LQpA9ey96NZ3rYtrbH6mq3lXU3BP/DA+ WLXqzlDNHhby+rbtrO+Emc8MZs3u0= From: Kirill Smelkov Subject: Re: [PATCH 4.19 082/114] fuse: Add FOPEN_STREAM to use stream_open() Received: from [87.98.221.171] by mandrillapp.com id bfcc271fb3a2477ea827fd474912cc3d; Tue, 28 May 2019 18:47:18 +0000 To: Pavel Machek Cc: , Miklos Szeredi Message-Id: <20190528184712.GA3483@deco.navytux.spb.ru> References: <20190523181731.372074275@linuxfoundation.org> <20190523181739.135794147@linuxfoundation.org> <20190528111657.GA23674@amd> In-Reply-To: <20190528111657.GA23674@amd> X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=31050260.bfcc271fb3a2477ea827fd474912cc3d X-Mandrill-User: md_31050260 Date: Tue, 28 May 2019 18:47:18 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 28, 2019 at 01:16:58PM +0200, Pavel Machek wrote: > Hi! > > > +++ b/include/uapi/linux/fuse.h > > @@ -219,10 +219,12 @@ struct fuse_file_lock { > > * FOPEN_DIRECT_IO: bypass page cache for this open file > > * FOPEN_KEEP_CACHE: don't invalidate the data cache on open > > * FOPEN_NONSEEKABLE: the file is not seekable > > + * FOPEN_STREAM: the file is stream-like (no file position at all) > > */ > > #define FOPEN_DIRECT_IO (1 << 0) > > #define FOPEN_KEEP_CACHE (1 << 1) > > #define FOPEN_NONSEEKABLE (1 << 2) > > +#define FOPEN_STREAM (1 << 4) > > Interesting choice of constants. It is too late to change it now, but > was (1 << 3) meant here? It is just because this is 4.19 backport of original patch. There (on 5.2) it was like this: --- a/include/uapi/linux/fuse.h +++ b/include/uapi/linux/fuse.h @@ -232,11 +232,13 @@ struct fuse_file_lock { * FOPEN_KEEP_CACHE: don't invalidate the data cache on open * FOPEN_NONSEEKABLE: the file is not seekable * FOPEN_CACHE_DIR: allow caching this directory + * FOPEN_STREAM: the file is stream-like (no file position at all) */ #define FOPEN_DIRECT_IO (1 << 0) #define FOPEN_KEEP_CACHE (1 << 1) #define FOPEN_NONSEEKABLE (1 << 2) #define FOPEN_CACHE_DIR (1 << 3) +#define FOPEN_STREAM (1 << 4) i.e. (1 << 3) was already occupied by FOPEN_CACHE_DIR which was added by commit 6433b8998a21 (fuse: add FOPEN_CACHE_DIR) Kirill