]> sourceware.org Git - lvm2.git/log
lvm2.git
12 years agoSome fixmes
Zdenek Kabelac [Wed, 8 Feb 2012 12:57:15 +0000 (12:57 +0000)]
Some fixmes

'len' calculation is unused ?
Unreachable code could be removed or moved upward ?

12 years agoSwitch to return void
Zdenek Kabelac [Wed, 8 Feb 2012 12:52:58 +0000 (12:52 +0000)]
Switch to return void

List delete cannot fail, so there is no reason to test for error.

12 years agoUse dm_snprintf and improve error handling
Zdenek Kabelac [Wed, 8 Feb 2012 12:50:10 +0000 (12:50 +0000)]
Use dm_snprintf and improve error handling

Add standard error reporting with error logging.
Use plain alloc instead of zalloc for string buffer.
Use dm_snprintf with valid test for <0.

12 years agoAdd range test for device number
Zdenek Kabelac [Wed, 8 Feb 2012 12:48:14 +0000 (12:48 +0000)]
Add range test for device number

Check the output of atoi is in valid range.

12 years agoRemove duplicate test
Zdenek Kabelac [Wed, 8 Feb 2012 11:41:18 +0000 (11:41 +0000)]
Remove duplicate test

Tested condition has been already evaluated before
For strlen() code has already excluded <ID_LEN.
For repairing, already tested (!argc && !repairing) before.

12 years agoReplace snprintf with dm_snprintf
Zdenek Kabelac [Wed, 8 Feb 2012 11:40:02 +0000 (11:40 +0000)]
Replace snprintf with dm_snprintf

snprintf testing for negative is replaced with dm_snprintf where this
test really works.
Add missing test for result of dm_snprintf().

12 years agoRemove unneeded assignments
Zdenek Kabelac [Wed, 8 Feb 2012 11:36:18 +0000 (11:36 +0000)]
Remove unneeded assignments

Variables have (or will have) those values set.

12 years agoKeep page_size as signed number
Zdenek Kabelac [Wed, 8 Feb 2012 11:34:46 +0000 (11:34 +0000)]
Keep page_size as signed number

Since it's return value from sysconf and is checked for <0.

12 years agoMove done jump lower
Zdenek Kabelac [Wed, 8 Feb 2012 11:31:29 +0000 (11:31 +0000)]
Move done jump lower

Since before 'goto done' is bufused zeroed, it would otherwise write 1
byte in front of buffer.

12 years agoAdd boundary test for number of mirror devs and logs
Zdenek Kabelac [Wed, 8 Feb 2012 11:29:13 +0000 (11:29 +0000)]
Add boundary test for number of mirror devs and logs

As atoi may return negative value - test for both limits.
Test log_args for limits before calling alloca().
Code from dmeventd mirror plugin should probably share same code as
we have in mirrored.c.

12 years agoSet all parameters to 0
Zdenek Kabelac [Wed, 8 Feb 2012 11:25:09 +0000 (11:25 +0000)]
Set all parameters to 0

Since the function dm_get_next_target() returns NULL as 'next' pointer
so it's not a 'real' error - set 0 to all parameters when NULL is
returned because of missing head.

i.e. one of use case::
do {
next = dm_get_next_target(dmt, next, &start, &length,
  &target_type, &params);
size += length;
} while (next);

12 years agoCheck that whole locking_dir fits _lock_dir buffer
Zdenek Kabelac [Wed, 8 Feb 2012 11:17:34 +0000 (11:17 +0000)]
Check that whole locking_dir fits _lock_dir buffer

12 years agoMove close few lines
Zdenek Kabelac [Wed, 8 Feb 2012 11:15:38 +0000 (11:15 +0000)]
Move close few lines

Since the function dev_close() has code path, which really could close
file (for unlocked vg) and destroy dev handler, stay on safe side and move
the close few lines later, even our current use case shouldn't trigger
such scenario.

12 years agoUse dm_list_iterate_items_safe
Zdenek Kabelac [Wed, 8 Feb 2012 11:12:18 +0000 (11:12 +0000)]
Use dm_list_iterate_items_safe

And avoid direct access to list member variables.
Inline _free_li().

12 years agoFix fd resource leak in error path
Zdenek Kabelac [Wed, 8 Feb 2012 11:07:17 +0000 (11:07 +0000)]
Fix fd resource leak in error path

Use 'goto bad' to cleanup fd on error path.

12 years agoEnsure strncpy() function always ends with '\0'
Zdenek Kabelac [Wed, 8 Feb 2012 11:05:04 +0000 (11:05 +0000)]
Ensure strncpy() function always ends with '\0'

Since last character needs to be \0 for string,
pass buffer size smaller by 1 byte.

12 years agoSet status for error path
Zdenek Kabelac [Wed, 8 Feb 2012 10:56:17 +0000 (10:56 +0000)]
Set status for error path

Do not leave status unitialized, since in some cases, it's tested,
when the function returns error.

12 years agoAdd missing deps for lvm2api
Zdenek Kabelac [Wed, 8 Feb 2012 10:52:45 +0000 (10:52 +0000)]
Add missing deps for lvm2api

Hmm, wasted some time because of this missing deps....

12 years agoFix resource leaks for failing allocation
Zdenek Kabelac [Wed, 8 Feb 2012 10:49:36 +0000 (10:49 +0000)]
Fix resource leaks for failing allocation

In case, something would fail during format initialization,
return allocated memory.

12 years agoRelease allocated resources in error path
Zdenek Kabelac [Wed, 8 Feb 2012 10:46:24 +0000 (10:46 +0000)]
Release allocated resources in error path

If composite_filter_create() fails, release filters.

12 years agoCheck result of lstat
Zdenek Kabelac [Wed, 8 Feb 2012 10:43:42 +0000 (10:43 +0000)]
Check result of lstat

If lstat returns errno different from ENOENT, do not use the content of
struct stat 'buf'.

12 years agoWhat's new.
Petr Rockai [Wed, 1 Feb 2012 20:13:44 +0000 (20:13 +0000)]
What's new.

12 years agoRemove a dubious log message ("another thread is handling an event") from LVM
Petr Rockai [Wed, 1 Feb 2012 20:11:58 +0000 (20:11 +0000)]
Remove a dubious log message ("another thread is handling an event") from LVM
dmeventd plugins. Fixes RHBZ 771419.

12 years agopost-release
Alasdair Kergon [Wed, 1 Feb 2012 18:46:57 +0000 (18:46 +0000)]
post-release

12 years agopre-release
Alasdair Kergon [Wed, 1 Feb 2012 15:17:04 +0000 (15:17 +0000)]
pre-release

12 years agoAdjust comments
Alasdair Kergon [Wed, 1 Feb 2012 15:05:53 +0000 (15:05 +0000)]
Adjust comments

12 years agoAdd synchornization point in mirror log init.
Zdenek Kabelac [Wed, 1 Feb 2012 13:50:36 +0000 (13:50 +0000)]
Add synchornization point in mirror log init.

Put extra sync point when mirror log is deactivated and before
it's activated for the second time.

12 years agoDisable partial activation for thin LVs and LVs with all missing segments
Zdenek Kabelac [Wed, 1 Feb 2012 13:47:27 +0000 (13:47 +0000)]
Disable partial activation for thin LVs and LVs with all missing segments

Count number of error and existing areas and if there is no existing area
for the LV avoid its activation.

Always disable partial activatio for thin volumes.

For mirrors currently put in hack to let it pass with a special name
since current mirror code needs to activate such LV during some operations.

12 years agoAvoid warning for small pv_min_size
Zdenek Kabelac [Wed, 1 Feb 2012 13:42:18 +0000 (13:42 +0000)]
Avoid warning for small pv_min_size

Do not print warning for pv_min_size set in range between 512KB and 2MB.

12 years agoClean up systemd unit ordering and requirements.
Peter Rajnoha [Wed, 1 Feb 2012 13:08:39 +0000 (13:08 +0000)]
Clean up systemd unit ordering and requirements.

12 years agoMinor consistency update for debugging messages
Zdenek Kabelac [Wed, 1 Feb 2012 10:48:22 +0000 (10:48 +0000)]
Minor consistency update for debugging messages

Use mlock/munlock for debugging lines.

12 years agoUser correct base dir for lcov reports
Zdenek Kabelac [Wed, 1 Feb 2012 10:46:45 +0000 (10:46 +0000)]
User correct base dir for lcov reports

Fix problem when srcdir != builddir.

12 years agolost line
Alasdair Kergon [Wed, 1 Feb 2012 02:11:43 +0000 (02:11 +0000)]
lost line

12 years agoTrack unreserved space for all alloc policies and then permit NORMAL to place
Alasdair Kergon [Wed, 1 Feb 2012 02:10:45 +0000 (02:10 +0000)]
Track unreserved space for all alloc policies and then permit NORMAL to place
log and data on same single PV.

12 years agolp.pool may be (null) too
Alasdair Kergon [Wed, 1 Feb 2012 01:54:20 +0000 (01:54 +0000)]
lp.pool may be (null) too

12 years agoAutomatically detect whether corosync clvmd needs to use confdb or cmap. (fabio)
Alasdair Kergon [Tue, 31 Jan 2012 21:21:53 +0000 (21:21 +0000)]
Automatically detect whether corosync clvmd needs to use confdb or cmap. (fabio)

12 years agoFix data% reporting
Zdenek Kabelac [Sat, 28 Jan 2012 20:12:26 +0000 (20:12 +0000)]
Fix data% reporting

For reading % of mapped size of thin volume use as origin for
old style snapshot '-real' device needs to be queried.
Fix log_error report given for lvs -a in this case.

12 years agoTARGETS macro has to be defined before inclusion of make.tmpl
Zdenek Kabelac [Fri, 27 Jan 2012 10:55:02 +0000 (10:55 +0000)]
TARGETS macro has to be defined before inclusion of make.tmpl

Use @TESTING@ check in this case.

12 years agopost-release
Alasdair Kergon [Fri, 27 Jan 2012 01:23:40 +0000 (01:23 +0000)]
post-release

12 years agoBuild test run target only for $(TESTING)
Zdenek Kabelac [Thu, 26 Jan 2012 21:40:36 +0000 (21:40 +0000)]
Build test run target only for $(TESTING)

Add libraries properly in LDLIBS.

12 years agoThin for_each_sub_lv
Zdenek Kabelac [Thu, 26 Jan 2012 21:39:32 +0000 (21:39 +0000)]
Thin  for_each_sub_lv

Adapt to scan thin dependency LVs

12 years agoIf clvmd is not started, die test instead of skipping it
Zdenek Kabelac [Thu, 26 Jan 2012 18:25:46 +0000 (18:25 +0000)]
If clvmd is not started, die test instead of skipping it

12 years agoOops missed braces in previous commit
Zdenek Kabelac [Thu, 26 Jan 2012 17:55:55 +0000 (17:55 +0000)]
Oops missed braces in previous commit

This has disabled clvmd for being executed.
(FIXME improve testing part to catch this fault)

12 years agopre-release
Alasdair Kergon [Thu, 26 Jan 2012 14:02:42 +0000 (14:02 +0000)]
pre-release

12 years agopre-release
Alasdair Kergon [Thu, 26 Jan 2012 10:11:30 +0000 (10:11 +0000)]
pre-release

12 years agoCosmetic change use return macro with implicit stack
Zdenek Kabelac [Wed, 25 Jan 2012 22:38:40 +0000 (22:38 +0000)]
Cosmetic change use return macro with implicit stack

12 years agoSet missing header define
Zdenek Kabelac [Wed, 25 Jan 2012 22:37:48 +0000 (22:37 +0000)]
Set missing header define

12 years agoFix leak of hash table
Zdenek Kabelac [Wed, 25 Jan 2012 22:36:33 +0000 (22:36 +0000)]
Fix leak of hash table

Minor leak on command initialization.

12 years agoInstrument code that pointer are already released
Zdenek Kabelac [Wed, 25 Jan 2012 22:35:36 +0000 (22:35 +0000)]
Instrument code that pointer are already released

Set pointers to NULL since on the function exit they are no longer valid.

12 years agoSet to a defined value vars used after error path
Zdenek Kabelac [Wed, 25 Jan 2012 22:20:11 +0000 (22:20 +0000)]
Set to a defined value vars used after error path

Static analyzer noticed this vars are used even when error is reported
back thus their state is undefined - set to 0 for this case.

12 years agoTest for uname result
Zdenek Kabelac [Wed, 25 Jan 2012 22:17:57 +0000 (22:17 +0000)]
Test for uname result

in fail path initialize to 0.

12 years agoFix missing dmt destructor
Zdenek Kabelac [Wed, 25 Jan 2012 22:16:04 +0000 (22:16 +0000)]
Fix missing dmt destructor

Also always initialize maj,min,patchlevel when success is returned.

12 years agoFree allocated segment type in error path
Zdenek Kabelac [Wed, 25 Jan 2012 21:54:00 +0000 (21:54 +0000)]
Free allocated segment type in error path

12 years agoLimit alignment to 32bit values
Zdenek Kabelac [Wed, 25 Jan 2012 21:52:53 +0000 (21:52 +0000)]
Limit alignment to 32bit values

to get the same behavior on 32/64 machines.

12 years agoEnsure whole info is initialised
Zdenek Kabelac [Wed, 25 Jan 2012 21:50:50 +0000 (21:50 +0000)]
Ensure whole info is initialised

Since _create_dm_tree_node is copying whole structure,
make sure all members are initialized.

12 years agoFix resource leak of file handle
Zdenek Kabelac [Wed, 25 Jan 2012 21:47:18 +0000 (21:47 +0000)]
Fix resource leak of file handle

Introduces when added dm_device_get_name.
Close file handle in all error paths.

12 years agoCheck for correctness of uint64 value if exists
Zdenek Kabelac [Wed, 25 Jan 2012 21:43:51 +0000 (21:43 +0000)]
Check for correctness of uint64 value if exists

12 years agoAdd breaks for cases
Zdenek Kabelac [Wed, 25 Jan 2012 21:42:09 +0000 (21:42 +0000)]
Add breaks for cases

12 years agoEnsure reply struct has all fields defined
Zdenek Kabelac [Wed, 25 Jan 2012 21:31:59 +0000 (21:31 +0000)]
Ensure reply struct has all fields defined

Reply is returned by value.

12 years agoCheck and print perror for syscalls
Zdenek Kabelac [Wed, 25 Jan 2012 21:30:27 +0000 (21:30 +0000)]
Check and print perror for syscalls

12 years ago& -> &&
Alasdair Kergon [Wed, 25 Jan 2012 17:14:56 +0000 (17:14 +0000)]
& -> &&

12 years agoFix compilation with disabled devmapper
Zdenek Kabelac [Wed, 25 Jan 2012 13:12:59 +0000 (13:12 +0000)]
Fix compilation with disabled devmapper

During release preparation things has changed, so making sure
we are compilable with --disable-devmapper.

12 years agoThin read percent info from layered device
Zdenek Kabelac [Wed, 25 Jan 2012 13:11:52 +0000 (13:11 +0000)]
Thin read  percent info from layered device

Since we only need layered device - check for tpool device presence,
so user doesn't need to activate thin pool explicitely for percent info.

12 years agoRename origin_only to more generic use_layer flag
Zdenek Kabelac [Wed, 25 Jan 2012 13:10:26 +0000 (13:10 +0000)]
Rename  origin_only to more generic use_layer flag

Since now we have more layered devices i.e. thin volumes - support
selection of layer via flag.

12 years agoClean var declarations to the front of the function
Zdenek Kabelac [Wed, 25 Jan 2012 13:06:57 +0000 (13:06 +0000)]
Clean var declarations to the front of the function

12 years agoUpdate verbose lvs to print metadata_percent info
Zdenek Kabelac [Wed, 25 Jan 2012 11:32:41 +0000 (11:32 +0000)]
Update verbose lvs  to print metadata_percent info

Update lvs  -o fields in WHATS_NEW.

12 years agoThin clear stacked message for thin pool
Zdenek Kabelac [Wed, 25 Jan 2012 11:27:42 +0000 (11:27 +0000)]
Thin clear stacked message for thin pool

Before removing thin pool LV always make sure, stacked message
for previous run are cleared - but allow to remove any
device that should have been created
(i.e. creation of snapshot failed - so the message for snapshot creation
may be replaced with delete message within unfinished transaction).

Also commit messages after lv remove - so free space is released in pool.

12 years agoMake commented out code more obvious
Alasdair Kergon [Wed, 25 Jan 2012 11:10:06 +0000 (11:10 +0000)]
Make commented out code more obvious

12 years agoThin skip activation when there are no thin message
Zdenek Kabelac [Wed, 25 Jan 2012 09:17:15 +0000 (09:17 +0000)]
Thin skip activation when there are no thin message

If the list with thin messages is empty, do not touch thin pool device.

12 years agoThin correct activation order
Zdenek Kabelac [Wed, 25 Jan 2012 09:15:44 +0000 (09:15 +0000)]
Thin correct activation order

When the message is passed only in resume path the order needs
to be corrected.

12 years agoThin use suspend/resume_lv_origin
Zdenek Kabelac [Wed, 25 Jan 2012 09:14:25 +0000 (09:14 +0000)]
Thin use  suspend/resume_lv_origin

Use origin_only support for thin volume when thin snapshot is created.

12 years agoThin use origin_only for thin pools as well
Zdenek Kabelac [Wed, 25 Jan 2012 09:13:10 +0000 (09:13 +0000)]
Thin use origin_only for thin pools as well

Extend the usage of origin_only flag to allow resume of thin pool LV
(when it's active) to pass only the messages.

origin_only flag will skip detection of already resumed tree for thin_pool,
so we do not need to suspend the tree and we just send messages.

12 years agoThin add support for origin_only suspend of thin volumes
Zdenek Kabelac [Wed, 25 Jan 2012 09:10:13 +0000 (09:10 +0000)]
Thin add support for origin_only suspend of thin volumes

Pass in the origin_only flag also for thin volumes - but curently the flag
is not used to its best.

FIXME: achieve the state where only  thin volume snapshot origin is
suspended without its childrens -  let's explore whether this may
happen automatically inside libdm (might be generic for other targets).
So the code would not need to annotate the node for this.

12 years agoThin add messages only for activation tree
Zdenek Kabelac [Wed, 25 Jan 2012 09:06:43 +0000 (09:06 +0000)]
Thin add messages only for activation tree

Extend lv_activate_opts with bool flag to know for which purpose
dtree is created - and add message only for activation tree
(since that's the only place that may send them).

Extend validation check for thin snapshot creation and test whether
active snapshot origin is suspended before its snapshot is created
(useful in recover scenarios) -  in this case also detect, whether
transaction has been already completed and avoid such suspend check
failure in that case.

12 years agoThin check for lv_thin_pool_percent error status
Zdenek Kabelac [Wed, 25 Jan 2012 09:02:35 +0000 (09:02 +0000)]
Thin check for lv_thin_pool_percent error status

Check has been missing.

12 years agoUpdate lv_info whats_new
Zdenek Kabelac [Wed, 25 Jan 2012 09:00:57 +0000 (09:00 +0000)]
Update lv_info whats_new

12 years agolv_info using -real layer only for origin_only LV
Zdenek Kabelac [Wed, 25 Jan 2012 09:00:18 +0000 (09:00 +0000)]
lv_info using -real layer only for origin_only LV

If the origin_only flag is passed for non lv_is_origin LVs,
the extension is not added.

Thin volumes may also use origin_only flag.

12 years agoThin prevent removal of its data and metadata LVs
Zdenek Kabelac [Wed, 25 Jan 2012 08:57:25 +0000 (08:57 +0000)]
Thin prevent removal of its data and metadata LVs

LVs cannot be removed while there are linked to thin pool.
(Gives better error message, than validation).

12 years agoThin fix transaction_id incrementation and code refactoring
Zdenek Kabelac [Wed, 25 Jan 2012 08:55:19 +0000 (08:55 +0000)]
Thin fix transaction_id incrementation and code refactoring

Add pool_has_message and use it in attach_pool_message.
Also update header to make more obvious which segment type is
expected as parameter.
Rename  'read_only' to  'no_update' (no auto update transaction_id)
to better fit how it's used.
Fix problem when there was only one stacked message replaced with delete
message that caused unwanted transaction_id increase.

12 years agoComment cleanups
Zdenek Kabelac [Wed, 25 Jan 2012 08:51:29 +0000 (08:51 +0000)]
Comment cleanups

Move comment where it applies and remove unused attribe when the var
is actually used.

12 years agoThin dependency scan support
Zdenek Kabelac [Wed, 25 Jan 2012 08:50:10 +0000 (08:50 +0000)]
Thin dependency scan support

Go through pool_lv and metadata_lv LVs when doing recursive scan.

12 years agoThin add lv_thin_pool_transaction_id
Zdenek Kabelac [Wed, 25 Jan 2012 08:48:42 +0000 (08:48 +0000)]
Thin add lv_thin_pool_transaction_id

Easy function to get transaction_id status value.

12 years agoThin send messages on activation resume code path
Zdenek Kabelac [Wed, 25 Jan 2012 08:46:21 +0000 (08:46 +0000)]
Thin send messages on activation resume code path

Using PRELOAD part would lead to problems when the problem
would happen before vg_write and vg_commit.
Also this change is necessary for snapshot creation sequence.

12 years agoCaller is still entitled to reference an LV that's unlinked, so don't
Alasdair Kergon [Tue, 24 Jan 2012 14:53:59 +0000 (14:53 +0000)]
Caller is still entitled to reference an LV that's unlinked, so don't
tamper with struct contents.

12 years agoUse suspend|resume_origin_only when up-converting RAID LVs, as mirrors do.
Jonathan Earl Brassow [Tue, 24 Jan 2012 14:33:38 +0000 (14:33 +0000)]
Use suspend|resume_origin_only when up-converting RAID LVs, as mirrors do.

Failure to do so results in "Performing unsafe table load while X device(s) are
known to be suspended" errors.  While fixing the problem in this way works and
is consistent with the way the mirror segment type does it, it would be nice
to find a solution that uses the generic suspend/resume calls.

Also included in this check-in are additions to the test suite that perform
conversions on RAID LVs under a snapshot.  These tests are disabled for the
time being due to a kernel bug that is yet to be tracked down.

12 years agoProperly show LV removal message.
Milan Broz [Tue, 24 Jan 2012 14:15:52 +0000 (14:15 +0000)]
Properly show LV removal message.

(Fix regression in commit 6e181ba96dc1f806afc2d7fe825a8d3dd8093052)

12 years agoUse chunk_size consistently for thin_pool within LVM.
Alasdair Kergon [Tue, 24 Jan 2012 00:55:03 +0000 (00:55 +0000)]
Use chunk_size consistently for thin_pool within LVM.

12 years agoFix the way RAID meta LVs are added to the dependency tree.
Jonathan Earl Brassow [Mon, 23 Jan 2012 20:56:42 +0000 (20:56 +0000)]
Fix the way RAID meta LVs are added to the dependency tree.

Similar to the "mirror" segment type's log device, _add_dev_to_dtree should
be called and not _add_lv_to_dtree when adding metadata sub-LVs to the deptree.
Since _add_lv_to_dtree was being called, 'origin_only' could be set if a
snapshot sits on top of the RAID device.  This would cause the actual device
that needed to be added to be skipped in favor of the non-existant device,
"<foo>-real".

12 years agoFix metad help.
Alasdair Kergon [Mon, 23 Jan 2012 17:48:18 +0000 (17:48 +0000)]
Fix metad help.

12 years agoadd const
Alasdair Kergon [Mon, 23 Jan 2012 17:47:36 +0000 (17:47 +0000)]
add const

12 years agoReorder fns in libdm-deptree.
Alasdair Kergon [Mon, 23 Jan 2012 17:46:31 +0000 (17:46 +0000)]
Reorder fns in libdm-deptree.
Tweak dm_config interface and remove FIXMEs.

12 years agoAdd CLVMD_FLAG_REMOTE to skip processing on local node.
Alasdair Kergon [Sat, 21 Jan 2012 05:31:54 +0000 (05:31 +0000)]
Add CLVMD_FLAG_REMOTE to skip processing on local node.

12 years agoAttempt to improve clustered 'lvchange -aey' behaviour to try local node before
Alasdair Kergon [Sat, 21 Jan 2012 05:29:51 +0000 (05:29 +0000)]
Attempt to improve clustered 'lvchange -aey' behaviour to try local node before
remote nodes and address some existing anomalies.

12 years agoPrompt if request is made to remove a snapshot whose "Merge failed".
Mike Snitzer [Fri, 20 Jan 2012 22:04:16 +0000 (22:04 +0000)]
Prompt if request is made to remove a snapshot whose "Merge failed".

12 years agoAllow removal of an invalid snapshot that was to be merged on next activation.
Mike Snitzer [Fri, 20 Jan 2012 22:03:48 +0000 (22:03 +0000)]
Allow removal of an invalid snapshot that was to be merged on next activation.

Don't allow a user to merge an invalid snapshot.

12 years agoUse m and M lv_attr to indicate that a snapshot merge failed in lvs.
Mike Snitzer [Fri, 20 Jan 2012 22:03:03 +0000 (22:03 +0000)]
Use m and M lv_attr to indicate that a snapshot merge failed in lvs.

snapshot (m)erge failed, suspended snapshot (M)erge failed

12 years agoDifferentiate between snapshot status of "Invalid" and "Merge failed".
Mike Snitzer [Fri, 20 Jan 2012 22:02:04 +0000 (22:02 +0000)]
Differentiate between snapshot status of "Invalid" and "Merge failed".

12 years agoLookup snapshot usage percent of origin when a snapshot is merging.
Mike Snitzer [Fri, 20 Jan 2012 21:56:01 +0000 (21:56 +0000)]
Lookup snapshot usage percent of origin when a snapshot is merging.

12 years agoUpdate lvdisplay to show more info about thin LVs
Zdenek Kabelac [Fri, 20 Jan 2012 16:59:58 +0000 (16:59 +0000)]
Update lvdisplay to show more info about thin LVs

Reformat name and path how the LV is represented with lvm1 compatible option,
to switch to the old way - which had number of  problem - i.e. many links
do not exist - since for private devices we are not creating them.
Add more info about thin pools and volumes.

12 years agoMinor cleanup
Zdenek Kabelac [Fri, 20 Jan 2012 11:01:56 +0000 (11:01 +0000)]
Minor cleanup

Simplier and more readable char pointer math.

This page took 0.066738 seconds and 5 git commands to generate.