All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC/PATCH 0/2] lvm2app: Adding lv creation support
@ 2013-01-23  7:25 M. Mohan Kumar
  2013-01-23  7:25 ` [RFC/PATCH] lvm2app: Add thin and thin pool lv creation M. Mohan Kumar
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: M. Mohan Kumar @ 2013-01-23  7:25 UTC (permalink / raw)
  To: lvm-devel

From: "M. Mohan Kumar" <mohan@in.ibm.com>

Hello,

We added Block Device(BD) backend capability to GlusterFS last year. BD
backend takes volume group as the input for GlusterFS volume and exports
all logical volumes under it as regular files to the GlusterFS client.
Now we are planning to export thin LVs as also regular files through
GlusterFS. In order to support thin LVs, we need thin lv creation
support in the lvm-devel.

I am posting RFC patches for adding various lv target creation
support and thin(pool) lv creation support in lvm library.

First approach (Add thin and thin pool lv creation) adds two interfaces
lvm_lv_thinpool and lvm_lv_thin (similar to lvm_vg_create_lv_linear())
to create thin-pool LV and thin LV respectively.

Second approach (Add LV creation support) adds interface
lvm_vg_create_lv() that can be used to create LV of any target type
(stripe, mirror, raid, thin etc). As part of this interface a new
structure lv_params_t is addded which is similar to lvcreate_params
exposing all parameters (such as chunk size, stripe size etc) to the end
user. Advantage with this approach is that it gives the user to control
properties of new LVs such as if the minor number of new lv should be
persistent, allocation policy, permission mode, stripe size etc. But
problem with this approach is that lots of code (parameter parsing,
setting default value for LV properties etc) from tools is duplicated
and it needs to be made as a library so that both tools and lvm-devel
can consume them.

In the long run, lvm-devel may need to provide finer control to the user
when creating LVs. In that case second approach is more suitable.

M. Mohan Kumar (2):
  lvm2app: Add thin and thin pool lv creation
  lvm2app: Add LV creation support

 liblvm/lvm2app.h | 102 +++++++
 liblvm/lvm_lv.c  | 835 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 937 insertions(+)

-- 
1.7.11.7



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-31  6:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-23  7:25 [RFC/PATCH 0/2] lvm2app: Adding lv creation support M. Mohan Kumar
2013-01-23  7:25 ` [RFC/PATCH] lvm2app: Add thin and thin pool lv creation M. Mohan Kumar
2013-01-31  6:20   ` M. Mohan Kumar
2013-01-23  7:25 ` [RFC/PATCH] lvm2app: Add LV creation support M. Mohan Kumar
2013-01-24 23:31 ` [RFC/PATCH 0/2] lvm2app: Adding lv " Tony Asleson
2013-01-25 11:25   ` M. Mohan Kumar
2013-01-25 16:43     ` Tony Asleson

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.