Bug 853895
| Summary: | CLI: read only glusterfs mount fails | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Rahul Hinduja <rhinduja> | ||||
| Component: | fuse | Assignee: | Csaba Henk <csaba> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 3.3.0 | CC: | csaba, gluster-bugs, ndevos, rhs-bugs, vbellur | ||||
| Target Milestone: | --- | Keywords: | Regression | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | glusterfs-3.4.0 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 858499 (view as bug list) | Environment: | |||||
| Last Closed: | 2013-07-24 17:21:31 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 980770 | ||||||
| Bug Blocks: | 858499 | ||||||
| Attachments: |
|
||||||
|
Description
Rahul Hinduja
2012-09-03 09:28:03 UTC
Created attachment 636015 [details] fuse-bridge: Pass unknown option down to fuse The patch from Bug 852754 seems to work for this too: - http://review.gluster.org/3871 It needs a little changing for the glusterfs version in the RHS-2.0, but is seems to work fine when including a "ro" option in /etc/fstab. Comment on attachment 636015 [details]
fuse-bridge: Pass unknown option down to fuse
Further testing showed that the patch does not fix the problem.
I guess we really need to update contrib/fuse-lib/mount.c and learn it how to pass mountflags like MS_RDONLY (see 'man 2 mount') to the kernel.
First functional patch posted for review: http://review.gluster.org/4156 Csaba, could you please review this and let me know if the general implementation is acceptable? I am aware that the coding-style in mount.c needs some corrections. This patch adds fuse_opt.{c,h} so that it should be easier to move to fuse-upstream when the selinux options are included there. I have not tested an selinux options with this changeset though. Thanks, Niels Reviewed under http://review.gluster.org/4156 An updated patch is available from http://review.gluster.org/4163 CHANGE: http://review.gluster.org/4163 (fuse: handle mountflags properly) merged in master by Vijay Bellur (vbellur) Tag v3.4.0qa3 and later contain commit 702b2912970e7cc19416aff7d3696d15977efc2f. |