免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8083 | 回复: 13
打印 上一主题 下一主题

[samba] 在windows里访问samba服务器,建立的文件要刷新才能看到(已解决) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-29 10:39 |只看该作者 |倒序浏览
比如我在我的 samba共享文件夹里新建了一个文件,为什么我不能直接看到,而需要刷新一下才能看到呢?新建一个文件夹也是如此,这个问题,请高手指教?!!!

[ 本帖最后由 lovegqin 于 2007-2-8 13:22 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-06-29 11:16 |只看该作者
怎么大家都没有遇到过这种问题吗?我在网上找过,但都没有写出解决办法!
但我知道,这个问题一定有办法解决,因为我工作中看到过一个工程师,解决这个问题,只是我没有亲眼看到他是怎么做的!

论坛徽章:
0
3 [报告]
发表于 2006-06-29 11:26 |只看该作者
原帖由 dalianlxw 于 2006-6-29 10:39 发表
比如我在我的 samba共享文件夹里新建了一个文件,为什么我不能直接看到,而需要刷新一下才能看到呢?新建一个文件夹也是如此,这个问题,请高手指教?!!!


參考一下的相關資訊:


  1.        kernel change notify (G)
  2.               This  parameter  specifies whether Samba should ask
  3.               the kernel for change notifications in  directories
  4.               so  that  SMB clients can refresh whenever the data
  5.               on the server changes.

  6.               This parameter is only used when your  kernel  sup簫
  7.               ports  change  notification to user programs, using
  8.               the F_NOTIFY fcntl.

  9.               Default: kernel change notify = yes
复制代码


  1.        change notify timeout (G)
  2.               This  SMB  allows  a  client  to  tell  a server to
  3.               "watch" a particular directory for any changes  and
  4.               only  reply  to  the  SMB request when a change has
  5.               occurred. Such constant scanning of a directory  is
  6.               expensive  under UNIX, hence an smbd(8) daemon only
  7.               performs such a scan on  each  requested  directory
  8.               once every change notify timeout seconds.

  9.               Default: change notify timeout = 60

  10.               Example: change notify timeout = 300 # Would change
  11.               the scan time to every 5 minutes.
复制代码


==

论坛徽章:
0
4 [报告]
发表于 2006-06-29 11:36 |只看该作者
这段是哪里的代码啊!

论坛徽章:
0
5 [报告]
发表于 2006-06-29 11:46 |只看该作者
原帖由 dalianlxw 于 2006-6-29 11:36 发表
这段是哪里的代码啊!


smb.conf manpage

==

论坛徽章:
0
6 [报告]
发表于 2006-06-29 11:49 |只看该作者
kenduest说得很清楚了

论坛徽章:
0
7 [报告]
发表于 2006-06-29 12:50 |只看该作者
我已经在smb.conf加上kernel change notify = yes
和change notify timeout = 60
但还是没有起作用,能不能说的明白一点,谢谢了

论坛徽章:
0
8 [报告]
发表于 2006-06-29 15:08 |只看该作者
这个问题,我已经解决了,用户名和密码不能与你所共享的名字是一样的就OK了!嘿嘿

论坛徽章:
0
9 [报告]
发表于 2006-06-29 15:29 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
10 [报告]
发表于 2006-06-29 15:32 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP