ctdb-doc: Put NFS in grace on startipreallocate
authorVinit Agnihotri <vagnihotri@ddn.com>
Fri, 27 Oct 2023 06:07:47 +0000 (23:07 -0700)
committerVolker Lendecke <vl@samba.org>
Wed, 6 Mar 2024 06:05:38 +0000 (06:05 +0000)
Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/doc/examples/nfs-ganesha-callout

index 1605202c77bca0c8f59272aa907cee76cfead314..870772bfe16822ecaa964a163a2a56f7b6246c57 100755 (executable)
@@ -267,6 +267,11 @@ grace_period()
        fi
 }
 
+nfs_startipreallocate()
+{
+       grace_period "0:"
+}
+
 nfs_releaseip()
 {
        _ip="$2"
@@ -329,6 +334,7 @@ startup
 stop
 start
 check
+startipreallocate
 releaseip
 takeip
 monitor-list-shares
@@ -346,11 +352,12 @@ startup)             nfs_startup             ;;
 stop)                service_stop "$1"       ;;
 start)               service_start "$1"      ;;
 check)               service_check "$1"      ;;
+startipreallocate)   nfs_startipreallocate   ;;
 releaseip)           nfs_releaseip "$@"      ;;
 takeip)              nfs_takeip "$@"         ;;
 monitor-list-shares) nfs_monitor_list_shares ;;
 register)            nfs_register            ;;
-monitor-pre|monitor-post|releaseip-pre|takeip-pre|startipreallocate)
+monitor-pre|monitor-post|releaseip-pre|takeip-pre)
        # Not required/implemented
        :
        ;;