From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A45CC4727D for ; Tue, 22 Sep 2020 08:15:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB2D623A1B for ; Tue, 22 Sep 2020 08:15:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726674AbgIVIPm (ORCPT ); Tue, 22 Sep 2020 04:15:42 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:62529 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726483AbgIVIPm (ORCPT ); Tue, 22 Sep 2020 04:15:42 -0400 X-IronPort-AV: E=Sophos;i="5.77,289,1596470400"; d="scan'208";a="99497671" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 22 Sep 2020 16:15:39 +0800 Received: from G08CNEXMBPEKD06.g08.fujitsu.local (unknown [10.167.33.206]) by cn.fujitsu.com (Postfix) with ESMTP id 8872E48990CB; Tue, 22 Sep 2020 16:15:34 +0800 (CST) Received: from [10.167.220.69] (10.167.220.69) by G08CNEXMBPEKD06.g08.fujitsu.local (10.167.33.206) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 22 Sep 2020 16:15:31 +0800 Message-ID: <5F69B2A4.2050407@cn.fujitsu.com> Date: Tue, 22 Sep 2020 16:15:32 +0800 From: Xiao Yang User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.2; zh-CN; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Amir Goldstein CC: overlayfs , Miklos Szeredi , "Darrick J. Wong" , Christoph Hellwig , fstests Subject: Re: [PATCH] ovl: Support FS_IOC_[SG]ETFLAGS and FS_IOC_FS[SG]ETXATTR ioctls on directories References: <20200921072127.373125-1-yangx.jy@cn.fujitsu.com> <5F686A74.4040002@cn.fujitsu.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.167.220.69] X-ClientProxiedBy: G08CNEXCHPEKD06.g08.fujitsu.local (10.167.33.205) To G08CNEXMBPEKD06.g08.fujitsu.local (10.167.33.206) X-yoursite-MailScanner-ID: 8872E48990CB.A9413 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@cn.fujitsu.com Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org On 2020/9/21 17:09, Amir Goldstein wrote: > On Mon, Sep 21, 2020 at 11:55 AM Xiao Yang wrote: >> On 2020/9/21 16:17, Amir Goldstein wrote: >>> On Mon, Sep 21, 2020 at 10:41 AM Xiao Yang wrote: >>>> Factor out ovl_ioctl() and ovl_compat_ioctl() and take use of them for >>>> directories. >>>> >>>> Signed-off-by: Xiao Yang >>>> --- >>> This change is buggy. I had already posted it and self NACKed myself [1]. >>> >>> You can find an hopefully non-buggy version of it on my ovl-shutdown [2] branch. >>> >>> As long as you are changing ovl_ioctl(), please also take the second >>> commit on that >>> branch to replace the open coded capability check with the >>> vfs_ioc_setflags_prepare() >>> generic helper. >> Hi Amir, >> >> Thanks a lot for your quick reply. :-) >> I will try to read and understand the metioned patches on your >> ovl-shutdown branch. > Please also verify my claim in the patch commit message, that the > the test result of xfstest generic/079 changes from "notrun" to "success". Hi Amir, With your patches, I have confirmed that generic/079 actually changed from "notrun" to "success". Besides, one minor issue: Could we avoid the following compiler warning? ------------------------------------------------- fs/overlayfs/readdir.c: In function ‘ovl_dir_real_file’: fs/overlayfs/readdir.c:883:37: warning: passing argument 1 of ‘ovl_dir_open_realfile’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 883 | realfile = ovl_dir_open_realfile(file, &upperpath); | ^~~~ fs/overlayfs/readdir.c:842:56: note: expected ‘struct file *’ but argument is of type ‘const struct file *’ 842 | static struct file *ovl_dir_open_realfile(struct file *file, | ~~~~~~~~~~~~~^~~~ ------------------------------------------------- Best Regards, Xiao Yang > Thanks, > Amir. > > > . >