Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: dlm.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/******************************************************************************
[1] Fix | Delete
*******************************************************************************
[2] Fix | Delete
**
[3] Fix | Delete
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
[4] Fix | Delete
** Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
[5] Fix | Delete
**
[6] Fix | Delete
** This copyrighted material is made available to anyone wishing to use,
[7] Fix | Delete
** modify, copy, or redistribute it subject to the terms and conditions
[8] Fix | Delete
** of the GNU General Public License v.2.
[9] Fix | Delete
**
[10] Fix | Delete
*******************************************************************************
[11] Fix | Delete
******************************************************************************/
[12] Fix | Delete
[13] Fix | Delete
#ifndef __DLM_DOT_H__
[14] Fix | Delete
#define __DLM_DOT_H__
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* Interface to Distributed Lock Manager (DLM)
[18] Fix | Delete
* routines and structures to use DLM lockspaces
[19] Fix | Delete
*/
[20] Fix | Delete
[21] Fix | Delete
/* Lock levels and flags are here */
[22] Fix | Delete
#include <linux/dlmconstants.h>
[23] Fix | Delete
#include <linux/types.h>
[24] Fix | Delete
[25] Fix | Delete
typedef void dlm_lockspace_t;
[26] Fix | Delete
[27] Fix | Delete
/*
[28] Fix | Delete
* Lock status block
[29] Fix | Delete
*
[30] Fix | Delete
* Use this structure to specify the contents of the lock value block. For a
[31] Fix | Delete
* conversion request, this structure is used to specify the lock ID of the
[32] Fix | Delete
* lock. DLM writes the status of the lock request and the lock ID assigned
[33] Fix | Delete
* to the request in the lock status block.
[34] Fix | Delete
*
[35] Fix | Delete
* sb_lkid: the returned lock ID. It is set on new (non-conversion) requests.
[36] Fix | Delete
* It is available when dlm_lock returns.
[37] Fix | Delete
*
[38] Fix | Delete
* sb_lvbptr: saves or returns the contents of the lock's LVB according to rules
[39] Fix | Delete
* shown for the DLM_LKF_VALBLK flag.
[40] Fix | Delete
*
[41] Fix | Delete
* sb_flags: DLM_SBF_DEMOTED is returned if in the process of promoting a lock,
[42] Fix | Delete
* it was first demoted to NL to avoid conversion deadlock.
[43] Fix | Delete
* DLM_SBF_VALNOTVALID is returned if the resource's LVB is marked invalid.
[44] Fix | Delete
*
[45] Fix | Delete
* sb_status: the returned status of the lock request set prior to AST
[46] Fix | Delete
* execution. Possible return values:
[47] Fix | Delete
*
[48] Fix | Delete
* 0 if lock request was successful
[49] Fix | Delete
* -EAGAIN if request would block and is flagged DLM_LKF_NOQUEUE
[50] Fix | Delete
* -DLM_EUNLOCK if unlock request was successful
[51] Fix | Delete
* -DLM_ECANCEL if a cancel completed successfully
[52] Fix | Delete
* -EDEADLK if a deadlock was detected
[53] Fix | Delete
* -ETIMEDOUT if the lock request was canceled due to a timeout
[54] Fix | Delete
*/
[55] Fix | Delete
[56] Fix | Delete
#define DLM_SBF_DEMOTED 0x01
[57] Fix | Delete
#define DLM_SBF_VALNOTVALID 0x02
[58] Fix | Delete
#define DLM_SBF_ALTMODE 0x04
[59] Fix | Delete
[60] Fix | Delete
struct dlm_lksb {
[61] Fix | Delete
int sb_status;
[62] Fix | Delete
__u32 sb_lkid;
[63] Fix | Delete
char sb_flags;
[64] Fix | Delete
char * sb_lvbptr;
[65] Fix | Delete
};
[66] Fix | Delete
[67] Fix | Delete
/* dlm_new_lockspace() flags */
[68] Fix | Delete
[69] Fix | Delete
#define DLM_LSFL_TIMEWARN 0x00000002
[70] Fix | Delete
#define DLM_LSFL_FS 0x00000004
[71] Fix | Delete
#define DLM_LSFL_NEWEXCL 0x00000008
[72] Fix | Delete
[73] Fix | Delete
[74] Fix | Delete
#endif /* __DLM_DOT_H__ */
[75] Fix | Delete
[76] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function