Could you explain why you need to do this? We could add an empty cache command
to DBUS, though we would need to decide how to handle cache entries that have
state associated with them.
Frank
From: Pradeep [mailto:pradeeptho...@gmail.com]
Sent: Thursday, October 5, 2017 9:35 AM
To: nfs-ganesha-devel <nfs-ganesha-devel@lists.sourceforge.net>
Subject: [Nfs-ganesha-devel] Refreshing an export
Hello,
If we were to refresh an existing NFS export (meaning cleanup all MDCACHE
entries in that export and release all FSAL object handles), we could use the
DBUS interface RemoveExport and AddExport. One problem with this approach is
that right after RemoveExport, all in-flight requests will start receiving
ESTALE error. Is there a way to pause all transports in TIRPC, so that we can
block requests for this duration? The flow will be something like this:
- Pause all transports.
- Drain in-flight requests.
- RemoveExport
- AddExport
Alternative is to restart ganesha process which will block I/Os for the 'grace'
period which is not ideal.
Thanks,
Pradeep
---
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