Bug 186589
Summary: | Cannot set a read or write lock on a file that has "group execute" bit set in GFS 6.1 | ||
---|---|---|---|
Product: | [Retired] Red Hat Cluster Suite | Reporter: | Kyle Gonzales <kgonzale> |
Component: | gfs | Assignee: | Ryan O'Hara <rohara> |
Status: | CLOSED NOTABUG | QA Contact: | GFS Bugs <gfs-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | CC: | tao |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-04-11 16:12:20 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: |
Description
Kyle Gonzales
2006-03-24 16:10:23 UTC
When the group execute bit is sgid (setgroupid) on a file, mandatory file locking is invoked. From the fcntl man page: -- Mandatory locking (Non-POSIX.) The above record locks may be either advisory or mandatory, and are advisory by default. To make use of mandatory locks, mandatory locking must be enabled (using the "-o mand" option to mount(8)) for the file system containing the file to be locked and enabled on the file itself (by disabling group execute permission on the file and enabling the set-GID permission bit). Advisory locks are not enforced and are useful only between cooperating processes. Mandatory locks are enforced for all processes. -- This file has the setgid bit set but *not* the group execute bit, which doesn't make a whole lot of sense, which is why it was chosen to indicate that mandatory locking occur. GFS does not support mandatory locking. What is interesting here is that the fcntl man page seems to indicate and the permission bits must be set (group execute off, setgid on) *and* the "-o mand" option is use to mount the filesystem. The "-o mand" option was not set, so I am not sure why mandatory locking was attempted. |