All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH 05/23] Replicator: suspend/deactivate replicator
Date: Thu, 06 May 2010 10:22:15 +0200	[thread overview]
Message-ID: <4BE27C37.1040704@redhat.com> (raw)
In-Reply-To: <20100506014505.GM27027@agk-dp.fab.redhat.com>

Dne 6.5.2010 03:45, Alasdair G Kergon napsal(a):
> On Wed, Apr 28, 2010 at 02:27:24PM +0200, Zdenek Kabelac wrote:
>>  	int activation_priority;	/* 0 gets activated first */
>> +	int suspend_priority;		/* 1 gets suspend first */
>   
> Can we make those two work in similar, not opposite, ways?


Idea behind 'suspend_priority' is not meant as a generic concept - it's rather
designed for needs of Replicator target (also that's why original  reject name
had the replicator in it and after your suggestion a more generic name is used
here) - if there will be some future target with similar logic - we could try
to figure out probably better logic.

Meanwhile - the difference from activation_priority is there are no levels,
it's rather boolean 'true/false' logic (which could go to comment probably) -
when  false==0  means default - no priority for parent suspend - thus unless
explicitly set by dm user (which currently is made only by  the Replicator
target) the function _suspend_parent() will have no effect on processing.

Zdenek




  reply	other threads:[~2010-05-06  8:22 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-28 12:27 [PATCH 00/23] Replicator 100428 Zdenek Kabelac
2010-04-28 12:27 ` [PATCH 01/23] Return ECMD_FAILED for break Zdenek Kabelac
2010-05-06  1:10   ` Alasdair G Kergon
2010-05-06  8:13     ` Zdenek Kabelac
2010-04-28 12:27 ` [PATCH 02/23] Add dm_list_splice() for list join Zdenek Kabelac
2010-05-06  1:11   ` Alasdair G Kergon
2010-04-28 12:27 ` [PATCH 03/23] API change for args of process_each_lv_in_vg() Zdenek Kabelac
2010-05-06  1:39   ` Alasdair G Kergon
2010-05-06  8:14     ` Zdenek Kabelac
2010-04-28 12:27 ` [PATCH 04/23] Replicator: libdm support Zdenek Kabelac
2010-04-28 12:27 ` [PATCH 05/23] Replicator: suspend/deactivate replicator Zdenek Kabelac
2010-05-06  1:45   ` Alasdair G Kergon
2010-05-06  8:22     ` Zdenek Kabelac [this message]
2010-05-06  1:55   ` Alasdair G Kergon
2010-05-06  8:34     ` Zdenek Kabelac
2010-05-06 10:14       ` Alasdair G Kergon
2010-05-06 10:22         ` Zdenek Kabelac
2010-04-28 12:27 ` [PATCH 06/23] Replicator: lvm2 support Zdenek Kabelac
2010-04-28 12:27   ` Zdenek Kabelac
2010-04-28 12:57     ` Zdenek Kabelac
2010-04-28 12:27 ` [PATCH 07/23] Replicator: check replicator segment Zdenek Kabelac
2010-04-28 12:34 ` [PATCH 08/23] Replicator: extend _lv_each_dependency() rep. deps Zdenek Kabelac
2010-04-28 12:34 ` [PATCH 09/23] Replicator: extend volume_group with list of VGs Zdenek Kabelac
2010-04-28 12:34 ` [PATCH 10/23] Replicator: add sorted cmd_vg list Zdenek Kabelac
2010-04-28 12:34 ` [PATCH 11/23] Replicator: add find_replicator_vgs Zdenek Kabelac
2010-04-28 12:34 ` [PATCH 12/23] Replicator: add read and release VGs for rsites Zdenek Kabelac
2010-04-28 12:34 ` [PATCH 13/23] Replicator: use cmd_vg list for _process_one_vg() Zdenek Kabelac
2010-04-28 12:34 ` [PATCH 14/23] Replicator: use cmd_vg for process_each_lv_in_vg() Zdenek Kabelac
2010-04-28 12:57   ` Zdenek Kabelac
2010-04-28 12:34 ` [PATCH 15/23] Replicator: lock_vol() finds missing VGs Zdenek Kabelac
2010-04-28 12:36 ` [PATCH 16/23] Replicator: activate checks for missing vgs Zdenek Kabelac
2010-04-28 12:36 ` [PATCH 17/23] Replicator: update _create_partial_dtree() Zdenek Kabelac
2010-04-28 12:36 ` [PATCH 18/23] Replicator: vg with cmd_missing_vgs does not print Zdenek Kabelac
2010-04-28 12:36 ` [PATCH 19/23] Replicator: add replicator to dtree Zdenek Kabelac
2010-04-28 12:36 ` [PATCH 20/23] Replicator: do not remove of replicators' LVs Zdenek Kabelac
2010-04-28 12:37 ` [PATCH 21/23] Replicator: activate change for vgchange Zdenek Kabelac
2010-04-28 12:37   ` Zdenek Kabelac
2010-04-28 12:57     ` Zdenek Kabelac
2010-04-28 12:37 ` [PATCH 22/23] Replicator: add new options for replicator Zdenek Kabelac
2010-04-28 12:37 ` [PATCH 23/23] Replicator: man pages for lvcreate, lvchange Zdenek Kabelac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BE27C37.1040704@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.