#8403: Current file locking does not work on NFS mounts
-------------------------------------------+--------------------------------
Reporter: mtredinnick | Owner: mtredinnick
Status: assigned | Milestone: 1.0
Component: File uploads/storage | Version: SVN
Resolution: | Keywords: file lock
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Comment (by mtredinnick):
Okay, this turns out to be trickier to replicate than it looks at first
sight. It's pretty dependent on the OS, and the NFS client and server
versions, and the export options for the NFS mount. In fact, I wasn't able
to replicate it on my laptop or two other systems with proper remote NFS
mounts that I had access to.
With a bit of reading of the Python source and some thinking about what's
going on, I think I've solved it in a portable fashion. So the following
commit will close this ticket off. If somebody can subsequently repeat the
problem, please do reopen this, but we'll need all of the above
information: OS, export options, nfsd and client nfs tools versions (where
appropriate). I'd also like to know if you're able to lock a file opened
for writing on your particular system using Python's fcntl module in any
fashion, because we'd be down to writing workarounds at that level.
By the way, the use of the `posixfile` module doesn't seem appropriate,
after looking a bit more closely. It's pretty clearly marked as deprecated
and would be bad to introduce a dependency on it now.
--
Ticket URL: <http://code.djangoproject.com/ticket/8403#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---