我检查了权限,并从Windows 7搞砸了它,我遇到了同样的问题.最终我发现只要新名称不包含数字’2′,我就可以更改文件名.该文件的新名称应为’285870_full’,我们可以将其命名为’185870_full’和’385870_full’以及我能想到的任何其他内容,但’285870_full’给出的错误是“您指定的文件名无效或太长“
我通过SSH连接到服务器,并能够以这种方式重命名文件,没有任何错误.现在通过samba,我可以看到该文件名为’285870_full’,如果我尝试添加另一个’2′,它会给出相同的错误,否则我可以正常重命名.
我尝试使用另一个随机的小文本文件并遇到同样的问题 – 它不会让我将它重命名为新名称中带有’2’的任何内容,但’134567890’工作正常.有任何想法吗?
更新:我将日志级别设置为3,这是测试日志的相关部分;
reply_mv:pending / 31345678901affiliate_pixel33.txt – >待决/ 31345678901affiliate_p22.txt
[2013/07/22 21:58:39,3] smbd / reply.c:5981(rename_internals)
rename_internals:case_sensitive = 0,case_preserve = 1,short case preserve = 1,directory = pending / 31345678901affiliate_pixel33.txt,newname = pending / 31345678901affiliate_p22.txt,last_component_dest = 31345678901affiliate_p22.txt
[2013/07/22 21:58:39,3] smbd / dosmode.c:149(unix_mode)
unix_mode(pending / 31345678901affiliate_pixel33.txt)返回0744
[2013/07/22 21:58:39,2] smbd / open.c:580(open_file)
root open files pending / 31345678901affiliate_pixel33.txt read = No write = No(numopen = 1)
[2013/07/22 21:58:39,2] smbd / close.c:612(close_normal_file)
root closed file pending / 31345678901affiliate_pixel33.txt(numopen = 0)NT_STATUS_OK
[2013/07/22 21:58:39,3] smbd / reply.c:6041(rename_internals)
rename_internals:错误NT_STATUS_OBJECT_NAME_INVALID重命名pending / 31345678901affiliate_pixel33.txt – >待决/ 31345678901affiliate_p22.txt
[2013/07/22 21:58:39,3] smbd / error.c:60(error_packet_set)
smbd / reply.c上的错误包(6273)cmd = 7(SMBmv)NT_STATUS_OBJECT_NAME_INVALID
[2013/07/22 21:58:39,3] smbd / process.c:1459(process_smb)
交易14长度162(0到读)
[2013/07/22 21:58:39,3] smbd / process.c:1273(switch_message)
切换消息SMBtrans2(pid 11644)conn 0x7fad01371210
我看到用’2’重命名会给出NT_STATUS_OBJECT_NAME_INVALID?
这是另一个日志剪辑,但它成功地重命名为没有’2’的东西
[2013/07/22 22:05:33,3] smbd / reply.c:6263(reply_mv)
reply_mv:pending / 31345678901affiliate_pixel33.txt – >待决/ 31345678901affiliate_44.txt
[2013/07/22 22:05:33,newname = pending / 31345678901affiliate_44.txt,last_component_dest = 31345678901affiliate_44.txt
[2013/07/22 22:05:33,3] smbd / dosmode.c:149(unix_mode)
unix_mode(pending / 31345678901affiliate_pixel33.txt)返回0744
[2013/07/22 22:05:33,2] smbd / open.c:580(open_file)
root open files pending / 31345678901affiliate_pixel33.txt read = No write = No(numopen = 1)
[2013/07/22 22:05:33,3] smbd / reply.c:5816(rename_internals_fsp)
rename_internals_fsp:在挂起/ 31345678901affiliate_pixel33.txt上成功重命名 – >待决/ 31345678901affiliate_44.txt
[2013/07/22 22:05:33,2] smbd / close.c:612(close_normal_file)
root closed file pending / 31345678901affiliate_44.txt(numopen = 0)NT_STATUS_OK
[2013/07/22 22:05:33,3] smbd / reply.c:6041(rename_internals)
rename_internals:错误NT_STATUS_OK重命名待定/ 31345678901affiliate_pixel33.txt – >待决/ 31345678901affiliate_44.txt
[2013/07/22 22:05:33,3] smbd / process.c:1459(process_smb)
交易72的长度158(0 toread)
所以我想知道为什么’2’给出了NT_STATUS_OBJECT_NAME_INVALID?