码迷,mamicode.com
首页 > 系统相关 > 详细

smb on macos get [Errno 13] Permission denied <-- NT Status: STATUS_LOCK_NOT_GRANTED (0xc0000055)

时间:2020-05-26 22:08:23      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:alt   image   directory   file   immediate   sha   perm   share   一个   

NT Status: STATUS_LOCK_NOT_GRANTED (0xc0000055) No such file or directory. The file or directory name specified does not exist.
smb2.nt_status == 0xc0000055

发生在,当stream1 建立了一个fileid,并lock它:exclusive
然后 stream2 也create了一个fileid,想lock它时候:exclusive
得到了一个 error: NT Status: STATUS_LOCK_NOT_GRANTED (0xc0000055)

反应在上层: [Errno 13] Permission denied

另外,SMB抓包上,无ulock,都是lock request, 要看lock info来确定lock的内容:

Lock Info
    Length: 18446744073709551615
    Flags: 0x00000004, Unlock
        .... .... .... .... .... .... .... ...0 = Shared: False
        .... .... .... .... .... .... .... ..0. = Exclusive: False
        .... .... .... .... .... .... .... .1.. = Unlock: True
        .... .... .... .... .... .... ...0 .... = Fail Immediately: False
    Reserved: 00000000

技术图片

smb on macos get [Errno 13] Permission denied <-- NT Status: STATUS_LOCK_NOT_GRANTED (0xc0000055)

标签:alt   image   directory   file   immediate   sha   perm   share   一个   

原文地址:https://www.cnblogs.com/vivivi/p/12968907.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!