Linux cifs vfs: send error in read = -11 cp大文件出错

Linux cifs 使用mount windows域下的共享目录。

是cp命令copy大文件时出错cifs vfs: send error in read = -11

[ 3171.825414] Status code returned 0xc0000008 NT_STATUS_INVALID_HANDLE
[ 3171.825424] CIFS VFS: Send error in read = -9
[ 3176.885044] CIFS VFS: Send error in read = -11



解决方案:

sbin/modprobe cifs
/bin/echo 0 > /proc/fs/cifs/OplockEnabled
/bin/echo 0 > /proc/fs/cifs/LookupCacheEnabled



http://blog.163.com/digoal%40126/blog/static/1638770402011101411939867/





 服务器SAMBA是GBK编码,我的LINUX CLIENT是UTF8,以前使用smbfs总是挂载不正确,现在用cifs就好了,爽
 mount -t cifs //192.168.199.2/home /mnt -ocifs vfs: send error in read = -11 uid=1000,gid=1000,username=resin,password=xxx,codepage=cp936,
iocharset=utf8

附上加参数挂载cifs的格式:
mount -t cifs //192.168.1.1/source 192.168.1.2/destination -o username=myusername,password=mypassword,directio
使用directio参数挂载目录后,传输速度果然提升不少,速度和windows之间对传文件的速度差不多(我是用大小为32K的传输块测试的,能达到15M/s)。

域用户是 csdn.net/dacong方式


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值