Zdenek Kabelac
f8d46bd256
Thin cleanups
...
Fix/cleanup several error messages.
Remove test for seg_is_thin which could never be true there.
Replace (1<<24) with predefined constant.
2011-10-30 22:00:57 +00:00
Zdenek Kabelac
2721175d55
Thin output data_block_size via outsize
...
Use outsize to get nice size hint.
2011-10-28 20:25:08 +00:00
Zdenek Kabelac
5d8f78a6c0
Consistently use metadata LV as the first in MDA
...
Cosmetic cleanup.
Mark LV as thin pool before calling attach_pool functions.
2011-10-22 16:45:25 +00:00
Zdenek Kabelac
f0c9160df4
Store transaction_id with created thin lv
...
So we know the creation history and this should be useful with vgcfgrestore.
2011-10-21 11:38:35 +00:00
Zdenek Kabelac
3bc417488d
Thin pool now support chunk size as well
...
Use chunksize option to specify data_block_size for thin pool target.
Drop low_water_mark to zero.
2011-10-21 09:55:07 +00:00
Zdenek Kabelac
79c1f9fcf4
Reindent code
...
Avoid 1 indent level and use check for empty list only for
add of transaction_id message.
2011-10-20 10:32:29 +00:00
Zdenek Kabelac
7b199dc599
Use const pointers in thin API were appropriate
2011-10-20 10:31:27 +00:00
Zdenek Kabelac
d1a259d867
Print low_water_mark only when it has some value
...
Do not expose low_water_mark in mda yet, if it has no use.
We do not allow to be set via current lvm tool code.
Usage needs to be clarified first.
2011-10-20 10:30:39 +00:00
Zdenek Kabelac
3f53c059e9
Add _BLOCK_ to define
...
Use DM_THIN_MIN_DATA_BLOCK_SIZE and
DM_THIN_MAX_DATA_BLOCK_SIZE to make it more obvious, for which
this define is useful in thin API.
2011-10-20 10:28:41 +00:00
Zdenek Kabelac
1f7edce804
Indent debug message
2011-10-17 14:17:30 +00:00
Zdenek Kabelac
a25434a3a3
Message support for thin provisiong
...
lvm part of messaging.
Each message is now stored it's own thin pool section:
message1 {
create = lv
}
Messages are queued to thin pool dm target when this target
is going to be resumed or used through some dependency.
Currently 'delete' message are purely queued and processed
with next thin pool resume operation (i.e. create_thin).
WARNING - thin provisioning support is developmental code.
2011-10-17 14:17:09 +00:00
Zdenek Kabelac
5940327f3a
Reindent some thin functions
2011-10-11 08:51:56 +00:00
Zdenek Kabelac
151ed8d935
Add more validation to config parser
...
Do not leave it for vgvalidate().
2011-10-06 11:06:36 +00:00
Zdenek Kabelac
1419bf1c98
Transaction_id is property of thin_pool
...
Remove Transaction_id from thin target.
Store device_id for thin target.
2011-10-03 18:26:07 +00:00
Zdenek Kabelac
aebf2d5cdc
Add experimental code for activation of thinp targets
...
No dm messages yes - just a base functionality in the steps of other targets.
For now usable only for debugging and tracing.
2011-09-29 08:56:38 +00:00
Alasdair Kergon
ef78ebf35a
lvcreate/remove thin_pool and thin volumes (--driverloaded n only)
2011-09-08 16:41:18 +00:00
Alasdair Kergon
bb6f9b10db
pool attach fns & more field renaming
2011-09-06 22:43:56 +00:00
Zdenek Kabelac
5a7926c7d9
Convert data->pool
2011-09-06 22:35:44 +00:00
Alasdair Kergon
b88362ff95
add thin_manip.c like the other manip files
...
move basic lv_is_* to macros
data_lv -> pool_lv - we decided to call it 'pool' everywhere now
2011-09-06 19:25:42 +00:00
Alasdair Kergon
9ac61d2ba2
lvcreate parsing for thin provisioning.
...
The rest is incomplete so this isn't usable yet.
2011-09-06 00:26:42 +00:00
Zdenek Kabelac
466098cd1c
Reflect dm_config API update
2011-09-01 10:16:32 +00:00
Petr Rockai
e59e2f7c3c
Move the core of the lib/config/config.c functionality into libdevmapper,
...
leaving behind the LVM-specific parts of the code (convenience wrappers that
handle `struct device` and `struct cmd_context`, basically). A number of
functions have been renamed (in addition to getting a dm_ prefix) -- namely,
all of the config interface now has a dm_config_ prefix.
2011-08-30 14:55:15 +00:00
Alasdair Kergon
6fbf1c6b56
seg_is_thin includes both thin_pool and thin_volume
2011-08-26 18:15:14 +00:00
Alasdair Kergon
42914557d5
thin - hide unimplemented dso fn; remove duplicate origin_lv field; add
...
some lvcreate struct parms
2011-08-26 17:40:53 +00:00
Zdenek Kabelac
e82bd6249b
Initial code for read/write of thin metadata lv segments
2011-08-26 13:37:47 +00:00
Zdenek Kabelac
9d32170d5c
Add registration of thin_pool segment
...
Register thin and thin_pool segment via multiple_segtypes.
2011-08-25 10:00:09 +00:00
Zdenek Kabelac
3ba4a19510
Initial code layout for thin provisioning target
...
Only registers init_thin_segtype
Option --with-thin=internal needed for compilation.
For now useful only for developememt!
2011-08-24 08:27:49 +00:00