]> sourceware.org Git - lvm2.git/commit
libdm: dm_tree_node_size_changed recognizes reduction
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 25 Oct 2015 18:27:09 +0000 (19:27 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Sun, 25 Oct 2015 20:05:15 +0000 (21:05 +0100)
commit9ef820a2a5e174cd08097981d7879e1f4cbded01
tree50ff045949f27d20bae806d3c67903445b8e7058
parent40eea582aea512db7fceafd8559bf66df0733b55
libdm: dm_tree_node_size_changed recognizes reduction

Add more functionality to size_changed function.
While 'existing' API only detected  0 for
unchanged,  and !0 for changed,
new improved API will also detected if the
size has only went bigger - or there was
size reduction.

Function work for the whole dm-tree - so
no change is size is always 0.
only size extension  1.
and if some size reduction is there - returns -1.

This result can be used for better evaluation
whether we need to flush before suspend.
WHATS_NEW_DM
libdm/.exported_symbols.Base
libdm/.exported_symbols.DM_1_02_110
libdm/libdevmapper.h
libdm/libdm-deptree.c
This page took 0.038437 seconds and 5 git commands to generate.