debian/0000755000000000000000000000000012174273002007164 5ustar debian/copyright0000644000000000000000000000247712074053542011135 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: gfs2-utils Source: http://sources.redhat.com/cluster/wiki/ Files: debian/* Copyright: 2011 Andres Rodriguez 2011 Canonical Ltd. License: GPL-2+ Files: * Copyright: 1997-2003 Sistina Software, Inc. 2004-2008 Red Hat, Inc. License: GPL-2+ Files: gfs2/man/gfs2_mount.8: Copyright: Portions 2001-2003 The OpenGFS2 Project Portions 2004 Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved. License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/changelog0000644000000000000000000000334612174272776011065 0ustar gfs2-utils (3.1.6-0ubuntu1) saucy; urgency=low * New upstream release * debian/watch: Update source url. * debian/control: - Drop gfs2-cluster and gfs-pcmk binaries (and related files), which are no longer required due to bin files not being shipped anymore. - Drop build-Depends on libcorosync-dev, libopenais-dev, liblogthread-dev, libccs-dev, libcman-dev, libdlm-dev, libdlmcontrol-dev, libfence-dev, openais-dev. - Drop Depends on cman. * debian/gfs2-utils.install: Drop no longer existent binaries. * debian/rules: Remove rules for gfs-cluster init script. * debian/patches: - 0001-add-dlm-kernel-headers.patch: Disabled for now. - 0002-Fix-Default-Start-Stop-for-dependency-based-boot.patch: Update. - 0003_fix_gfs2cluster_init_script.patch: Drop. No longer needed. - 0004-fix-init-scripts.patch: Update, only patch gfs2 init script. -- Andres Rodriguez Tue, 23 Jul 2013 13:21:38 -0400 gfs2-utils (3.1.3-1.1) unstable; urgency=low * Non-maintainer upload. * Add missing Depends on gfs2-cluster for gfs2-utils. Fix "gfs2-utils: fails to install due to incorrect dependencies in init.d LSB header". gfs2-utils init script contains a dependency on the service providing gfs_controld, which in turn is provided by gfs2-cluster. (Closes: #685061) -- Salvatore Bonaccorso Thu, 10 Jan 2013 19:36:49 +0100 gfs2-utils (3.1.3-1) unstable; urgency=low * Initial release as stand-alone package; this used to be part of the redhat-cluster package but was split out upstream-wise by RedHat * thanks to Andres Rodriguez for all the great work on this package! -- Martin Loschwitz Mon, 6 Aug 2012 11:55:00 +0200 debian/watch0000644000000000000000000000013112173551740010217 0ustar version=3 https://fedorahosted.org/releases/g/f/gfs2-utils/gfs2-utils-([\d\.]*)\.tar\.gz debian/gfs2-utils.install0000644000000000000000000000073012173546714012567 0ustar sbin/fsck.gfs2 sbin/mkfs.gfs2 sbin/gfs2_grow sbin/gfs2_jadd usr/sbin/gfs2_convert usr/sbin/gfs2_edit usr/sbin/tunegfs2 sbin/gfs2_trace sbin/gfs2_lockcapture usr/share/man/man5/gfs2.5 usr/share/man/man8/gfs2_convert.8 usr/share/man/man8/gfs2_edit.8 usr/share/man/man8/fsck.gfs2.8 usr/share/man/man8/gfs2_grow.8 usr/share/man/man8/gfs2_jadd.8 usr/share/man/man8/mkfs.gfs2.8 usr/share/man/man8/tunegfs2.8 usr/share/man/man8/gfs2_trace.8 usr/share/man/man8/gfs2_lockcapture.8 debian/gfs2-utils.links0000644000000000000000000000025612074053542012234 0ustar sbin/fsck.gfs2 usr/sbin/gfs2_fsck sbin/mkfs.gfs2 usr/sbin/gfs2_mkfs #sbin/mkfs.gfs2 usr/sbin/gfs2_jadd #sbin/mkfs.gfs2 usr/sbin/gfs2_grow sbin/mount.gfs2 usr/sbin/gfs2_mount debian/patches/0000755000000000000000000000000012174272740010623 5ustar debian/patches/series0000644000000000000000000000017312174272740012041 0ustar #0001-add-dlm-kernel-headers.patch 0002-Fix-Default-Start-Stop-for-dependency-based-boot.patch 0004-fix-init-scripts.patch debian/patches/0002-Fix-Default-Start-Stop-for-dependency-based-boot.patch0000644000000000000000000000117312173550760023270 0ustar Index: gfs2-utils-3.1.6/gfs2/init.d/gfs2 =================================================================== --- gfs2-utils-3.1.6.orig/gfs2/init.d/gfs2 2013-07-23 14:56:45.548324156 -0400 +++ gfs2-utils-3.1.6/gfs2/init.d/gfs2 2013-07-23 14:56:45.544324176 -0400 @@ -9,8 +9,8 @@ # Provides: gfs2 # Required-Start: $network cman gfs_controld # Required-Stop: $network cman gfs_controld -# Default-Start: -# Default-Stop: +# Default-Start: S +# Default-Stop: 0 6 # Short-Description: mount/unmount gfs2 filesystems configured in /etc/fstab # Description: mount/unmount gfs2 filesystems configured in /etc/fstab ### END INIT INFO debian/patches/0004-fix-init-scripts.patch0000644000000000000000000000120412173550774015443 0ustar Index: gfs2-utils-3.1.6/gfs2/init.d/gfs2 =================================================================== --- gfs2-utils-3.1.6.orig/gfs2/init.d/gfs2 2013-07-23 14:56:58.220265005 -0400 +++ gfs2-utils-3.1.6/gfs2/init.d/gfs2 2013-07-23 14:56:58.216265024 -0400 @@ -7,8 +7,8 @@ ### BEGIN INIT INFO # Provides: gfs2 -# Required-Start: $network cman gfs_controld -# Required-Stop: $network cman gfs_controld +# Required-Start: $remote_fs $network cman gfs_controld +# Required-Stop: $remote_fs $network cman gfs_controld # Default-Start: S # Default-Stop: 0 6 # Short-Description: mount/unmount gfs2 filesystems configured in /etc/fstab debian/patches/0001-add-dlm-kernel-headers.patch0000644000000000000000000004274012074053542016416 0ustar Index: gfs2-utils-3.1.3/dlm/include/linux/dlm.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ gfs2-utils-3.1.3/dlm/include/linux/dlm.h 2012-01-03 10:18:25.570448332 -0500 @@ -0,0 +1,168 @@ +/****************************************************************************** +******************************************************************************* +** +** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. +** Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. +** +** This copyrighted material is made available to anyone wishing to use, +** modify, copy, or redistribute it subject to the terms and conditions +** of the GNU General Public License v.2. +** +******************************************************************************* +******************************************************************************/ + +#ifndef __DLM_DOT_H__ +#define __DLM_DOT_H__ + +/* + * Interface to Distributed Lock Manager (DLM) + * routines and structures to use DLM lockspaces + */ + +/* Lock levels and flags are here */ +#include +#include + +typedef void dlm_lockspace_t; + +/* + * Lock status block + * + * Use this structure to specify the contents of the lock value block. For a + * conversion request, this structure is used to specify the lock ID of the + * lock. DLM writes the status of the lock request and the lock ID assigned + * to the request in the lock status block. + * + * sb_lkid: the returned lock ID. It is set on new (non-conversion) requests. + * It is available when dlm_lock returns. + * + * sb_lvbptr: saves or returns the contents of the lock's LVB according to rules + * shown for the DLM_LKF_VALBLK flag. + * + * sb_flags: DLM_SBF_DEMOTED is returned if in the process of promoting a lock, + * it was first demoted to NL to avoid conversion deadlock. + * DLM_SBF_VALNOTVALID is returned if the resource's LVB is marked invalid. + * + * sb_status: the returned status of the lock request set prior to AST + * execution. Possible return values: + * + * 0 if lock request was successful + * -EAGAIN if request would block and is flagged DLM_LKF_NOQUEUE + * -ENOMEM if there is no memory to process request + * -EINVAL if there are invalid parameters + * -DLM_EUNLOCK if unlock request was successful + * -DLM_ECANCEL if a cancel completed successfully + */ + +#define DLM_SBF_DEMOTED 0x01 +#define DLM_SBF_VALNOTVALID 0x02 +#define DLM_SBF_ALTMODE 0x04 + +struct dlm_lksb { + int sb_status; + __u32 sb_lkid; + char sb_flags; + char * sb_lvbptr; +}; + +#define DLM_LSFL_NODIR 0x00000001 +#define DLM_LSFL_TIMEWARN 0x00000002 +#define DLM_LSFL_FS 0x00000004 + +#ifdef __KERNEL__ + +/* + * dlm_new_lockspace + * + * Starts a lockspace with the given name. If the named lockspace exists in + * the cluster, the calling node joins it. + */ + +int dlm_new_lockspace(char *name, int namelen, dlm_lockspace_t **lockspace, + uint32_t flags, int lvblen); + +/* + * dlm_release_lockspace + * + * Stop a lockspace. + */ + +int dlm_release_lockspace(dlm_lockspace_t *lockspace, int force); + +/* + * dlm_lock + * + * Make an asyncronous request to acquire or convert a lock on a named + * resource. + * + * lockspace: context for the request + * mode: the requested mode of the lock (DLM_LOCK_) + * lksb: lock status block for input and async return values + * flags: input flags (DLM_LKF_) + * name: name of the resource to lock, can be binary + * namelen: the length in bytes of the resource name (MAX_RESNAME_LEN) + * parent: the lock ID of a parent lock or 0 if none + * lockast: function DLM executes when it completes processing the request + * astarg: argument passed to lockast and bast functions + * bast: function DLM executes when this lock later blocks another request + * + * Returns: + * 0 if request is successfully queued for processing + * -EINVAL if any input parameters are invalid + * -EAGAIN if request would block and is flagged DLM_LKF_NOQUEUE + * -ENOMEM if there is no memory to process request + * -ENOTCONN if there is a communication error + * + * If the call to dlm_lock returns an error then the operation has failed and + * the AST routine will not be called. If dlm_lock returns 0 it is still + * possible that the lock operation will fail. The AST routine will be called + * when the locking is complete and the status is returned in the lksb. + * + * If the AST routines or parameter are passed to a conversion operation then + * they will overwrite those values that were passed to a previous dlm_lock + * call. + * + * AST routines should not block (at least not for long), but may make + * any locking calls they please. + */ + +int dlm_lock(dlm_lockspace_t *lockspace, + int mode, + struct dlm_lksb *lksb, + uint32_t flags, + void *name, + unsigned int namelen, + uint32_t parent_lkid, + void (*lockast) (void *astarg), + void *astarg, + void (*bast) (void *astarg, int mode)); + +/* + * dlm_unlock + * + * Asynchronously release a lock on a resource. The AST routine is called + * when the resource is successfully unlocked. + * + * lockspace: context for the request + * lkid: the lock ID as returned in the lksb + * flags: input flags (DLM_LKF_) + * lksb: if NULL the lksb parameter passed to last lock request is used + * astarg: the arg used with the completion ast for the unlock + * + * Returns: + * 0 if request is successfully queued for processing + * -EINVAL if any input parameters are invalid + * -ENOTEMPTY if the lock still has sublocks + * -EBUSY if the lock is waiting for a remote lock operation + * -ENOTCONN if there is a communication error + */ + +int dlm_unlock(dlm_lockspace_t *lockspace, + uint32_t lkid, + uint32_t flags, + struct dlm_lksb *lksb, + void *astarg); + +#endif /* __KERNEL__ */ + +#endif /* __DLM_DOT_H__ */ Index: gfs2-utils-3.1.3/dlm/include/linux/dlm_device.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ gfs2-utils-3.1.3/dlm/include/linux/dlm_device.h 2012-01-03 10:18:25.570448332 -0500 @@ -0,0 +1,111 @@ +/****************************************************************************** +******************************************************************************* +** +** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. +** Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. +** +** This copyrighted material is made available to anyone wishing to use, +** modify, copy, or redistribute it subject to the terms and conditions +** of the GNU General Public License v.2. +** +******************************************************************************* +******************************************************************************/ + +#ifndef _LINUX_DLM_DEVICE_H +#define _LINUX_DLM_DEVICE_H + +/* This is the device interface for dlm, most users will use a library + * interface. + */ + +#include +#include + +#ifndef __user +#define __user +#endif + +#define DLM_USER_LVB_LEN 32 + +/* Version of the device interface */ +#define DLM_DEVICE_VERSION_MAJOR 6 +#define DLM_DEVICE_VERSION_MINOR 0 +#define DLM_DEVICE_VERSION_PATCH 0 + +/* struct passed to the lock write */ +struct dlm_lock_params { + __u8 mode; + __u8 namelen; + __u16 unused; + __u32 flags; + __u32 lkid; + __u32 parent; + __u64 xid; + __u64 timeout; + void __user *castparam; + void __user *castaddr; + void __user *bastparam; + void __user *bastaddr; + struct dlm_lksb __user *lksb; + char lvb[DLM_USER_LVB_LEN]; + char name[0]; +}; + +struct dlm_lspace_params { + __u32 flags; + __u32 minor; + char name[0]; +}; + +struct dlm_purge_params { + __u32 nodeid; + __u32 pid; +}; + +struct dlm_write_request { + __u32 version[3]; + __u8 cmd; + __u8 is64bit; + __u8 unused[2]; + + union { + struct dlm_lock_params lock; + struct dlm_lspace_params lspace; + struct dlm_purge_params purge; + } i; +}; + +struct dlm_device_version { + __u32 version[3]; +}; + +/* struct read from the "device" fd, + consists mainly of userspace pointers for the library to use */ + +struct dlm_lock_result { + __u32 version[3]; + __u32 length; + void __user * user_astaddr; + void __user * user_astparam; + struct dlm_lksb __user * user_lksb; + struct dlm_lksb lksb; + __u8 bast_mode; + __u8 unused[3]; + /* Offsets may be zero if no data is present */ + __u32 lvb_offset; +}; + +/* Commands passed to the device */ +#define DLM_USER_LOCK 1 +#define DLM_USER_UNLOCK 2 +#define DLM_USER_QUERY 3 +#define DLM_USER_CREATE_LOCKSPACE 4 +#define DLM_USER_REMOVE_LOCKSPACE 5 +#define DLM_USER_PURGE 6 +#define DLM_USER_DEADLOCK 7 + +/* Lockspace flags */ +#define DLM_USER_LSFLG_AUTOFREE 1 +#define DLM_USER_LSFLG_FORCEFREE 2 + +#endif Index: gfs2-utils-3.1.3/dlm/include/linux/dlm_netlink.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ gfs2-utils-3.1.3/dlm/include/linux/dlm_netlink.h 2012-01-03 10:18:25.570448332 -0500 @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2007 Red Hat, Inc. All rights reserved. + * + * This copyrighted material is made available to anyone wishing to use, + * modify, copy, or redistribute it subject to the terms and conditions + * of the GNU General Public License v.2. + */ + +#ifndef _DLM_NETLINK_H +#define _DLM_NETLINK_H + +enum { + DLM_STATUS_WAITING = 1, + DLM_STATUS_GRANTED = 2, + DLM_STATUS_CONVERT = 3, +}; + +#define DLM_LOCK_DATA_VERSION 1 + +struct dlm_lock_data { + uint16_t version; + uint32_t lockspace_id; + int nodeid; + int ownpid; + uint32_t id; + uint32_t remid; + uint64_t xid; + int8_t status; + int8_t grmode; + int8_t rqmode; + unsigned long timestamp; + int resource_namelen; + char resource_name[DLM_RESNAME_MAXLEN]; +}; + +enum { + DLM_CMD_UNSPEC = 0, + DLM_CMD_HELLO, /* user->kernel */ + DLM_CMD_TIMEOUT, /* kernel->user */ + __DLM_CMD_MAX, +}; + +#define DLM_CMD_MAX (__DLM_CMD_MAX - 1) + +enum { + DLM_TYPE_UNSPEC = 0, + DLM_TYPE_LOCK, + __DLM_TYPE_MAX, +}; + +#define DLM_TYPE_MAX (__DLM_TYPE_MAX - 1) + +#define DLM_GENL_VERSION 0x1 +#define DLM_GENL_NAME "DLM" + +#endif /* _DLM_NETLINK_H */ Index: gfs2-utils-3.1.3/dlm/include/linux/dlm_plock.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ gfs2-utils-3.1.3/dlm/include/linux/dlm_plock.h 2012-01-03 10:18:25.570448332 -0500 @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved. + * + * This copyrighted material is made available to anyone wishing to use, + * modify, copy, or redistribute it subject to the terms and conditions + * of the GNU General Public License v.2. + */ + +#ifndef __DLM_PLOCK_DOT_H__ +#define __DLM_PLOCK_DOT_H__ + +#define DLM_PLOCK_MISC_NAME "dlm_plock" + +#define DLM_PLOCK_VERSION_MAJOR 1 +#define DLM_PLOCK_VERSION_MINOR 1 +#define DLM_PLOCK_VERSION_PATCH 0 + +enum { + DLM_PLOCK_OP_LOCK = 1, + DLM_PLOCK_OP_UNLOCK, + DLM_PLOCK_OP_GET, +}; + +struct dlm_plock_info { + __u32 version[3]; + __u8 optype; + __u8 ex; + __u8 wait; + __u8 pad; + __u32 pid; + __s32 nodeid; + __s32 rv; + __u32 fsid; + __u64 number; + __u64 start; + __u64 end; + __u64 owner; +}; + +#ifdef __KERNEL__ +int dlm_posix_lock(dlm_lockspace_t *lockspace, u64 number, struct file *file, + int cmd, struct file_lock *fl); +int dlm_posix_unlock(dlm_lockspace_t *lockspace, u64 number, struct file *file, + struct file_lock *fl); +int dlm_posix_get(dlm_lockspace_t *lockspace, u64 number, struct file *file, + struct file_lock *fl); +#endif /* __KERNEL__ */ + +#endif Index: gfs2-utils-3.1.3/dlm/include/linux/dlmconstants.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ gfs2-utils-3.1.3/dlm/include/linux/dlmconstants.h 2012-01-03 10:18:25.570448332 -0500 @@ -0,0 +1,163 @@ +/****************************************************************************** +******************************************************************************* +** +** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. +** Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved. +** +** This copyrighted material is made available to anyone wishing to use, +** modify, copy, or redistribute it subject to the terms and conditions +** of the GNU General Public License v.2. +** +******************************************************************************* +******************************************************************************/ + +#ifndef __DLMCONSTANTS_DOT_H__ +#define __DLMCONSTANTS_DOT_H__ + +/* + * Constants used by DLM interface. + */ + +#define DLM_LOCKSPACE_LEN 64 +#define DLM_RESNAME_MAXLEN 64 + + +/* + * Lock Modes + */ + +#define DLM_LOCK_IV (-1) /* invalid */ +#define DLM_LOCK_NL 0 /* null */ +#define DLM_LOCK_CR 1 /* concurrent read */ +#define DLM_LOCK_CW 2 /* concurrent write */ +#define DLM_LOCK_PR 3 /* protected read */ +#define DLM_LOCK_PW 4 /* protected write */ +#define DLM_LOCK_EX 5 /* exclusive */ + + +/* + * Flags to dlm_lock + * + * DLM_LKF_NOQUEUE + * + * Do not queue the lock request on the wait queue if it cannot be granted + * immediately. If the lock cannot be granted because of this flag, DLM will + * either return -EAGAIN from the dlm_lock call or will return 0 from + * dlm_lock and -EAGAIN in the lock status block when the AST is executed. + * + * DLM_LKF_CANCEL + * + * Used to cancel a pending lock request or conversion. A converting lock is + * returned to its previously granted mode. + * + * DLM_LKF_CONVERT + * + * Indicates a lock conversion request. For conversions the name and namelen + * are ignored and the lock ID in the LKSB is used to identify the lock. + * + * DLM_LKF_VALBLK + * + * Requests DLM to return the current contents of the lock value block in the + * lock status block. When this flag is set in a lock conversion from PW or EX + * modes, DLM assigns the value specified in the lock status block to the lock + * value block of the lock resource. The LVB is a DLM_LVB_LEN size array + * containing application-specific information. + * + * DLM_LKF_QUECVT + * + * Force a conversion request to be queued, even if it is compatible with + * the granted modes of other locks on the same resource. + * + * DLM_LKF_IVVALBLK + * + * Invalidate the lock value block. + * + * DLM_LKF_CONVDEADLK + * + * Allows the dlm to resolve conversion deadlocks internally by demoting the + * granted mode of a converting lock to NL. The DLM_SBF_DEMOTED flag is + * returned for a conversion that's been effected by this. + * + * DLM_LKF_PERSISTENT + * + * Only relevant to locks originating in userspace. A persistent lock will not + * be removed if the process holding the lock exits. + * + * DLM_LKF_NODLCKWT + * + * Do not cancel the lock if it gets into conversion deadlock. + * Exclude this lock from being monitored due to DLM_LSFL_TIMEWARN. + * + * DLM_LKF_NODLCKBLK + * + * net yet implemented + * + * DLM_LKF_EXPEDITE + * + * Used only with new requests for NL mode locks. Tells the lock manager + * to grant the lock, ignoring other locks in convert and wait queues. + * + * DLM_LKF_NOQUEUEBAST + * + * Send blocking AST's before returning -EAGAIN to the caller. It is only + * used along with the NOQUEUE flag. Blocking AST's are not sent for failed + * NOQUEUE requests otherwise. + * + * DLM_LKF_HEADQUE + * + * Add a lock to the head of the convert or wait queue rather than the tail. + * + * DLM_LKF_NOORDER + * + * Disregard the standard grant order rules and grant a lock as soon as it + * is compatible with other granted locks. + * + * DLM_LKF_ORPHAN + * + * not yet implemented + * + * DLM_LKF_ALTPR + * + * If the requested mode cannot be granted immediately, try to grant the lock + * in PR mode instead. If this alternate mode is granted instead of the + * requested mode, DLM_SBF_ALTMODE is returned in the lksb. + * + * DLM_LKF_ALTCW + * + * The same as ALTPR, but the alternate mode is CW. + * + * DLM_LKF_FORCEUNLOCK + * + * Unlock the lock even if it is converting or waiting or has sublocks. + * Only really for use by the userland device.c code. + * + */ + +#define DLM_LKF_NOQUEUE 0x00000001 +#define DLM_LKF_CANCEL 0x00000002 +#define DLM_LKF_CONVERT 0x00000004 +#define DLM_LKF_VALBLK 0x00000008 +#define DLM_LKF_QUECVT 0x00000010 +#define DLM_LKF_IVVALBLK 0x00000020 +#define DLM_LKF_CONVDEADLK 0x00000040 +#define DLM_LKF_PERSISTENT 0x00000080 +#define DLM_LKF_NODLCKWT 0x00000100 +#define DLM_LKF_NODLCKBLK 0x00000200 +#define DLM_LKF_EXPEDITE 0x00000400 +#define DLM_LKF_NOQUEUEBAST 0x00000800 +#define DLM_LKF_HEADQUE 0x00001000 +#define DLM_LKF_NOORDER 0x00002000 +#define DLM_LKF_ORPHAN 0x00004000 +#define DLM_LKF_ALTPR 0x00008000 +#define DLM_LKF_ALTCW 0x00010000 +#define DLM_LKF_FORCEUNLOCK 0x00020000 +#define DLM_LKF_TIMEOUT 0x00040000 + +/* + * Some return codes that are not in errno.h + */ + +#define DLM_ECANCEL 0x10001 +#define DLM_EUNLOCK 0x10002 + +#endif /* __DLMCONSTANTS_DOT_H__ */ Index: gfs2-utils-3.1.3/group/gfs_controld/Makefile.am =================================================================== --- gfs2-utils-3.1.3.orig/group/gfs_controld/Makefile.am 2012-01-03 10:18:16.162446863 -0500 +++ gfs2-utils-3.1.3/group/gfs_controld/Makefile.am 2012-01-03 10:18:25.570448332 -0500 @@ -17,7 +17,8 @@ gfs_controld_CFLAGS = $(ccs_CFLAGS) $(logt_CFLAGS) $(dlmcontrol_CFLAGS) \ $(fenced_CFLAGS) $(sackpt_CFLAGS) $(cpg_CFLAGS) \ - $(cfg_CFLAGS) $(quorum_CFLAGS) + $(cfg_CFLAGS) $(quorum_CFLAGS) \ + -I$(top_srcdir)/dlm/include gfs_controld_LDFLAGS = $(ccs_LIBS) $(logt_LIBS) $(dlmcontrol_LIBS) \ $(cpg_LIBS) $(cfg_LIBS) $(sackpt_LIBS) \ debian/source/0000755000000000000000000000000012074053542010470 5ustar debian/source/format0000644000000000000000000000001412074053542011676 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000001512074053542010037 0ustar README.build debian/rules0000755000000000000000000000203712174272224010253 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # enable hardened building export DEB_BUILD_HARDENING=1 BUILDROOT := $(shell pwd) %: dh $@ override_dh_auto_build: [ -f configure ] || sh autogen.sh if [ -e configure -a ! -x configure ]; then chmod u+x configure; fi ./configure --sbindir=/usr/sbin --libexecdir=/usr/lib override_dh_auto_install: $(MAKE) install DESTDIR=$(BUILDROOT)/debian/tmp cp gfs2/init.d/gfs2 $(BUILDROOT)/debian/gfs2-utils.init dh_install --list-missing override_dh_installinit: dh_installinit -p gfs2-utils --no-start --no-restart-on-upgrade -- start 65 S . start 2 0 6 . override_dh_auto_clean: dh_auto_clean rm -rf debian/*.init debian/control0000644000000000000000000000226512173551044010600 0ustar Source: gfs2-utils Section: admin Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian HA Maintainers Uploaders: Bastian Blank , Frederik Schüler , Guido Günther , Martin Loschwitz Build-Depends: debhelper (>= 9), automake, autoconf, libtool, autotools-dev, perl-modules, libncurses5-dev, pkg-config, autopoint, bison, flex, zlib1g-dev, libblkid-dev Standards-Version: 3.9.3 Homepage: http://sources.redhat.com/cluster/wiki/ Package: gfs2-utils Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, psmisc Replaces: gfs2-tools (<= 3.0.17) Conflicts: gfs2-tools (<= 3.0.17) Description: Global File System 2 - filesystem tools The Global File System allows a cluster of machines to concurrently access shared storage hardware like SANs or iSCSI and network block devices. GFS can be deployed to build high-availability services without the single point of failure of a file server. . This package contains tools for creating and managing global file systems. GFS itself is a set of kernel modules. debian/compat0000644000000000000000000000000212074053542010366 0ustar 9