vol: Interrupt RX calls accessing offlining vols
[openafs.git] / src / vol / volume.h
index aa6b692..e3d6c7b 100644 (file)
@@ -285,6 +285,22 @@ typedef struct VolumePackageOptions {
     void (*interrupt_rxcall) (struct rx_call *call, afs_int32 error);
                                   /**< callback to interrupt RX calls accessing
                                    *   a going-offline volume */
+    afs_int32 offline_timeout;    /**< how long (in seconds) to wait before
+                                   *   interrupting RX calls accessing a
+                                   *   going-offline volume. -1 disables,
+                                   *   0 means immediately. */
+    afs_int32 offline_shutdown_timeout;
+                                  /**< how long (in seconds) to wait before
+                                   *   interrupting RX calls accessing a
+                                   *   going-offline volume during shutdown.
+                                   *   -1 disables, 0 means immediately.
+                                   *   Note that the timeout time is calculated
+                                   *   once, when we encounter the first going-
+                                   *   offline volume during shutdown. So if we
+                                   *   encounter multiple going-offline volumes
+                                   *   during shutdown, we will still only wait
+                                   *   for this amount of time in total, not e.g.
+                                   *   for each going-offline volume encountered. */
 } VolumePackageOptions;
 
 /* Magic numbers and version stamps for each type of file */