| Previous | Next |
| ERROR_CANCEL_VIOLATION | ERROR_INVALID_SEGMENT_NUMBER |
ERROR_ATOMIC_LOCKS_NOT_SUPPORTED
The file system does not support atomic lock conversion
ERROR_ATOMIC_LOCKS_NOT_SUPPORTED is a Win32 result associated with file locking on local, network, or specialized file systems., diagnosis should begin with the exact API, target object, and operation that produced it rather than with the message text alone.
What the result means
The target file system cannot atomically change the requested lock type. The practical meaning depends on the caller and on whether the affected object is local, remote, removable, policy-managed, or handled asynchronously. Diagnostics for it should retain its symbolic name, numeric value, and the operation name together.
What to check
- Identify the filesystem and whether the handle refers to a local file, SMB share, or redirected storage.
- Check whether the application is attempting to upgrade or downgrade a lock without releasing it.
- Review the filesystem and server documentation for supported byte-range locking semantics.
- Test a release-and-reacquire fallback only if a temporary unlocked window is acceptable.
Recommended handling
Do not emulate an atomic conversion with separate unlock and lock calls when another process could observe or modify the protected range between them. Redesign the synchronization protocol or use a supported storage target.
Developer notes
Code handling this result should capture the failing API, resolved path or device identity, requested access, process identity, and the first observed error. After a call that reports it, read GetLastError() immediately because later cleanup or logging can overwrite the value. Retry it only when the specific condition is documented as transient, using a bounded delay and cancellation support.
References
- Microsoft: System error codes relevant to ERROR_ATOMIC_LOCKS_NOT_SUPPORTED
- Microsoft: File management context for ERROR_ATOMIC_LOCKS_NOT_SUPPORTED
Looking for a different code? Search another status or error code.
