mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Returned an error code for an exclusive access violation on Windows
Translate to Windows error code STATUS_SHARING_VIOLATION to Unix error code EBUSY.
This commit is contained in:
parent
e8170f588f
commit
31430ae01a
@ -150,6 +150,7 @@ enum { /* see http://msdn.microsoft.com/en-us/library/cc704588(v=prot.10).aspx *
|
||||
STATUS_FILE_NOT_FOUND = 0xC0000028,
|
||||
STATUS_OBJECT_NAME_INVALID = 0xC0000033,
|
||||
STATUS_OBJECT_NAME_NOT_FOUND = 0xC0000034,
|
||||
STATUS_SHARING_VIOLATION = 0xC0000043,
|
||||
STATUS_INVALID_PARAMETER_1 = 0xC00000EF,
|
||||
STATUS_IO_DEVICE_ERROR = 0xC0000185,
|
||||
STATUS_GUARD_PAGE_VIOLATION = 0x80000001
|
||||
@ -354,6 +355,8 @@ static int ntfs_ntstatus_to_errno(NTSTATUS status)
|
||||
case STATUS_IO_DEVICE_ERROR :
|
||||
case STATUS_END_OF_FILE :
|
||||
return (EIO);
|
||||
case STATUS_SHARING_VIOLATION :
|
||||
return (EBUSY);
|
||||
default:
|
||||
/* generic message */
|
||||
return ENOMSG;
|
||||
|
Loading…
Reference in New Issue
Block a user