* [LVM2 PATCH 1/2] lvrename: factor out core routine
@ 2007-07-27 15:32 Jun'ichi Nomura
2007-08-03 17:18 ` Dave Wysochanski
0 siblings, 1 reply; 2+ messages in thread
From: Jun'ichi Nomura @ 2007-07-27 15:32 UTC (permalink / raw)
To: lvm-devel
Hi,
This patch factors out core renaming function from lvrename()
as a preparation for mirrored LV renaming.
No functional change except for the order of the validity check.
It used to be:
- check if the new name is not yet used in the VG
- check if the old name really exists in the VG
This order is now reversed.
As the VG is locked, it should have no problem.
Also the following cleanups are included:
- converting "stack; return 0;" to "return_0"
- removing duplicated mirrored LV check
(there were 2 identical checks)
Applicable to the CVS head.
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-lvrename-extract-core-routine.patch
Type: text/x-patch
Size: 3922 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20070727/822ec4f2/attachment.bin>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [LVM2 PATCH 1/2] lvrename: factor out core routine
2007-07-27 15:32 [LVM2 PATCH 1/2] lvrename: factor out core routine Jun'ichi Nomura
@ 2007-08-03 17:18 ` Dave Wysochanski
0 siblings, 0 replies; 2+ messages in thread
From: Dave Wysochanski @ 2007-08-03 17:18 UTC (permalink / raw)
To: lvm-devel
On Fri, 2007-07-27 at 11:32 -0400, Jun'ichi Nomura wrote:
> Hi,
>
> This patch factors out core renaming function from lvrename()
> as a preparation for mirrored LV renaming.
>
> No functional change except for the order of the validity check.
> It used to be:
> - check if the new name is not yet used in the VG
> - check if the old name really exists in the VG
> This order is now reversed.
> As the VG is locked, it should have no problem.
>
> Also the following cleanups are included:
> - converting "stack; return 0;" to "return_0"
> - removing duplicated mirrored LV check
> (there were 2 identical checks)
>
> Applicable to the CVS head.
>
This looks fine and is a nice cleanup. Will probably move the new
function out of the tools dir though.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-03 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 15:32 [LVM2 PATCH 1/2] lvrename: factor out core routine Jun'ichi Nomura
2007-08-03 17:18 ` Dave Wysochanski
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.