forked from gluster/glusterfs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuse, meta: make fuse options adjustable via .meta
The .meta synthetic tree features the options entry for each xlator, which lets us see the options with which the translator was configured. Technically, 'options' exports the options dict with which the given xlator has been configured. This approach provides read-only access to the xlator options, and only those options are visible which has been set. We implement an alternative options entry (referred to as 'aadjustable options' in the sequel) that exports the full option set of the xlator. We extended the volume_options stucture wih 'fetch' and 'update' methods, that facilitate access to the realtime values of the xlator options. In the adjustable options dict each option is readable which has 'fetch' and if they have 'update' too, then they shall be writable (this is properly reflected in file modes since 2554080). While the dict-based options is generic and provides an export mechanism for xlator options without specific support from the xlators, adjustable options will export only those options for which the xlator implements fetch/update. We made this effort for the fuse xlator, which is positioned in glusterfs client as the root of the xlator tree, and thus can't be 'hot-swapped' like other xlators via graph switch. All the fuse options obained 'fetch'; and the ones where runtime update is possible also 'update' (ie. those which control the internal behavior of the filesystem server, can be updated; the ones which are mount options or init options for the FUSE infrastucture, can't). Change-Id: I72cb0f3c2f93712cd08147a4ae2e076354d8d9d8 Fixes: gluster#1785 Signed-off-by: Csaba Henk <csaba@redhat.com>
- Loading branch information
Showing
13 changed files
with
1,061 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.