SIGHUP will update almost all EXPORT options.


Fsid_type is not updated, and that is probably good, changing fsid_type would 
change all the handles, rendering any clients that have mounts to have invalid 
mounts, getting ESTALE on every access to an export where fsid_type changed.



The EXPORT { FSAL { } } options in general are not updated, additional work 
would be required to accomplish that (we would need to add an update_export 
FSAL method).



Frank



From: Pradeep [mailto:pradeeptho...@gmail.com]
Sent: Tuesday, January 9, 2018 4:07 PM
To: nfs-ganesha-devel <nfs-ganesha-devel@lists.sourceforge.net>
Subject: [Nfs-ganesha-devel] Is there a way to update params in FSAL block with 
SIGHUP?



Hello,



It is possible to update export specific parameters added in the FSAL block 
using SIGHUP only(instead of first doing RemoveExport and then doing SIGHUP)? 
RemoveExport has the downside that it will blow away the cache and fail 
inflight I/Os.



For example, FSAL VFS has parameter fsid_type. It doesn't seem to get updated 
with just a SIGHUP after a change.



static struct config_item export_params[] = {

        CONF_ITEM_NOOP("name"),

        CONF_ITEM_TOKEN("fsid_type", FSID_NO_TYPE,

                        fsid_types,

                        vfs_fsal_export, fsid_type),

        CONFIG_EOL

};



static struct config_block export_param_block = {

        .dbus_interface_name = "org.ganesha.nfsd.config.fsal.vfs-export%d",

        .blk_desc.name <http://blk_desc.name>  = "FSAL",

        .blk_desc.type = CONFIG_BLOCK,

        .blk_desc.u.blk.init = noop_conf_init,

        .blk_desc.u.blk.params = export_params,

        .blk_desc.u.blk.commit = noop_conf_commit

};



struct config_block *vfs_sub_export_param = &export_param_block;



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to