Received: by 10.213.65.68 with SMTP id h4csp199220imn; Tue, 20 Mar 2018 00:51:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELsseBurxC7stkSJlMCq00u+ujBAZGRvG9DBzG/JDzNwAE9a4Bmydnr5BKV+J14gh+bLqSd6 X-Received: by 10.99.96.79 with SMTP id u76mr10959275pgb.199.1521532291177; Tue, 20 Mar 2018 00:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521532291; cv=none; d=google.com; s=arc-20160816; b=Yrq4bvBVYi2Mk3RW3tSyQV3cS3CBqMNqPdKrEdGrNhymdBkmvhdKPMJT15dY8vCl3C AjUfpG5jKP4EnecbuFET2MWfVZlE1s0u/GUXN87kfm/zzxnA/Bge0AUKVsr4z7/mNPxz JPZPG+820/T+i3H8UOdTim3KPhMXqaXf6xOZdrsgAB+rSUiS2JkmEw02uLSEdoG0Rvkg EmSxS/dGJVR4cHvWE0Lhh+jT8jasOrmXfR1EGPLH2vQuIo+z4zm7kfyM7MDUjca7hvX3 WuzLruBzU4T5foZgw7hoSttw20eCR1EsyaH+4gmESEgjIvaEh7/U4P4yICXfENoHnpRm g1ag== 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:references :in-reply-to:sensitivity:importance:date:subject:cc:to:from :message-id:mime-version:arc-authentication-results; bh=8QfaVT372IFri+KtKoKrgecqjiX0QFzSFNvDG69VUu8=; b=MaNlD93uF7ntph6kywjWANO9ta5SrfQPrxgt2XF5yruqhpyLI1LUEoIRd1SMH28JtA wejX9JWq54dJZSCVa9UgoMAC2J5hxnrTrTMynsXe++HNUTUZqG5Obpnba1KxuqR+65IZ 2FTVpxi4Xqs0VsdrNcOsyh4zw3PyX7THgH8aKjfMkEeAt2C82nODmKqBBTPnj1DumAkq Os0FURy85HV398Byjetu8gFRiEn4i/g8h5AsGwFFw8KpdJFOmR3DJnRSugxLQ+Tt85Bw 6QYwjv4KOwA6Fxs5MXxI25QgMsG9cQ5YkgO6AGto9axdaZSpX0k8A1WmXvF98/BQOzq9 BTzg== ARC-Authentication-Results: i=1; mx.google.com; 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 1-v6si1137597ple.629.2018.03.20.00.51.17; Tue, 20 Mar 2018 00:51:31 -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; 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 S1751873AbeCTHuQ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 20 Mar 2018 03:50:16 -0400 Received: from mout.gmx.net ([212.227.15.19]:40811 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751805AbeCTHuM (ORCPT ); Tue, 20 Mar 2018 03:50:12 -0400 Received: from [122.224.77.194] ([122.224.77.194]) by 3c-app-mailcom-bs12.server.lan (via HTTP); Tue, 20 Mar 2018 08:50:05 +0100 MIME-Version: 1.0 Message-ID: From: "Chengguang Xu" To: yuanliang.wyl@alibaba-inc.com Cc: miklos , linux-unionfs , linux-kernel Subject: =?UTF-8?Q?=28Resend=29_Re=3A_=E5=9B=9E=E5=A4=8D=EF=BC=9A=5BPATC?= =?UTF-8?Q?H=5D_fs/overlayfs=3A_Drop_?= =?UTF-8?Q?dentry_cache_to_prevent_unknown_file_status?= Content-Type: text/plain; charset=UTF-8 Date: Tue, 20 Mar 2018 08:50:05 +0100 Importance: normal Sensitivity: Normal In-Reply-To: References: <1521525830-88382-1-git-send-email-yuanliang.wyl@alibaba-inc.com> Content-Transfer-Encoding: 8BIT X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:/5kME0Vs0ReGQctzVMf/SwMUf3abaXK9G2aiAMtmh7Q 2Jsbh3nKkyx/xHRxD5+V962lp632JYmbfppVNib3Bfb9hxFlLI zxVH+tRq2jQmsZsplHPN9m1k9P3rWpHXZkN9ACV7gEgyY9/gDK eqdPeNiMXcoM3euFZ7WFAP84th77soLKgWxXDVjYiH/9HWu7tG WrAMzc+b8b8e2VKK8GVuFeoCUW0yM2btnv1sqiGraIckE9PGgH zdKI6s+tBErUQSQoEOSWHCqOiJkAqUYfzSRrMcgIVqmEqnPUAm KeNmJ4= X-UI-Out-Filterresults: notjunk:1;V01:K0:l8DrFYKjIqM=:wJS6R9bKnlZ9cUdMCm1F29 1MHaAWZndMTELSTWkrSr3aCNYD7ryZ9f4R2WpRCJe+/mzFqZ+BVTZh/qNNsxhn7ABqzWS2C2/ pgOjOhwf6tqVTMVdj/h2zTzAvICmekfLsbtiaqvKLVESQr4kie3BoSsDdbaj6zzRwVza8oDeL hEz+I7DWFuoYXp2vL8KStLMnpuEAUCCG7QqiPXKFS8QBVtahR+f+fyvvcI6W9zL/9Lz44J8mR 3Le4wKWzBdU3h1gN/a1lBGJngq0aWk6PSvC++E5J41Fqr2czLgZR9yvnOlbonJJIna8tcmiIB t89LiVTJUgVWvmk+VajQmfu4IsKW76HyVHEWJ70Kd7Jj0xUSTRksu5Sxsg38ISi/xL4lYk5OS hKb8bokBwbcNFz+DMQJRQlULggEecePq0k+5KFpOVnVYXHkfcr1jM4GFz+VzEFoTjBxBlMQe8 qSn1smTQ3fSSE8To/u0cZu7fWZchiKNLi/vo4tAOgDZy59kq3CHx Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry, resend email because of sending failure. If you have already received, please ignore it. Hi Yuanliang, If you use ext4, you can try below command to check if filetype feature has already enabled. tune2fs -l /dev/xxx | grep feature If filetype feature is not enabled, please enable it first and check if the problem still persist. The phenomenon I met is similar to yours in the previous email. Thanks, Chengguang.   --------- Sent: Tuesday, March 20, 2018 at 3:22 PM From: 王元良 To: "Chengguang Xu" , "Chengguang Xu" Cc: miklos , linux-unionfs , linux-kernel Subject: 回复:[PATCH] fs/overlayfs: Drop dentry cache to prevent unknown file status Hi, Chengguang   is the ftype for xfs only?   Could you describe in detail the problems that you have encountered on your side and give more on-site information may help?   ------------------------------------------------------------------ 发件人:Chengguang Xu 发送时间:2018年3月20日(星期二) 15:07 收件人:Chengguang Xu 抄 送:王元良(尉犁) ; miklos ; linux-unionfs ; linux-kernel 主 题:Re: [PATCH] fs/overlayfs: Drop dentry cache to prevent unknown file status  Hi Yuanliang, Can you try ext4 or xfs(with ftype=1) as underlying fs?  It seems the phenomenon that I met on xfs(with ftype=0) as underlying fs. Thanks, Chengguang. > Sent: Tuesday, March 20, 2018 at 2:44 PM > From: "Chengguang Xu"  > To: 王元良  > Cc: miklos@szeredi.hu, linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org, 王元良  > Subject: Re: [PATCH] fs/overlayfs: Drop dentry cache to prevent unknown file status > > Hi Yuanliang, >  > Can you explain how to reproduce it? and what filesystem do you use as underlying fs? >  >  > > Sent: Tuesday, March 20, 2018 at 2:03 PM > > From: 王元良  > > To: miklos@szeredi.hu > > Cc: linux-unionfs@vger.kernel.org, linux-kernel@vger.kernel.org, 王元良  > > Subject: [PATCH] fs/overlayfs: Drop dentry cache to prevent unknown file status > > > > When the dentry cache is not destroyed, statfs will > > take unknown status '?' > > Undestroyed cache dentry also caused new file creating fails > >  > > Drop it using d_delete may be a choice > >  > > [root@host /] > > Loaded plugins: bestyumcache, branch, fastestmirror, langpacks > > Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache > > fast > > Cleaning repos: xxx.base.x86_64 ops.x.noarch ops.x.x86_64 > > Cleaning up everything > > Cleaning up list of best yumcache > > Cleaning up list of fastest mirrors > >  > > [root@host /] > > Loaded plugins: bestyumcache, branch, fastestmirror, langpacks > > Cleaning repos: xxx.base.x86_64 ops.x.noarch ops.x.x86_64 > > Cleaning up everything > > Cleaning up list of best yumcache > > Traceback (most recent call last): > >     File "/usr/bin/yum", line 29, in  > >     yummain.user_main(sys.argv[1:], exit_code=True) > >     File "/usr/share/yum-cli/yummain.py", line 365, in user_main > >     errcode = main(args) > >     File "/usr/share/yum-cli/yummain.py", line 174, in main > >     result, resultmsgs = base.doCommands() > >     File "/usr/share/yum-cli/cli.py", line 573, in doCommands > >     return self.yum_cli_commands[self.basecmd].doCommand(self, > >      self.basecmd, self.extcmds) > >     File "/usr/share/yum-cli/yumcommands.py", line > >     1475, in doCommand > >     return base.cleanCli(extcmds) > >     File "/usr/share/yum-cli/cli.py", line 1666, in > >     cleanCli > >     self.plugins.run('clean') > >     File > >     "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run > >     func(conduitcls(self, self.base, conf, **kwargs)) > >     File "/usr/lib/yum-plugins/branch.py", line 65, in clean_hook > >     os.remove(os.path.join(root,filespath)) > >     OSError: [Errno 2] No such file or directory: > >        '/var/cache/yum/x86_64/x/xxxx.noarch.stable/ > >       b49e49b87d17818d799363091c7a01dde83b421d-primary.sqlite.bz2' > >  > > [root@host /] > >     ls: cannot access > >     /var/cache/yum/x86_64/x/xxxx.noarch.stable/ > >     b49e49b87d17818d799363091c7a01dde83b421d-primary.sqlite.bz2: > >     No such file or directory > >     ls: cannot access > >     /var/cache/yum/x86_64/x/xxxx.noarch.stable/cachecookie: > >     No such file or directory > >     ls: cannot access > >     /var/cache/yum/x86_64/x/xxxx.noarch.stable/repomd.xml: > >     No such file or directory > >     total 0 > >     ?????????? ? ?    ?     ?            ? > >     b49e49b87d17818d799363091c7a01dde83b421d-primary.sqlite.bz2 > >     ?????????? ? ?    ?     ?            ? > >     cachecookie > >     drwxr-xr-x 1 root root 30 Mar 15 16:12 gen > >     drwxr-xr-x 2 root root  6 Jan 31 13:13 > >     packages > >     ?????????? ? ?    ?     ?            ? > >     repomd.xml > >  > > Signed-off-by: Yuanliang Wang  > > --- > >  fs/overlayfs/super.c | 6 ++++++ > >  1 file changed, 6 insertions(+) > >  > > diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c > > index e7c8ac4..f9343d3 100644 > > --- a/fs/overlayfs/super.c > > +++ b/fs/overlayfs/super.c > > @@ -380,9 +380,15 @@ static int ovl_dentry_weak_revalidate(struct dentry *dentry, unsigned int flags) > >   return ret; > >  } > >   > > +static int ovl_dentry_delete(const struct dentry *dentry) > > +{ > > + return 1; > > +} > > + > >  static const struct dentry_operations ovl_dentry_operations = { > >   .d_release = ovl_dentry_release, > >   .d_real = ovl_d_real, > > + .d_delete = ovl_dentry_delete, > >  }; > >   > >  static const struct dentry_operations ovl_reval_dentry_operations = { > > --  > > 1.8.3.1 > >  > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at  http://vger.kernel.org/majordomo-info.html > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at  http://vger.kernel.org/majordomo-info.html >