All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Add vg/lv tag addition/deletion to lvm2app
@ 2010-02-16 19:39 Dave Wysochanski
  2010-02-16 19:39 ` [PATCH 1/7] Refactor _vgchange_tag() to vg_change_tag() library function Dave Wysochanski
  0 siblings, 1 reply; 10+ messages in thread
From: Dave Wysochanski @ 2010-02-16 19:39 UTC (permalink / raw)
  To: lvm-devel


This patchset adds lv/vg tag addition/deletion to lvm2app.
pv tags will be handled later when the pv refactoring patches
are done.  Partially fixes rhbz 562909.

Patchset is fairly straightforward.  When adding a tag, we need
to copy the tag memory before adding it to the list (see patch #4).
The copy could be placed inside lvm2app or in the internal library.
I chose the internal library to minmize code in lvm2app.  Another
finer point is what to return when the 'get_tags' lvm2app function
is called but there's no tags - a NULL pointer or an empty list.
For now I've chosen a NULL pointer to avoid allocation of memory.
There is some inconsistency here in lvm2app but the behavior is
documented in the header for all functions that return lists.



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

end of thread, other threads:[~2010-02-17  8:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 19:39 [PATCH 0/7] Add vg/lv tag addition/deletion to lvm2app Dave Wysochanski
2010-02-16 19:39 ` [PATCH 1/7] Refactor _vgchange_tag() to vg_change_tag() library function Dave Wysochanski
2010-02-16 19:39   ` [PATCH 2/7] Refactor vgcreate to call new vg_change_tag() function Dave Wysochanski
2010-02-16 19:39     ` [PATCH 3/7] Refactor lvchange_tag() to call lv_change_tag() library function Dave Wysochanski
2010-02-16 19:39       ` [PATCH 4/7] Add _tag_copy() to allocate memory and copy a tag in {lv|vg}_change_tag() Dave Wysochanski
2010-02-16 19:39         ` [PATCH 5/7] Add lvm_vg_get_tags(), lvm_vg_add_tag(), and lvm_vg_remove_tag() Dave Wysochanski
2010-02-16 19:39           ` [PATCH 6/7] Add lvm_lv_get_tags(), lvm_lv_add_tag(), and lvm_lv_remove_tag() Dave Wysochanski
2010-02-16 19:39             ` [PATCH 7/7] Update lvm2app interactive unit test for vg/lv tags Dave Wysochanski
2010-02-17  8:42               ` Zdenek Kabelac
2010-02-17  8:16         ` [PATCH 4/7] Add _tag_copy() to allocate memory and copy a tag in {lv|vg}_change_tag() Zdenek Kabelac

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.