]> sourceware.org Git - lvm2.git/log
lvm2.git
13 years agoReplace free_vg with release_vg
Zdenek Kabelac [Wed, 10 Aug 2011 20:25:29 +0000 (20:25 +0000)]
Replace free_vg with release_vg

Move the free_vg() to  vg.c  and replace free_vg  with release_vg
and make the _free_vg internal.

Patch is needed for sharing VG in vginfo cache so the release_vg function name
is a better fit here.

13 years agoRemove INCONSISTENT_VG flag
Zdenek Kabelac [Wed, 10 Aug 2011 20:17:33 +0000 (20:17 +0000)]
Remove INCONSISTENT_VG flag

As this flag could not have been set by the current code - removing it.

Note: because of the wrong code logic this call:

lvmcache_update_vg(correct_vg, correct_vg->status & PRECOMMITTED &
   (inconsistent ? INCONSISTENT_VG : 0));

had always passed '0' - now after flag removal it's passing
PRECOMMITTED flag in - this present functinal change in this patch.

To match the original functionality - 0 had to be always passed.
More testing is needed here.

13 years agoFix compiler warning.
Jonathan Earl Brassow [Wed, 10 Aug 2011 16:44:17 +0000 (16:44 +0000)]
Fix compiler warning.

Compiler complaining that meta_lv could be used uninitialized.  (Not true
because it is protected by 'clear_metadata'.)  I switched to using 'lv->vg',
as it makes no difference to vg_[write|commit].

13 years agoIf anything bad happens and unlocking fails
Milan Broz [Wed, 10 Aug 2011 16:07:53 +0000 (16:07 +0000)]
If anything bad happens and unlocking fails
(here clvmd crashed in the middle of operation),
lock is not removed from cache - here is one example:

locking/cluster_locking.c:497       Locking VG V_vg_test UN (VG) (0x6)
locking/cluster_locking.c:113   Error writing data to clvmd: Broken pipe
locking/locking.c:399         <backtrace>
locking/locking.c:461         <backtrace>
  Internal error: Volume Group vg_test was not unlocked

Code should always remove lock info from lvmcache and update counters
on unlock, even if unlock fails.

13 years agoInitialise clvmd locks before lvm context to avoid open descriptor leaks.
Milan Broz [Wed, 10 Aug 2011 11:00:32 +0000 (11:00 +0000)]
Initialise clvmd locks before lvm context to avoid open descriptor leaks.

(At least /dev/mapper/control is open after lvm context init.)

13 years agoautoreconf
Alasdair Kergon [Tue, 9 Aug 2011 18:14:48 +0000 (18:14 +0000)]
autoreconf

13 years agoRemove obsoleted GULM clvmd cluster locking support.
Milan Broz [Tue, 9 Aug 2011 18:11:00 +0000 (18:11 +0000)]
Remove obsoleted GULM clvmd cluster locking support.

13 years agoRemove support for the original dm ioctl interface version 1.
Alasdair Kergon [Tue, 9 Aug 2011 17:56:47 +0000 (17:56 +0000)]
Remove support for the original dm ioctl interface version 1.
Leave the basic support for multiple versions in case we have a new version
in future.

13 years agoSuppress low-level locking errors and warnings while using --sysinit.
Peter Rajnoha [Tue, 9 Aug 2011 11:44:57 +0000 (11:44 +0000)]
Suppress low-level locking errors and warnings while using --sysinit.

Today, we use "suppress_messages" flag (set internally in init_locking fn based
on 'ignorelockingfailure() && getenv("LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES")'.
This way, we can suppress high level messages like "File-based locking
initialisation failed" or "Internal cluster locking initialisation failed".

However, each locking has its own sequence of initialization steps and these
could log some errors as well. It's quite misleading for the user to see such
errors and warnings if the "--sysinit" is used (and so the ignorelockingfailure
&& LVM_SUPPRESS_LOCKING_FAILURE_MESSAGES environment variable). Errors and
warnings from these intermediary steps should be suppressed as well if requested.

This patch propagates the "suppress_messages" flag deeper into locking init
functions. I've also added these flags for other locking types for consistency,
though it's not actually used for no_locking and readonly_locking.

13 years agoRemove unused 'origin' variable in lv_remove_single function.
Peter Rajnoha [Fri, 5 Aug 2011 09:21:13 +0000 (09:21 +0000)]
Remove unused 'origin' variable in lv_remove_single function.

13 years agoAdd missing check for allocation failure
Zdenek Kabelac [Thu, 4 Aug 2011 17:56:11 +0000 (17:56 +0000)]
Add missing check for allocation failure

Static analyzer discovered missing check.

13 years agoRemove unused inconsistent_seqno
Zdenek Kabelac [Thu, 4 Aug 2011 15:18:10 +0000 (15:18 +0000)]
Remove unused inconsistent_seqno

Last usage was removed in Petr's commit related to VG mda repair fix
where relaxed check starts to ignore inconsistencies coming from
PVs that are marked MISSING - thus removing unused variable.

13 years agoAdd 'empty' command
Zdenek Kabelac [Thu, 4 Aug 2011 14:54:48 +0000 (14:54 +0000)]
Add 'empty' command

Using empty command ';' here makes the code look nicer.

13 years agoRemove meaningless const type qualifiers on cast type
Zdenek Kabelac [Thu, 4 Aug 2011 14:30:51 +0000 (14:30 +0000)]
Remove meaningless const type qualifiers on cast type

Static analyzis noticed we do not really need them - so removing.

13 years agoRemove self assigment which has no effect
Zdenek Kabelac [Thu, 4 Aug 2011 14:11:28 +0000 (14:11 +0000)]
Remove self assigment which has no effect

Just a tiny code cleanup found by analyzer.

13 years agoMinor memory leak fix
Zdenek Kabelac [Thu, 4 Aug 2011 12:40:24 +0000 (12:40 +0000)]
Minor memory leak fix

Defer the test of the function return value after the string memory is released.
Otherwise in this error path the string would present memory leak.
(Thought in this case we are already out of memory...)

13 years agoAdd test for fcntl error in singlenode client code.
Zdenek Kabelac [Thu, 4 Aug 2011 12:13:50 +0000 (12:13 +0000)]
Add test for fcntl error in singlenode client code.

Static analyzer noticed this check could be handy.

13 years agoRemove --force option from lvrename manpage.
Zdenek Kabelac [Thu, 4 Aug 2011 10:14:42 +0000 (10:14 +0000)]
Remove --force option from lvrename manpage.

13 years agoAdd missing new line in lvrename help text.
Zdenek Kabelac [Thu, 4 Aug 2011 10:12:44 +0000 (10:12 +0000)]
Add missing new line in lvrename help text.

13 years agoAdd basic RAID segment type(s) support.
Jonathan Earl Brassow [Tue, 2 Aug 2011 22:07:20 +0000 (22:07 +0000)]
Add basic RAID segment type(s) support.

Implementation described in doc/lvm2-raid.txt.

Basic support includes:
- ability to create RAID 1/4/5/6 arrays
- ability to delete RAID arrays
- ability to display RAID arrays
Notable missing features (not included in this patch):
- ability to clean-up/repair failures
- ability to convert RAID segment types
- ability to monitor RAID segment types

13 years agoChange DEFAULT_UDEV_SYNC to 1 so udev_sync is used even without any config.
Peter Rajnoha [Tue, 2 Aug 2011 10:49:57 +0000 (10:49 +0000)]
Change DEFAULT_UDEV_SYNC to 1 so udev_sync is used even without any config.

This should be set by default! Normally we have "activation/udev_sync = 1"
in lvm.conf (example.conf.in). But if we use lvm2 without any config file
(or without a definition within '--config' option) the DEFAULT_UDEV_SYNC
is used instead. Together with verify_udev_operations=0 (when we rely on
udev fully), this can cause races as the node could be missing when needed.

(See also https://bugzilla.redhat.com/show_bug.cgi?id=723144)

13 years agoAdd support for systemd file descriptor handover in dmeventd.
Peter Rajnoha [Thu, 28 Jul 2011 13:06:50 +0000 (13:06 +0000)]
Add support for systemd file descriptor handover in dmeventd.

Systemd preloads file descriptors for us and passes them in for
newly spawned daemon when using on-demand fifo (or socket)
based activation.

This patch adds checks for file descriptors preloaded by
systemd and uses them instead of opening the FIFOs again
to properly support on-demand FIFO-based activation.

(We'll change FIFOs to sockets soon - but still this
part of the code will stay almost the same.)

13 years agoAdd support for new oom killer adjustment interface (oom_score_adj).
Peter Rajnoha [Thu, 28 Jul 2011 13:03:37 +0000 (13:03 +0000)]
Add support for new oom killer adjustment interface (oom_score_adj).

The filename to adjust the oom score was changed in 2.6.36.
We should use oom_score_adj instead of oom_adj (which is still
there under /proc, but it's scheduled for removal in August 2012).

New oom_score_adj uses a range from -1000 (OOM_SCORE_ADJ_MIN,
disable oom killing) to 1000 (OOM_SCORE_ADJ_MAX).

13 years agoautoreconf
Peter Rajnoha [Thu, 28 Jul 2011 12:59:44 +0000 (12:59 +0000)]
autoreconf

13 years agoConfigure and makefile changes for newly added systemd unit files.
Peter Rajnoha [Thu, 28 Jul 2011 12:57:26 +0000 (12:57 +0000)]
Configure and makefile changes for newly added systemd unit files.

13 years agoAdd systemd unit files for dmeventd.
Peter Rajnoha [Thu, 28 Jul 2011 12:54:28 +0000 (12:54 +0000)]
Add systemd unit files for dmeventd.

13 years agolvmetad: Edit the MISSING_PV flags only after making a "reply" copy of the
Petr Rockai [Mon, 25 Jul 2011 17:59:50 +0000 (17:59 +0000)]
lvmetad: Edit the MISSING_PV flags only after making a "reply" copy of the
metadata, which is then serialised and discarded. This fixes a couple of
outstanding TODO items about handling the MISSING flags correctly.

13 years agolvmetad: Check integrity of multiple metadata copies, i.e. ensure that seqno
Petr Rockai [Mon, 25 Jul 2011 15:51:51 +0000 (15:51 +0000)]
lvmetad: Check integrity of multiple metadata copies, i.e. ensure that seqno
equality implies metadata equality. Signal error in response to any update
requests that try to overwrite metadata without providing a higher seqno.

13 years agolvmetad: A couple of TODOs, and fix a few trivial memory leaks.
Petr Rockai [Mon, 25 Jul 2011 15:33:04 +0000 (15:33 +0000)]
lvmetad: A couple of TODOs, and fix a few trivial memory leaks.

13 years agoAdd simple test for read-only table reload suppression
Zdenek Kabelac [Mon, 25 Jul 2011 08:41:52 +0000 (08:41 +0000)]
Add simple test for read-only table reload suppression

Just a small test for previous libdm commit.

13 years agoFix read-only identical table reload supression.
Alasdair Kergon [Sun, 24 Jul 2011 23:59:03 +0000 (23:59 +0000)]
Fix read-only identical table reload supression.

13 years agoCompare also file size to detect changed config file
Zdenek Kabelac [Thu, 21 Jul 2011 13:23:48 +0000 (13:23 +0000)]
Compare also file size to detect changed config file

Clvmd detects modifed config file before it takes lv_lock.
If the config file is changed rapidly - the change was ignored within
a seocnd ranged.  This patch adds also compare of file size.
So change like some flag for 0 to 1 would pass unnoticed - but
it's quick fix for failing test suite.

FIXME: Implement inotify solution.

13 years agolvmetad: Obliterate vg_status by returning the same information from
Petr Rockai [Wed, 20 Jul 2011 21:33:41 +0000 (21:33 +0000)]
lvmetad: Obliterate vg_status by returning the same information from
update_pv_status, saving a dozen lines of code and execution time of one
walkthrough of the PV list.

13 years agolvmetad: Fix a possible infinite loop in vg_status.
Petr Rockai [Wed, 20 Jul 2011 21:27:28 +0000 (21:27 +0000)]
lvmetad: Fix a possible infinite loop in vg_status.

13 years agolvmetad: Robustify update_pv_status and remove an useless lookup.
Petr Rockai [Wed, 20 Jul 2011 21:26:18 +0000 (21:26 +0000)]
lvmetad: Robustify update_pv_status and remove an useless lookup.

13 years agoFirst stab at making lvmetad-core threadsafe. The current design should allow
Petr Rockai [Wed, 20 Jul 2011 21:23:43 +0000 (21:23 +0000)]
First stab at making lvmetad-core threadsafe. The current design should allow
very reasonable amount of parallel access, although the hash tables may become
a point of contention under heavy loads. Nevertheless, there should be orders
of magnitude less contention on the hash table locks than we currently have on
block device scanning.

13 years agolvmetad: Avoid stale PV -> VG mappings on metadata update.
Petr Rockai [Wed, 20 Jul 2011 18:45:32 +0000 (18:45 +0000)]
lvmetad: Avoid stale PV -> VG mappings on metadata update.

13 years agoOptimise PV -> VG lookups by using a UUID (hash) map.
Petr Rockai [Wed, 20 Jul 2011 18:34:57 +0000 (18:34 +0000)]
Optimise PV -> VG lookups by using a UUID (hash) map.

13 years agoFree up allocated memory before exiting, in lvmetad.
Petr Rockai [Wed, 20 Jul 2011 18:24:49 +0000 (18:24 +0000)]
Free up allocated memory before exiting, in lvmetad.

13 years agoFix two small (but eventually unbounded) leaks in daemon-server.c.
Petr Rockai [Wed, 20 Jul 2011 18:23:33 +0000 (18:23 +0000)]
Fix two small (but eventually unbounded) leaks in daemon-server.c.

13 years agoCan't have a global memory pool in lvmetad (that would constitute an ongoing
Petr Rockai [Wed, 20 Jul 2011 16:49:21 +0000 (16:49 +0000)]
Can't have a global memory pool in lvmetad (that would constitute an ongoing
memory leak) => remove it (it's been unused anyway).

13 years agoMake lvmetad also report VGID in reply when adding a PV without MDAs (this
Petr Rockai [Wed, 20 Jul 2011 16:46:40 +0000 (16:46 +0000)]
Make lvmetad also report VGID in reply when adding a PV without MDAs (this
obviously only works for VGs that already had at least some MDA discovered).

13 years agoAdd code to lvmetad's testclient that scans an actual physical device,
Petr Rockai [Wed, 20 Jul 2011 15:15:41 +0000 (15:15 +0000)]
Add code to lvmetad's testclient that scans an actual physical device,
effectively emulating a future "pvscan --lvmetad" command.

13 years agoMake lvmetad report the VG ID and status (complete, partial) in reply to pv_add
Petr Rockai [Wed, 20 Jul 2011 15:14:17 +0000 (15:14 +0000)]
Make lvmetad report the VG ID and status (complete, partial) in reply to pv_add
requests.

13 years agoTowards MISSING (PV) flag management in lvmetad.
Petr Rockai [Tue, 19 Jul 2011 19:15:22 +0000 (19:15 +0000)]
Towards MISSING (PV) flag management in lvmetad.

13 years agoMake it possible to represent type-correct single-item arrays in config trees.
Petr Rockai [Tue, 19 Jul 2011 19:12:38 +0000 (19:12 +0000)]
Make it possible to represent type-correct single-item arrays in config trees.

13 years agoAdd an API to config.h for creating values in the config_tree mempool.
Petr Rockai [Tue, 19 Jul 2011 19:11:24 +0000 (19:11 +0000)]
Add an API to config.h for creating values in the config_tree mempool.

13 years agoWork out some more details in metadata update in lvmetad.
Petr Rockai [Tue, 19 Jul 2011 16:48:13 +0000 (16:48 +0000)]
Work out some more details in metadata update in lvmetad.

13 years agoRemove and unneeded parameter from build_parallel_areas_from_lv()
Jonathan Earl Brassow [Tue, 19 Jul 2011 16:37:42 +0000 (16:37 +0000)]
Remove and unneeded parameter from build_parallel_areas_from_lv()

13 years agoFix potential null ptr deref in 'origin_from_cow'
Jonathan Earl Brassow [Tue, 19 Jul 2011 16:23:52 +0000 (16:23 +0000)]
Fix potential null ptr deref in 'origin_from_cow'

return NULL rather than segfaulting if lv->snapshot is not set

13 years agoMore work on cache maintenance code in lvmetad: keep track of PV status.
Petr Rockai [Tue, 19 Jul 2011 14:13:59 +0000 (14:13 +0000)]
More work on cache maintenance code in lvmetad: keep track of PV status.

13 years agoStart filling in the core LVMetaD functionality and the corresponding
Petr Rockai [Mon, 18 Jul 2011 14:48:30 +0000 (14:48 +0000)]
Start filling in the core LVMetaD functionality and the corresponding
testclient bits.

13 years agoVarious improvements to the daemon-common code, including automated response
Petr Rockai [Mon, 18 Jul 2011 14:46:54 +0000 (14:46 +0000)]
Various improvements to the daemon-common code, including automated response
formatting from config trees provided by the daemon implementation.

13 years agoImprove format_buffer in daemon-shared.c, adding block formatting in addition
Petr Rockai [Mon, 18 Jul 2011 14:42:44 +0000 (14:42 +0000)]
Improve format_buffer in daemon-shared.c, adding block formatting in addition
to string/integer (this propagates to the *simple* family of request/response
functionality).

13 years agoRevert the #include changes. Need to fix this at the #include site for now, and
Petr Rockai [Mon, 18 Jul 2011 14:34:33 +0000 (14:34 +0000)]
Revert the #include changes. Need to fix this at the #include site for now, and
eventually refactor the way we structure #includes in the all of the library.

13 years agoSlightly refactor the config code to allow better reuse (no functional change).
Petr Rockai [Mon, 18 Jul 2011 13:26:08 +0000 (13:26 +0000)]
Slightly refactor the config code to allow better reuse (no functional change).

13 years agoAdd a missing libdevmapper.h #include to lvm-types.h (for dm_list).
Petr Rockai [Mon, 18 Jul 2011 13:24:48 +0000 (13:24 +0000)]
Add a missing libdevmapper.h #include to lvm-types.h (for dm_list).

13 years agoAdd a couple missing #includes in uuid.h.
Petr Rockai [Mon, 18 Jul 2011 13:24:14 +0000 (13:24 +0000)]
Add a couple missing #includes in uuid.h.

13 years agoBetter version of failing 'should' test
Zdenek Kabelac [Mon, 18 Jul 2011 12:12:41 +0000 (12:12 +0000)]
Better version of failing 'should' test

where the naming is left completely on lvm.
(Commited code has been different version of test).
So here it should be able to figure out new free name and create a new LV.

13 years agoAdding test for repair when confusing metadata are found
Zdenek Kabelac [Mon, 18 Jul 2011 12:04:42 +0000 (12:04 +0000)]
Adding test for repair when confusing metadata are found

13 years agoLVM2 RAID design doc
Jonathan Earl Brassow [Thu, 14 Jul 2011 17:00:59 +0000 (17:00 +0000)]
LVM2 RAID design doc

13 years agoFix t-vgreduce-usage to stop relying on the persistent cache not seeing a
Petr Rockai [Mon, 11 Jul 2011 12:13:07 +0000 (12:13 +0000)]
Fix t-vgreduce-usage to stop relying on the persistent cache not seeing a
device that has been brought back from the dead: this sometimes fails with
clvmd (the cache is updated "too soon"). Instead, force a pvscan and rely on an
up-to-date cache as usual.

13 years agopost-release
Alasdair Kergon [Fri, 8 Jul 2011 19:57:32 +0000 (19:57 +0000)]
post-release

13 years agoremove unnecessary lvconvert.h
Alasdair Kergon [Fri, 8 Jul 2011 19:42:11 +0000 (19:42 +0000)]
remove unnecessary lvconvert.h

13 years agopre-release
Alasdair Kergon [Fri, 8 Jul 2011 19:19:44 +0000 (19:19 +0000)]
pre-release

13 years agoDowngrade error message - it isn't strictly an internal error in the
Alasdair Kergon [Fri, 8 Jul 2011 19:13:05 +0000 (19:13 +0000)]
Downgrade error message - it isn't strictly an internal error in the
library, and the known cause within lvm2 got fixed.

13 years agomove doc to doc dir
Alasdair Kergon [Fri, 8 Jul 2011 18:55:28 +0000 (18:55 +0000)]
move doc to doc dir

13 years agomissing ifdef when new fn unused
Alasdair Kergon [Fri, 8 Jul 2011 17:31:06 +0000 (17:31 +0000)]
missing ifdef when new fn unused

13 years ago Remove dev name prefix from dmsetup line output if exactly one dev requested.
Alasdair Kergon [Fri, 8 Jul 2011 17:08:19 +0000 (17:08 +0000)]
 Remove dev name prefix from dmsetup line output if exactly one dev requested.

13 years agoIgnore activation/verify_udev_operations if dm kernel driver vsn < 4.18.
Alasdair Kergon [Fri, 8 Jul 2011 16:49:04 +0000 (16:49 +0000)]
Ignore activation/verify_udev_operations if dm kernel driver vsn < 4.18.

13 years agoFix warning for pvcreate over MD linear.
Milan Broz [Fri, 8 Jul 2011 15:53:59 +0000 (15:53 +0000)]
Fix warning for pvcreate over MD linear.

If MD linear device has set rounding (overload chunk size attribute),
the pvcreate command prints this warning:

  /dev/md0 sysfs attr level not in expected format: linear

13 years agoNeed to snapshot lookup by uuid instead of name in case it's renamed.
Alasdair Kergon [Fri, 8 Jul 2011 15:35:50 +0000 (15:35 +0000)]
Need to snapshot lookup by uuid instead of name in case it's renamed.

13 years agoLog cookie values when incrementing/decrementing to give clues about races.
Alasdair Kergon [Fri, 8 Jul 2011 15:34:47 +0000 (15:34 +0000)]
Log cookie values when incrementing/decrementing to give clues about races.

13 years agoMove snapshot removal activation logic into lib/activate.
Alasdair Kergon [Fri, 8 Jul 2011 12:49:50 +0000 (12:49 +0000)]
Move snapshot removal activation logic into lib/activate.

13 years agoMove snapshot deactivation logic into lib/activate, fixing the
Alasdair Kergon [Fri, 8 Jul 2011 12:48:41 +0000 (12:48 +0000)]
Move snapshot deactivation logic into lib/activate, fixing the
teardown sequence.  (Previously the snapshot was deactivated while its
origin was active and before its removal was committed to disk, so
restarting after a crash at the point would leave corruption.)

13 years agoreport which dev was not found
Alasdair Kergon [Fri, 8 Jul 2011 12:35:48 +0000 (12:35 +0000)]
report which dev was not found

13 years agoIncrease timeout for udev settle
Zdenek Kabelac [Fri, 8 Jul 2011 10:05:43 +0000 (10:05 +0000)]
Increase timeout for udev settle

For some unknown reason (atm) udev settle takes longer time on recent rawhide.
To pass the test - inrease the settle timeout.

13 years agoCope with a PV only discovered missing when creating deptree.
Alasdair Kergon [Wed, 6 Jul 2011 00:29:44 +0000 (00:29 +0000)]
Cope with a PV only discovered missing when creating deptree.

13 years agoAbort operation if dm_tree_node_add_target_area fails.
Alasdair Kergon [Tue, 5 Jul 2011 23:10:14 +0000 (23:10 +0000)]
Abort operation if dm_tree_node_add_target_area fails.

13 years agoAlways perform preload logic before suspending - not only in the case when we
Alasdair Kergon [Tue, 5 Jul 2011 18:36:37 +0000 (18:36 +0000)]
Always perform preload logic before suspending - not only in the case when we
have precommitted metadata.  (Necessary to avoid loading tables
while suspend in lvchange --refresh.)

13 years agodecode cookie flags in debug msgs
Alasdair Kergon [Tue, 5 Jul 2011 16:17:14 +0000 (16:17 +0000)]
decode cookie flags in debug msgs

13 years agoSnapshots LVs are never loaded in their own right, only along with their
Alasdair Kergon [Tue, 5 Jul 2011 01:08:42 +0000 (01:08 +0000)]
Snapshots LVs are never loaded in their own right, only along with their
origin.

13 years agoFix conditions using no_merging: only those using lv_is_merging_cow() should
Alasdair Kergon [Tue, 5 Jul 2011 01:01:19 +0000 (01:01 +0000)]
Fix conditions using no_merging: only those using lv_is_merging_cow() should
have been converted, not pure lv_is_cow ones.
(Merging has no impact on how the pre-merged cow segment itself is loaded.)

13 years agofirst attempt to fix test
Alasdair Kergon [Mon, 4 Jul 2011 16:27:27 +0000 (16:27 +0000)]
first attempt to fix test

13 years agoreinstate accidentally-removed lines to fix pvmove again
Alasdair Kergon [Mon, 4 Jul 2011 14:56:58 +0000 (14:56 +0000)]
reinstate accidentally-removed lines to fix pvmove again

13 years agoReport internal error if suspending a device using an already-suspended dev.
Alasdair Kergon [Sat, 2 Jul 2011 01:17:09 +0000 (01:17 +0000)]
Report internal error if suspending a device using an already-suspended dev.
This catches the recent pvmove problem trapping I/O between layers.

13 years agoRAID updates for gdbinit file
Jonathan Earl Brassow [Fri, 1 Jul 2011 16:15:25 +0000 (16:15 +0000)]
RAID updates for gdbinit file

13 years agoAdd framework for validation of ioctls. Doesn't do any checks yet.
Alasdair Kergon [Fri, 1 Jul 2011 14:09:19 +0000 (14:09 +0000)]
Add framework for validation of ioctls.  Doesn't do any checks yet.
dmsetup --checks
libdevmapper: dm_task_enable_checks()
lvm.conf: activation/checks=1

13 years agoupdate pv_attr check for new missing attr
Alasdair Kergon [Thu, 30 Jun 2011 19:32:51 +0000 (19:32 +0000)]
update pv_attr check for new missing attr

13 years agoWhen suspending, automatically preload newly-visible existing LVs
Alasdair Kergon [Thu, 30 Jun 2011 18:25:18 +0000 (18:25 +0000)]
When suspending, automatically preload newly-visible existing LVs
Let's find out if this makes things better or worse overall...

13 years agoReport internal error when parameters are missing on table load
Zdenek Kabelac [Thu, 30 Jun 2011 09:24:58 +0000 (09:24 +0000)]
Report internal error when parameters are missing on table load

When some target is passing empty parameters to some dm target,
report this as an internal error to better catch some broken
table construction (some mirror conversions seem to be doing
this for now).

13 years agouse remove -f
Alasdair Kergon [Thu, 30 Jun 2011 09:17:49 +0000 (09:17 +0000)]
use remove -f

13 years agoteardown stray filesystems too
Alasdair Kergon [Thu, 30 Jun 2011 09:15:53 +0000 (09:15 +0000)]
teardown stray filesystems too

13 years agoUse -f to remove device
Zdenek Kabelac [Thu, 30 Jun 2011 09:08:22 +0000 (09:08 +0000)]
Use -f to remove device

Since some test may leave devices in suspend mode which would require
carefull order of resume operation - use '-f' to replace them with
error targets

For disable_dev  - when  'error' target is used for open count - treat
return code as ok (|| true) to avoid breaking futher test processing.

13 years agoTry to force remove dm devices in after test fails.
Milan Broz [Thu, 30 Jun 2011 08:50:10 +0000 (08:50 +0000)]
Try to force remove dm devices in after test fails.

13 years agoTry to remove any stray loop devices left behind by earlier aborted tests.
Alasdair Kergon [Thu, 30 Jun 2011 01:17:37 +0000 (01:17 +0000)]
Try to remove any stray loop devices left behind by earlier aborted tests.

13 years agotest attempt to remove stray loop devs
Alasdair Kergon [Thu, 30 Jun 2011 00:57:29 +0000 (00:57 +0000)]
test attempt to remove stray loop devs

13 years agoDifferentiate the request and response format, in daemon/common.
Petr Rockai [Wed, 29 Jun 2011 22:20:14 +0000 (22:20 +0000)]
Differentiate the request and response format, in daemon/common.

13 years agoAdd age filter to dmsetup udevcomplete_all to minimise concurrency problems.
Alasdair Kergon [Wed, 29 Jun 2011 21:56:46 +0000 (21:56 +0000)]
Add age filter to dmsetup udevcomplete_all to minimise concurrency problems.

13 years agomake udev teardown conditional on using udev
Alasdair Kergon [Wed, 29 Jun 2011 18:18:18 +0000 (18:18 +0000)]
make udev teardown conditional on using udev

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