(Resend) Re: ååï[PATCH] fs/overlayfs: Drop dentry cache to prevent unknown file status

From: Chengguang Xu
Date: Tue Mar 20 2018 - 03:50:21 EST


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:Âçåè <yuanliang.wyl@xxxxxxxxxxxxxxx>
To:Â"Chengguang Xu" <cgxu519@xxxxxxx>, "Chengguang Xu" <cgxu519@xxxxxxx>
Cc:Âmiklos <miklos@xxxxxxxxxx>, linux-unionfs <linux-unionfs@xxxxxxxxxxxxxxx>, linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>
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 <cgxu519@xxxxxxx>
åéæéï2018å3æ20æ(ææä) 15:07
æääïChengguang Xu <cgxu519@xxxxxxx>
æãéïçåè(åç) <yuanliang.wyl@xxxxxxxxxxxxxxx>; miklos <miklos@xxxxxxxxxx>; linux-unionfs <linux-unionfs@xxxxxxxxxxxxxxx>; linux-kernel <linux-kernel@xxxxxxxxxxxxxxx>
äãéï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"Â<cgxu519@xxxxxxx>
>ÂTo:ÂçåèÂ<yuanliang.wyl@xxxxxxxxxxxxxxx>
>ÂCc:Âmiklos@xxxxxxxxxx,Âlinux-unionfs@xxxxxxxxxxxxxxx,Âlinux-kernel@xxxxxxxxxxxxxxx,ÂçåèÂ<yuanliang.wyl@xxxxxxxxxxxxxxx>
>Â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:ÂçåèÂ<yuanliang.wyl@xxxxxxxxxxxxxxx>
>Â>ÂTo:Âmiklos@xxxxxxxxxx
>Â>ÂCc:Âlinux-unionfs@xxxxxxxxxxxxxxx,Âlinux-kernel@xxxxxxxxxxxxxxx,ÂçåèÂ<yuanliang.wyl@xxxxxxxxxxxxxxx>
>Â>Â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Â<module>
>Â>ÂÂÂÂÂ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Â<yuanliang.wyl@xxxxxxxxxxxxxxx>
>Â>Â---
>Â>ÂÂ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@xxxxxxxxxxxxxxx
>Â>Â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@xxxxxxxxxxxxxxx
>ÂMoreÂmajordomoÂinfoÂatÂÂhttp://vger.kernel.org/majordomo-info.html
>