|
@@ -2758,6 +2758,7 @@ bool nfs4_disable_idmapping = true;
|
|
|
unsigned short max_session_slots = NFS4_DEF_SLOT_TABLE_SIZE;
|
|
|
unsigned short send_implementation_id = 1;
|
|
|
char nfs4_client_id_uniquifier[NFS4_CLIENT_ID_UNIQ_LEN] = "";
|
|
|
+bool recover_lost_locks = false;
|
|
|
|
|
|
EXPORT_SYMBOL_GPL(nfs_callback_set_tcpport);
|
|
|
EXPORT_SYMBOL_GPL(nfs_callback_tcpport);
|
|
@@ -2766,6 +2767,7 @@ EXPORT_SYMBOL_GPL(nfs4_disable_idmapping);
|
|
|
EXPORT_SYMBOL_GPL(max_session_slots);
|
|
|
EXPORT_SYMBOL_GPL(send_implementation_id);
|
|
|
EXPORT_SYMBOL_GPL(nfs4_client_id_uniquifier);
|
|
|
+EXPORT_SYMBOL_GPL(recover_lost_locks);
|
|
|
|
|
|
#define NFS_CALLBACK_MAXPORTNR (65535U)
|
|
|
|
|
@@ -2803,4 +2805,10 @@ MODULE_PARM_DESC(send_implementation_id,
|
|
|
"Send implementation ID with NFSv4.1 exchange_id");
|
|
|
MODULE_PARM_DESC(nfs4_unique_id, "nfs_client_id4 uniquifier string");
|
|
|
|
|
|
+module_param(recover_lost_locks, bool, 0644);
|
|
|
+MODULE_PARM_DESC(recover_lost_locks,
|
|
|
+ "If the server reports that a lock might be lost, "
|
|
|
+ "try to recover it risking data corruption.");
|
|
|
+
|
|
|
+
|
|
|
#endif /* CONFIG_NFS_V4 */
|