• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/dlm/

Lines Matching defs:domain

6  * defines domain join / leave apis
124 * be used to determine what a running domain is actually using.
244 static struct dlm_ctxt * __dlm_lookup_domain_full(const char *domain, int len)
252 * but domain may not be! */
256 memcmp(tmp->name, domain, len)==0)
264 /* For null terminated domain strings ONLY */
265 static struct dlm_ctxt * __dlm_lookup_domain(const char *domain)
269 return __dlm_lookup_domain_full(domain, strlen(domain));
274 * 1) the domain does not exist
275 * 2) the domain exists and it's state is "joined" */
276 static int dlm_wait_on_domain_helper(const char *domain)
283 tmp = __dlm_lookup_domain(domain);
326 mlog(0, "freeing memory from domain %s\n", dlm->name);
402 /* We've left the domain. Now we can take ourselves out of the
409 /* Wake up anyone waiting for us to remove this domain */
421 mlog(0, "Migrating locks from domain %s\n", dlm->name);
464 mlog(0, "DONE Migrating locks from domain %s\n", dlm->name);
508 printk(KERN_NOTICE "o2dlm: Nodes in domain %s: ", dlm->name);
531 printk(KERN_NOTICE "o2dlm: Node %u leaves domain %s\n", node, dlm->name);
553 mlog(0, "Asking node %u if we can leave the domain %s me = %u\n",
581 /* Clear ourselves from the domain map */
599 mlog(ML_NOTICE, "Error %d sending domain exit message "
659 * domain. Don't use DLM_CTXT_LEAVING yet as we still
660 * want new domain joins to communicate with us at
669 mlog(0, "shutting down domain %s\n", dlm->name);
773 mlog(0, "node %u wants to join domain %s\n", query->node_idx,
774 query->domain);
792 dlm = __dlm_lookup_domain_full(query->domain, query->name_len);
816 * to be put in someone's domain map.
842 "is still in the domain! needs recovery?\n",
846 /* Alright we're fully a part of this domain
888 mlog(0, "node %u asserts join on domain %s\n", assert->node_idx,
889 assert->domain);
892 dlm = __dlm_lookup_domain_full(assert->domain, assert->name_len);
897 * domain. Set him in the map and clean up our
903 printk(KERN_NOTICE "o2dlm: Node %u joins domain %s\n",
925 mlog(0, "node %u cancels join on domain %s\n", cancel->node_idx,
926 cancel->domain);
929 dlm = __dlm_lookup_domain_full(cancel->domain, cancel->name_len);
955 memcpy(cancel_msg.domain, dlm->name, cancel_msg.name_len);
1022 memcpy(join_msg.domain, dlm->name, join_msg.name_len);
1042 joined into the domain. */
1099 memcpy(assert_msg.domain, dlm->name, assert_msg.name_len);
1227 /* Yay, everyone agree's we can join the domain. My domain is
1229 * yes_resp_map. Copy that into our domain map and send a join
1242 * we're not in the domain. */
1417 mlog(0, "Join domain %s\n", dlm->name);
1466 mlog(ML_NOTICE, "Timed out joining dlm domain "
1507 static struct dlm_ctxt *dlm_alloc_ctxt(const char *domain,
1520 dlm->name = kstrdup(domain, GFP_KERNEL);
1654 * dlm_register_domain: one-time setup per "domain".
1660 struct dlm_ctxt * dlm_register_domain(const char *domain,
1668 if (strlen(domain) >= O2NM_MAX_NAME_LEN) {
1670 mlog(ML_ERROR, "domain name length too long\n");
1681 mlog(0, "register called for domain \"%s\"\n", domain);
1693 dlm = __dlm_lookup_domain(domain);
1701 domain));
1709 "compatible with already registered domain "
1710 "\"%s\"\n", domain);
1728 new_ctxt = dlm_alloc_ctxt(domain, key);
1741 /* add the new domain */
1816 * evict a node from it's domain *before* heartbeat fires, a similar
1819 /* Eviction is not expected to happen often, so a per-domain lock is