Deleted Added
full compact
lockd_lock.c (165776) lockd_lock.c (166054)
1/* $NetBSD: lockd_lock.c,v 1.5 2000/11/21 03:47:41 enami Exp $ */
2
3/*
4 * Copyright (c) 2001 Andrew P. Lentvorski, Jr.
5 * Copyright (c) 2000 Manuel Bouyer.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 21 unchanged lines hidden (view full) ---

30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 */
36
37#include <sys/cdefs.h>
1/* $NetBSD: lockd_lock.c,v 1.5 2000/11/21 03:47:41 enami Exp $ */
2
3/*
4 * Copyright (c) 2001 Andrew P. Lentvorski, Jr.
5 * Copyright (c) 2000 Manuel Bouyer.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 21 unchanged lines hidden (view full) ---

30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/usr.sbin/rpc.lockd/lockd_lock.c 165776 2007-01-04 20:45:33Z mjacob $");
38__FBSDID("$FreeBSD: head/usr.sbin/rpc.lockd/lockd_lock.c 166054 2007-01-16 19:46:05Z brueffer $");
39
40#define LOCKD_DEBUG
41
42#include <stdio.h>
43#ifdef LOCKD_DEBUG
44#include <stdarg.h>
45#endif
46#include <stdlib.h>

--- 1153 unchanged lines hidden (view full) ---

1200{
1201 struct file_lock *ifl,*nfl;
1202 int retval = 0;
1203
1204 debuglog("Entering duplicate_block");
1205
1206 /*
1207 * Is this lock request already on the blocking list?
39
40#define LOCKD_DEBUG
41
42#include <stdio.h>
43#ifdef LOCKD_DEBUG
44#include <stdarg.h>
45#endif
46#include <stdlib.h>

--- 1153 unchanged lines hidden (view full) ---

1200{
1201 struct file_lock *ifl,*nfl;
1202 int retval = 0;
1203
1204 debuglog("Entering duplicate_block");
1205
1206 /*
1207 * Is this lock request already on the blocking list?
1208 * Condider it a dupe if the file handles, offset, length,
1208 * Consider it a dupe if the file handles, offset, length,
1209 * exclusivity and client match.
1210 */
1211 LIST_FOREACH(ifl, &blockedlocklist_head, nfslocklist) {
1212 if (!bcmp(&fl->filehandle, &ifl->filehandle,
1213 sizeof(fhandle_t)) &&
1214 fl->client.exclusive == ifl->client.exclusive &&
1215 fl->client.l_offset == ifl->client.l_offset &&
1216 fl->client.l_len == ifl->client.l_len &&

--- 1087 unchanged lines hidden ---
1209 * exclusivity and client match.
1210 */
1211 LIST_FOREACH(ifl, &blockedlocklist_head, nfslocklist) {
1212 if (!bcmp(&fl->filehandle, &ifl->filehandle,
1213 sizeof(fhandle_t)) &&
1214 fl->client.exclusive == ifl->client.exclusive &&
1215 fl->client.l_offset == ifl->client.l_offset &&
1216 fl->client.l_len == ifl->client.l_len &&

--- 1087 unchanged lines hidden ---