Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file locking not possible over smb mounts #92

Open
cvandeplas opened this issue Sep 17, 2024 · 0 comments
Open

file locking not possible over smb mounts #92

cvandeplas opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cvandeplas
Copy link
Contributor

on MacOS X and with data on a network share:

(venv) chri@Christophes-iMac sysdiagnose % ./sysdiagnose.py -c public parse logarchive
Traceback (most recent call last):
  File "/Volumes/VMware Shared Folders/sysdiagnose/sysdiagnose/./sysdiagnose.py", line 191, in cases
    fcntl.flock(f, fcntl.LOCK_EX)        # enable lock
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 45] Operation not supported

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Volumes/VMware Shared Folders/sysdiagnose/sysdiagnose/./sysdiagnose.py", line 482, in <module>
    main()
  File "/Volumes/VMware Shared Folders/sysdiagnose/sysdiagnose/./sysdiagnose.py", line 110, in main
    elif not sd.is_valid_case_id(args.case_id):
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Volumes/VMware Shared Folders/sysdiagnose/sysdiagnose/./sysdiagnose.py", line 392, in is_valid_case_id
    return case_id in self.cases()
                      ^^^^^^^^^^^^
  File "/Volumes/VMware Shared Folders/sysdiagnose/sysdiagnose/./sysdiagnose.py", line 204, in cases
    fcntl.flock(f, fcntl.LOCK_UN)
OSError: [Errno 45] Operation not supported

@cvandeplas cvandeplas added the bug Something isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant