Is there any way to "unmount" then "remount" a mounted storage from a running Zope? Use case: mounting it read-only most of the time, and switching to read-write at selected points when updates are allowed. Florent -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com
Florent Guillaume wrote:
Is there any way to "unmount" then "remount" a mounted storage from a running Zope?
Use case: mounting it read-only most of the time, and switching to read-write at selected points when updates are allowed.
It would be fairly easy (no "unmount" necessary--just toggle the readonly flag on a running database), but the bigger question is how users will toggle the flag. Through the control panel? Shane
Florent Guillaume wrote at 2003-3-7 17:16 +0100:
Is there any way to "unmount" then "remount" a mounted storage from a running Zope?
Sure. Mounting is done at runtime, when the mount point is traversed for the first time. Unmounting is done automatically, when the mount point is flushed from the ZODB cache. The mount is reestablished when the mount point is traversed the next time. All you need to do, it to take explicit control over the mounting/unmounting. Dieter
participants (3)
-
Dieter Maurer -
Florent Guillaume -
Shane Hathaway