Bug 442120
Summary: | CIFS locking issue: multiple clients cannot open same file on 2003 SP1 server | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Vince Worthington <vincew> | ||||
Component: | kernel | Assignee: | Jeff Layton <jlayton> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Martin Jenner <mjenner> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5.1 | CC: | steved, tao | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-04-18 19:38:04 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Vince Worthington
2008-04-11 20:21:26 UTC
Created attachment 302174 [details]
test data collected during tests
One of the reasons that the default mode on CIFS shares without posix extensions has the sgid bit set but the group execute bit cleared is because windows enforces mandatory locking. Unfortunately, changing this mode does not disable mandatory locks. I think this is not something fixable due to limitations on the server. With CIFS, we do "best-effort" to map POSIX semantics onto windows shares. This is one place where they just don't match up. My recommendation would be to consider a samba server to store these documents on. The windows machines could still access them, and Linux boxes mounting with CIFS could use posix extensions to get advisory locking. It's not clear to me, however, how well this would work if you, say had a windows and linux machine open and try to lock the same file, but I believe it will probably work well enough (the samba guys are pretty good at this). It's probably worth experimenting with -- if you do, let me know what you find... If they want or must use this server for some reason, then they'll probably need to consider mounting with "-o nobrl". Of course though, that will disable byte-range locks altogether (they'll always return successful) and they'll need to be very careful to prevent data corruption. I've actually not played much with CIFS brl's with unix extensions enabled, so I'll plan to do that in the next day or two. Still though, you'll probably want to communicate to the customer that this is not likely to be fixable and they should probably explore other options... Yes. Using a samba server should give them appropriate posix semantics (everything should just work as long as POSIX extensions are working). Aside from that I don't see much in the way of options... They might be able to use the Microsoft SFU NFS server. That might be a possibility if they're stuck with this server (though I'm not at all sure what the locking semantics are like with that server). Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. |