os.link() issues with Windows + ReFS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pylockfile |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
linklockfile.py does not detect potential issues when working with ReFS volumes (Storage Spaces) in Windows 8.1 / Windows Server 2008 R2. ReFS does not support hard links.
Without a timeout passed to acquire(), the script will get stuck repeatedly retrying an operation that can never succeed on a ReFS volume.
Discovered when trying to troubleshoot issues with pip hanging in this specific environment.
https:/
I:\>pip list
Ctrl-C
Traceback (most recent call last):
File "C:\Program Files\Python 3.5\lib\
ockfile.py", line 30, in acquire
os.
OSError: [WinError 50] The request is not supported: 'I:\\Users\\[[USER NAME REMOVED]]\\AppData\
\Local\
\[[USER NAME REMOVED]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Python 3.5\lib\runpy.py", line 170, in _run_module_as_m
ain
"__main__", mod_spec)
File "C:\Program Files\Python 3.5\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python 3.5\Scripts\
dule>
File "C:\Program Files\Python 3.5\lib\
, in main
return command.
File "C:\Program Files\Python 3.5\lib\
220, in main
pip_
File "C:\Program Files\Python 3.5\lib\
ne 134, in pip_version_check
state.
File "C:\Program Files\Python 3.5\lib\
ne 71, in save
with lockfile.
File "C:\Program Files\Python 3.5\lib\
t__.py", line 238, in __enter__
self.acquire()
File "C:\Program Files\Python 3.5\lib\
ockfile.py", line 49, in acquire
time.
KeyboardInterrupt
pylockfile has been retired. We won't be making any more updates to it. See the fasteners library for a supported alternative.