aliyun / ossfs

Export s3fs for aliyun oss.
GNU General Public License v2.0
735 stars 152 forks source link

神奇目录 #49

Closed fu7iang closed 7 years ago

fu7iang commented 7 years ago

环境: CentOS 7 x64 ossfs 1.8.0 将 bucket01 挂载到本地 ~/bk01

重现步骤:

  1. ~/bk01 下新建目录 dirA;
  2. 远程通过 OSS-API 删除 dirA;
  3. ls -lsa ~/bk01 已经看不到 dirA 目录;
  4. 问题:cd ~/bk01/dirA 依然有效,perl -d 检查 ~/bk01/dirA 目录也依然存在;
fu7iang commented 7 years ago

卸载、再重新挂载后,目录才彻底消失

fu7iang commented 7 years ago

dirA 变成了一个隐藏的、无法用 ls 看到,但是可以用 cd 进入的一个神奇目录

fu7iang commented 7 years ago

dirA 的属性、所有者信息正常

rockuw commented 7 years ago

https://github.com/aliyun/ossfs/wiki/FAQ#20

ossfs默认会有文件meta的缓存,可以根据实际需要进行配置相关参数或者关闭。 -omax_stat_cache_size={size} 可以配置缓存的文件meta的大小,默认值为1000, 为0时关闭 -ostat_cache_expire={time} 可以配置缓存的超时时间,单位秒,默认值为0(不超时)