2522fe45a186e (Thomas Gleixner 2019-05-28 09:57:20 -0700 1) /* SPDX-License-Identifier: GPL-2.0-only */
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 2) /******************************************************************************
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 3) *******************************************************************************
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 4) **
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 5) ** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 6) ** Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 7) **
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 8) **
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 9) *******************************************************************************
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 10) ******************************************************************************/
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 11)
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 12) #ifndef __RECOVER_DOT_H__
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 13) #define __RECOVER_DOT_H__
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 14)
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 15) int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls));
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 16) uint32_t dlm_recover_status(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 17) void dlm_set_recover_status(struct dlm_ls *ls, uint32_t status);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 18) int dlm_recover_members_wait(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 19) int dlm_recover_directory_wait(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 20) int dlm_recover_locks_wait(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 21) int dlm_recover_done_wait(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 22) int dlm_recover_masters(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 23) int dlm_recover_master_reply(struct dlm_ls *ls, struct dlm_rcom *rc);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 24) int dlm_recover_locks(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 25) void dlm_recovered_lock(struct dlm_rsb *r);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 26) int dlm_create_root_list(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 27) void dlm_release_root_list(struct dlm_ls *ls);
c04fecb4d9f77 (David Teigland 2012-05-10 10:18:07 -0500 28) void dlm_clear_toss(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 29) void dlm_recover_rsbs(struct dlm_ls *ls);
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 30)
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 31) #endif /* __RECOVER_DOT_H__ */
e7fd41792fc0e (David Teigland 2006-01-18 09:30:29 +0000 32)