Bug 1158130 - Not possible to disable fopen-keeo-cache when mounting
Summary: Not possible to disable fopen-keeo-cache when mounting
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: fuse
Version: mainline
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-28 16:22 UTC by Philip Spencer
Modified: 2019-08-16 05:35 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-08-16 05:35:37 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)
Patch to allow mounting with -o fopen-keep-cache=off (4.46 KB, patch)
2014-10-28 16:22 UTC, Philip Spencer
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Gluster.org Gerrit 22678 0 None Merged mount.glusterfs: make fcache-keep-open option take a value 2019-08-16 05:35:35 UTC

Description Philip Spencer 2014-10-28 16:22:02 UTC
Created attachment 951449 [details]
Patch to allow mounting with -o fopen-keep-cache=off

It is not possible, when using the regular mount command, to stop glusterfs from using fopen-keep-cache, which is the default when fuse supports automatic cache revalidation.

The glusterfs executable accepts "--fopen-keep-cache=off", but mount.glusterfs does not; it only accepts "--fopen-keep-cache" with no arguments.

The attached patch fixes that and also corrects the documentation which incorrectly states that the default value of fopen-keep-cache is false whereas in fact the default value is true if fuse supports automatic cache revalidation.

Comment 1 Kaushal 2016-08-30 13:09:04 UTC
GlusterFS-3.6 is nearing its End-Of-Life, only important security bugs still make a chance on getting fixed. Moving this to the mainline 'version'. If this needs to get fixed in 3.7 or 3.8 this bug should get cloned.

Comment 2 Worker Ant 2019-05-07 14:26:31 UTC
REVIEW: https://review.gluster.org/22678 (mount.glusterfs: make fcache-keep-open option take a value) posted (#1) for review on master by Amar Tumballi

Comment 3 Worker Ant 2019-08-16 05:35:37 UTC
REVIEW: https://review.gluster.org/22678 (mount.glusterfs: make fcache-keep-open option take a value) merged (#4) on master by Amar Tumballi


Note You need to log in before you can comment on or make changes to this bug.