Alasdair Kergon
30776aea04
first attempt to fix test
2011-07-04 16:27:27 +00:00
Alasdair Kergon
ec000e1dfa
reinstate accidentally-removed lines to fix pvmove again
2011-07-04 14:56:58 +00:00
Alasdair Kergon
4b22b81391
Report internal error if suspending a device using an already-suspended dev.
...
This catches the recent pvmove problem trapping I/O between layers.
2011-07-02 01:17:09 +00:00
Jonathan Earl Brassow
cfafb8a92a
RAID updates for gdbinit file
2011-07-01 16:15:25 +00:00
Alasdair Kergon
0eee66e257
Add framework for validation of ioctls. Doesn't do any checks yet.
...
dmsetup --checks
libdevmapper: dm_task_enable_checks()
lvm.conf: activation/checks=1
2011-07-01 14:09:19 +00:00
Alasdair Kergon
34be5fb50f
update pv_attr check for new missing attr
2011-06-30 19:32:51 +00:00
Alasdair Kergon
0c6b43a8ef
When suspending, automatically preload newly-visible existing LVs
...
Let's find out if this makes things better or worse overall...
2011-06-30 18:25:18 +00:00
Zdenek Kabelac
3dd7f795f5
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).
2011-06-30 09:24:58 +00:00
Alasdair Kergon
3f98a2885d
use remove -f
2011-06-30 09:17:49 +00:00
Alasdair Kergon
2fcba16688
teardown stray filesystems too
2011-06-30 09:15:53 +00:00
Zdenek Kabelac
5beb23518d
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.
2011-06-30 09:08:22 +00:00
Milan Broz
cf332f746e
Try to force remove dm devices in after test fails.
2011-06-30 08:50:10 +00:00
Alasdair Kergon
2df71f33ac
Try to remove any stray loop devices left behind by earlier aborted tests.
2011-06-30 01:17:37 +00:00
Alasdair Kergon
61a821884d
test attempt to remove stray loop devs
2011-06-30 00:57:29 +00:00
Petr Rockai
0952bf42a8
Differentiate the request and response format, in daemon/common.
2011-06-29 22:20:14 +00:00
Alasdair Kergon
06577e86d8
Add age filter to dmsetup udevcomplete_all to minimise concurrency problems.
2011-06-29 21:56:46 +00:00
Alasdair Kergon
589154d209
make udev teardown conditional on using udev
2011-06-29 18:18:18 +00:00
Alasdair Kergon
73c5f313e5
teardown aborts if it hits an error, so better teardown semaphores earlier
...
as we need them later in the teardown process
2011-06-29 18:14:08 +00:00
Alasdair Kergon
637245e9f5
print any loop devs that weren't torn down
2011-06-29 17:37:30 +00:00
Alasdair Kergon
e2aa3cf6ae
remove any stray semaphores after tearing down devs
2011-06-29 17:33:39 +00:00
Alasdair Kergon
08315e3ac4
Reinstate correct permissions when creating mirrors.
2011-06-29 17:05:53 +00:00
Alasdair Kergon
e145fa0e83
debug log readonly flag with ioctls
2011-06-29 16:08:33 +00:00
Alasdair Kergon
07324d6221
Append 'm' attribute to pv_attr for missing PVs.
2011-06-29 14:56:33 +00:00
Alasdair Kergon
ec8423ad76
Add uuids to dmsetup create cmds.
2011-06-29 12:37:51 +00:00
Alasdair Kergon
d5b96bdd95
use dmsetup remove -f as a better way of simulating a device "disappearing"
2011-06-29 12:33:18 +00:00
Alasdair Kergon
eed2109a93
Remove temporary failures now, but continue to give INTERNAL_ERROR.
2011-06-29 11:36:37 +00:00
Alasdair Kergon
283f4a0649
Temporary conversion to internal error and failure, to see how many
...
instances of this problem this flushes out.
2011-06-29 08:54:13 +00:00
Jonathan Earl Brassow
fe4a490ff3
Fix error message - the parameter name is '--mirrorlog' not '--log'
2011-06-29 02:06:26 +00:00
Jonathan Earl Brassow
20f055bcb4
Remove unnecesary conditional.
...
The conditional is not just unnecessary, it would have been wrong. The code
is suppose to be checking if the 'splitmirrors_ARG' is negative, but it
instead is checking 'mirrors_ARG'. Rather than changing the argument being
checked, I've pulled the check entirely because 'splitmirrors_ARG' is already
guarenteed to not be negative by virtue of the fact that it is a 'int_arg'.
Negative values will be caught in _process_command_line().
2011-06-28 21:28:35 +00:00
Zdenek Kabelac
daf9efb723
Annotate CLVMD_CMD_SYNC_NAMES in decode_cmd
2011-06-28 13:42:15 +00:00
Alasdair Kergon
2e7ab82b92
More readahead tests.
2011-06-28 09:43:28 +00:00
Alasdair Kergon
0fac155599
more fixes to readahead etc.
2011-06-28 09:24:13 +00:00
Alasdair Kergon
77d16e2e39
Change to still sync with udev (to test waiting for rules) then to verify udev
...
operations like it used to (which will perform them on systems with
non-std dev dirs where test udev rules aren't installed).
2011-06-28 00:38:26 +00:00
Alasdair Kergon
de0e6b4119
Remove enforcement of udev verification when using non-standard /dev location.
...
If you change the dev dir, it's your responsibility to adjust udev rules
or tell lvm not to use udev too.
2011-06-28 00:23:06 +00:00
Alasdair Kergon
1c365783e8
Selectively enable/disable udev rules.
2011-06-28 00:11:46 +00:00
Alasdair Kergon
eb81f7ab87
Move _set_lvm_fallback into toolcontext, fix string comparison (/devtest
...
matched /dev) and note that function should go anyway as it can be
overriding a valid config.
2011-06-27 23:43:04 +00:00
Alasdair Kergon
ed04c9d702
Extend debug log messages to distinguish between the 3 states:
...
trust udev; verify udev; perform dev node operations directly.
2011-06-27 22:38:53 +00:00
Alasdair Kergon
ea687806b3
Move udev_only logic inside stacked node op code.
...
(We still need to treat add+readhead+del as a no-op.)
Rename udev_fallback to verify_udev_operations.
Rename --udevfallback to --verifyudev
2011-06-27 21:43:58 +00:00
Petr Rockai
1a3dab6075
Add int/str lookup routines specific to the reply (in client) and request (in
...
server) for nicer-looking code (thin wrapping around find_config_{int,str}).
2011-06-27 14:03:58 +00:00
Petr Rockai
e828044efd
Also parse the config_tree on the client end (daemon-client.c).
2011-06-27 13:58:11 +00:00
Petr Rockai
a084548cce
Parse the incoming config tree in daemon-server.c, providing the
...
daemon-specific handler with a struct config_tree pointer to look things up in.
2011-06-27 13:46:45 +00:00
Petr Rockai
8d9710bed6
LVMetaD build hack: link to lvm-internal &c. and add a simple test script.
2011-06-27 13:44:33 +00:00
Petr Rockai
0783429215
Implement daemon_send_simple and use it in the testclient.
2011-06-27 13:15:49 +00:00
Petr Rockai
0d7965aeca
Do not open the socket with SOCK_NONBLOCK in daemon-client, since we have no
...
use for that behaviour (at least for now).
2011-06-27 13:14:53 +00:00
Petr Rockai
b5997e5b05
Call daemon_close before exit in the testclient.
2011-06-27 12:27:34 +00:00
Petr Rockai
fbcc8450b8
Sketch out the actual on-wire format in daemon-client.h documentation, and add
...
a simplified send interface.
2011-06-27 12:26:54 +00:00
Alasdair Kergon
24e1d27e54
remove unused var after recent patch
2011-06-24 23:39:09 +00:00
Alasdair Kergon
ec98c72b04
Return immediately dm_lib_exit() if called more than once.
...
(Avoiding calling it twice would involve some untangling.)
Decrement the new suspended_counter if removing a suspended device.
2011-06-24 19:33:41 +00:00
Jonathan Earl Brassow
4ec4a0c105
Fix to preserve exclusive activation of mirror while up-converting.
...
When an LVM mirror is up-converted (an additional image added), it creates
a temporary mirror stack. The lower-level mirror in the stack that is
created was not being activated exclusively - violating the exclusive nature
of the original mirror. We now check for exclusive activation of a mirror
before converting it, and if found, we ensure that the temporary mirror
is also exclusively activated.
2011-06-23 14:00:58 +00:00
Milan Broz
3477dd6c19
Fail allocation if number of extents not divisible by area count
...
Allocation should fail early if this condition is not met.
Quick fix for https://bugzilla.redhat.com/show_bug.cgi?id=707779
2011-06-23 10:53:24 +00:00