• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/locking/

Lines Matching +defs:fnum +defs:key

51 	DEBUG(10,("start = %.0f, size = %.0f, fnum = %d, %s %s\n",
54 pls->fnum,
110 lck2->lock_type == READ_LOCK && lck1->fnum == lck2->fnum) {
119 flavour. POSIX locks ignore fnum - they only care about dev/ino which we
140 /* Locks on the same context con't conflict. Ignore fnum. */
162 lck2->lock_type == READ_LOCK && lck1->fnum == lck2->fnum) {
181 same fnum only. This is the read/write lock check code path.
206 lck1->fnum == lck2->fnum)
227 Amazingly enough, w2k3 "remembers" whether the last lock failure on a fnum
247 lock->fnum == fsp->last_lock_failure.fnum &&
388 /* We can't merge non-conflicting locks on different context - ignore fnum. */
763 lock.fnum = br_lck->fsp->fnum;
804 lock->fnum == plock->fnum &&
826 lock->fnum == plock->fnum &&
927 /* Only remove our own locks - ignore fnum. */
1073 lock.fnum = br_lck->fsp->fnum;
1108 lock.fnum = fsp->fnum;
1131 DEBUG(10,("brl_locktest: posix start=%.0f len=%.0f %s for fnum %d file %s\n",
1133 fsp->fnum, fsp->fsp_name ));
1165 lock.fnum = fsp->fnum;
1197 DEBUG(10,("brl_lockquery: posix start=%.0f len=%.0f %s for fnum %d file %s\n",
1199 fsp->fnum, fsp->fsp_name ));
1233 /* For pending locks we *always* care about the fnum. */
1235 lock->fnum == br_lck->fsp->fnum &&
1270 int fnum = fsp->fnum;
1280 pair that are not this fnum. If so we need to call unlock on each
1294 if (lock->context.tid != tid || lock->fnum != fnum) {
1320 (lock->fnum == fnum)) {
1335 /* Remove any existing locks for this fnum (or any fnum if they're POSIX). */
1342 if ((lock->lock_flav == WINDOWS_LOCK) && (lock->fnum == fnum)) {
1360 /* Optimisation - don't send to this fnum as we're
1364 pend_lock->fnum == fnum) {
1454 struct lock_key *key;
1469 key = (struct lock_key *)kbuf.dptr;
1491 traverse_callback(key->device,
1492 key->inode,
1524 TDB_DATA key;
1526 key.dptr = (char *)&br_lck->key;
1527 key.dsize = sizeof(struct lock_key);
1539 if (tdb_delete(tdb, key) == -1) {
1547 if (tdb_store(tdb, key, data, TDB_REPLACE) == -1) {
1555 tdb_chainunlock(tdb, key);
1570 TDB_DATA key;
1581 memset(&br_lck->key, '\0', sizeof(struct lock_key));
1582 br_lck->key.device = fsp->dev;
1583 br_lck->key.inode = fsp->inode;
1585 key.dptr = (char *)&br_lck->key;
1586 key.dsize = sizeof(struct lock_key);
1597 if (tdb_chainlock(tdb, key) != 0) {
1607 data = tdb_fetch(tdb, key);