Milan Broz
e3db0b39b9
Add detection of clustered mirror log capability.
...
Currently only check for kernel module presence.
2008-04-07 10:23:47 +00:00
Alasdair Kergon
2b83c80593
Fix mirror log name construction during lvconvert. (2.02.30)
...
Make monitor_dev_for_events recurse through the stack of LVs.
Clean up some more compiler warnings.
Add mirror names test script.
2008-01-31 12:19:36 +00:00
Alasdair Kergon
1ddd4509dc
Some whitespace tidy-ups.
2008-01-30 14:00:02 +00:00
Alasdair Kergon
6af3f4f4cf
Use stack return macros throughout.
2008-01-30 13:19:47 +00:00
Alasdair Kergon
9397833ceb
pre-release review cleanups
2008-01-17 17:17:09 +00:00
Alasdair Kergon
f1ccdf25b1
allow a mirror to contain only one mimage
2008-01-16 19:18:51 +00:00
Petr Rockai
d9885b1b64
Add snapshot dmeventd library (enables dmeventd snapshot monitoring).
2008-01-09 15:32:19 +00:00
Zdeněk Kabeláč
9e4b87e798
readahead at least twice the strip size (same as raid0 driver does)
2008-01-08 16:47:10 +00:00
Alasdair Kergon
403779437c
round readahead to multiple of page size in tools
2007-12-05 19:24:32 +00:00
Alasdair Kergon
55323fb497
fix changed parms
2007-12-03 18:00:38 +00:00
Alasdair Kergon
0545cd5879
uncomment libdevmapper readahead calls
2007-11-29 15:04:12 +00:00
Alasdair Kergon
c74fa11518
readahead activation code (but no dm support yet)
2007-11-12 20:51:54 +00:00
Alasdair Kergon
3f507a26fb
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-20 20:55:30 +00:00
Jim Meyering
7454664997
Add "const" attributes where possible: first cut.
2007-08-07 09:06:05 +00:00
Jim Meyering
30a0f831a5
For consistency, rename local variable: s/newname/new_name/g.
2007-08-06 14:57:48 +00:00
Jonathan Earl Brassow
9dbf53fdb9
lib/activate/activate.c:_lv_activate tries to monitor a device
...
regardless of whether it was successfully activated. Now fixed
to only monitor if it was successfully activated.
2007-08-01 20:29:07 +00:00
Alasdair Kergon
10d3496a17
Split metadata-external.h out from metadata.h for the tools to use.
2007-07-18 15:38:58 +00:00
Dave Wysochanski
5f951faf32
Don't use index and rindex functions marked by SUSv3 as legacy - Jakub Bogusz <qboosh@pld-linux.org>
2007-07-02 11:17:21 +00:00
Petr Rockai
764858fa12
Make warnings go to stderr. Change log_warn to that effect, log_print
...
continues to send messages to stdout.
2007-06-28 17:33:44 +00:00
Milan Broz
1ded1fc509
Remove symlinks if parent volume is deactivated.
2007-05-15 14:42:01 +00:00
Milan Broz
5ead2706b4
Fix a segfault if a device has no target (no table)
2007-05-14 11:27:34 +00:00
Alasdair Kergon
2294fdb496
Change some #include lines to search only standard system directories.
2007-04-27 17:46:16 +00:00
Alasdair Kergon
dcdbbb3ecb
Add devices/preferred_names config regex list for displayed device names.
...
Free a temporary dir string in fcntl_lock_file() after use.
Fix a dm_pool_destroy() in matcher_create().
Introduce goto_bad macro.
2007-04-26 16:44:59 +00:00
Alasdair Kergon
0b55d7d0d8
Fix vgrename active LV check to ignore differing vgids.
2007-03-08 21:08:25 +00:00
Alasdair Kergon
5d86fd8fdb
Remove no-longer-used uuid_out parameter from activation info functions.
2007-03-08 19:58:04 +00:00
Alasdair Kergon
f9ee4395b0
also ignore mirrors
2007-01-25 23:03:48 +00:00
Alasdair Kergon
71f06d51ed
Add devices/ignore_suspended_devices to ignore suspended dm devices.
2007-01-25 21:22:30 +00:00
Alasdair Kergon
d0f7067471
lvm.static no longer interacts with dmeventd unless explicitly asked to.
2007-01-24 23:43:27 +00:00
Alasdair Kergon
be5b4c38a7
fix earlier checkin
2007-01-24 22:06:11 +00:00
Alasdair Kergon
84e348fade
Add field definitions to report help text.
...
Remove unnecessary cmd arg from target_*monitor_events().
2007-01-24 16:51:24 +00:00
Alasdair Kergon
f4bd12e8e9
register->monitor etc.
2007-01-19 22:21:45 +00:00
Alasdair Kergon
c975a100b1
Report dmeventd mirror monitoring status.
2007-01-12 20:38:30 +00:00
Alasdair Kergon
fd6570720a
Add configure --with-dmdir to compile against a device-mapper source tree.
...
Use no flush suspending for mirrors.
2007-01-09 20:31:08 +00:00
Alasdair Kergon
742ab55a9a
Fix some activate.c prototypes when compiled without devmapper.
2006-12-20 16:19:01 +00:00
Alasdair Kergon
ee68d715bf
Adjust some alignments for ia64 and sparc.
...
(Some of the changes are probably unnecessary.)
2006-11-30 23:11:42 +00:00
Alasdair Kergon
8ab6d72519
Fix check for snapshot module when activating snapshot.
2006-11-20 16:45:45 +00:00
Alasdair Kergon
40e8631f63
Add segment parameter to target_present functions.
2006-10-18 18:01:53 +00:00
Alasdair Kergon
d039ce89af
Add LV column to reports listing kernel modules needed for activation.
2006-10-03 17:55:20 +00:00
Alasdair Kergon
b0b60fafd5
Move lvm_snprintf into libdevmapper.
2006-08-21 12:54:53 +00:00
Alasdair Kergon
a93fe79bc4
Add dm_split_words() and dm_split_lvm_name() to libdevmapper.
2006-08-21 12:07:03 +00:00
Alasdair Kergon
02d122b65b
Fix missing lockfs on first snapshot creation.
2006-08-08 21:20:00 +00:00
Alasdair Kergon
1728848a39
Don't ignore persistent minor numbers when activating.
2006-07-10 19:17:40 +00:00
Alasdair Kergon
f2bdbe0d4d
Fix target_register_events args.
2006-05-25 13:32:26 +00:00
Alasdair Kergon
7840c78a23
Add DISTCLEAN_TARGETS to make template for configure.h.
...
More fixes to error paths.
2006-05-16 20:53:13 +00:00
Alasdair Kergon
608eedf88d
Fix lvcreate corelog validation.
...
Add --config for overriding most config file settings from cmdline.
Quote arguments when printing command line.
Remove linefeed from 'initialising logging' message.
Add 'Completed' debug message.
Don't attempt library exit after reloading config files.
Always compile with libdevmapper, even if device-mapper is disabled.
2006-05-16 16:48:31 +00:00
Alasdair Kergon
445dd17db3
Add --monitor to vgcreate and lvcreate to control dmeventd registration.
...
Propagate --monitor around cluster.
Filter LCK_NONBLOCK in clvmd lock_vg.
2006-05-12 19:16:48 +00:00
Alasdair Kergon
ead252fee4
Add mirror_library description to example.conf.
...
More compile-time cleanup.
2006-05-11 17:58:58 +00:00
Alasdair Kergon
45dca55fc8
Make SIZE_SHORT the default for display_size().
...
Fix some memory leaks in error paths found by coverity.
Use C99 struct initialisers.
Move DEFS into configure.h.
Clean-ups to remove miscellaneous compiler warnings.
2006-05-09 21:23:51 +00:00
Alasdair Kergon
61d8baf8b1
Fix activation code to check for pre-existing mirror logs.
2006-04-28 17:01:07 +00:00
Alasdair Kergon
2f7d2477b6
_register_dev_for_events to return error on failure
2006-04-28 14:06:06 +00:00
Alasdair Kergon
70e45ad37b
Check for libsepol.
...
Add some cflow & scope support.
Separate out DEFS from CFLAGS.
Remove inlines and use unique function names.
2006-04-19 15:33:07 +00:00
Alasdair Kergon
535c3ede96
more snapshot code tidying
2006-04-06 14:06:27 +00:00
Alasdair Kergon
a7b98dfe25
suspend using existing LV metadata; vgreduce then needs partial flag
2006-02-03 19:36:20 +00:00
Alasdair Kergon
17e298ad2a
Only do lockfs filesystem sync when suspending snapshots.
...
Switchover library building to use LIB_SUFFIX.
2006-01-31 14:52:30 +00:00
Alasdair Kergon
175b3b0834
When suspending, dmeventd deregistration needs to use existing details
...
not precommitted ones.
2006-01-27 20:39:37 +00:00
Alasdair Kergon
0d603cfe9c
Rename register_dev; fix missing initialisation; reduce number of ifdefs.
2006-01-27 18:38:14 +00:00
Alasdair Kergon
4936efba5e
Always print warning if activation is disabled.
2005-12-22 16:13:38 +00:00
Alasdair Kergon
966d608dc5
Set block_on_error parameter if available.
...
Add target_version.
2005-12-19 21:01:39 +00:00
Alasdair Kergon
d02203060c
Fix lvscan snapshot full display.
...
dmeventd fixes
2005-12-08 17:49:34 +00:00
Alasdair Kergon
e5a543e283
More dmeventd support.
2005-12-02 20:35:07 +00:00
Alasdair Kergon
d7a0cdebe5
Remove a resolved FIXME.
2005-11-22 19:37:14 +00:00
Alasdair Kergon
c814c2fd35
workaround for pvmove with new activation code
2005-11-09 23:56:36 +00:00
Alasdair Kergon
fefa7fe262
more mirror fixing
2005-11-09 18:13:10 +00:00
Alasdair Kergon
8b3b26b813
rename deptree
2005-11-09 13:08:41 +00:00
Alasdair Kergon
5426af4f81
rename deptree
2005-11-09 13:05:17 +00:00
Alasdair Kergon
41c86b0d19
Replacement activation code. [Don't use this yet!]
2005-11-08 22:52:26 +00:00
Alasdair Kergon
4be598f865
Clear up precommitted metadata better on disk after use.
...
[Some activation-related features will stop working for a while now.
Some types of activation are getting split into two steps, with the
first step using the precommitted metadata.]
2005-10-31 20:15:28 +00:00
Alasdair Kergon
78c718c591
Add mirror_seg pointer to lv_segment struct. (incomplete & untested)
2005-10-27 19:58:22 +00:00
Alasdair Kergon
2a3168e0d6
remove unused suspend code path
2005-10-26 19:50:00 +00:00
Alasdair Kergon
61a53bbcff
suppress status err mesg when LVM- uuid prefix is missing
2005-10-26 17:56:31 +00:00
Alasdair Kergon
ad101119a7
remove remaining hard-coded prefix lengths
2005-10-26 17:31:12 +00:00
Alasdair Kergon
d76fe120ab
a missing lvid/dlid conversion
2005-10-26 15:54:50 +00:00
Alasdair Kergon
ae14d85e24
Attempt to cope with LVM- prefix transition.
2005-10-26 15:00:51 +00:00
Alasdair Kergon
a4dd3c8ce9
switch in new suspend code (untested)
2005-10-26 14:13:52 +00:00
Alasdair Kergon
bcc400dafa
Use dm_is_dm_major instead of local copy.
...
Allow mapped devices to be used as PVs safely.
2005-10-25 19:08:21 +00:00
Alasdair Kergon
44fc41b3e5
Move set_selinux_context into libdevmapper
2005-10-25 17:28:46 +00:00
Alasdair Kergon
e67efb199d
Fix LVM2- prefix changes; export build_dlid.
2005-10-20 21:07:57 +00:00
Alasdair Kergon
f6ee160e66
Add 'LVM-' prefix to uuids.
2005-10-19 13:59:18 +00:00
Alasdair Kergon
095b71ed96
Move deactivation code into libdevmapper.
2005-10-18 12:39:20 +00:00
Alasdair Kergon
2a7ac78f02
some deactivation fixes
2005-10-17 19:06:20 +00:00
Alasdair Kergon
f7e35569ce
Only one dump_memory.
2005-10-17 18:21:05 +00:00
Alasdair Kergon
e092ce51f6
Attempt to load missing targets using modprobe.
...
Simplify dev_manager_info().
2005-10-17 18:00:02 +00:00
Alasdair Kergon
67eb7723d6
Use hash, bitset, malloc, pool from libdevmapper.
2005-10-16 23:03:59 +00:00
Alasdair Kergon
a0aedf299a
Prepare tools to support clustered mirrors.
2005-08-14 23:18:28 +00:00
Alasdair Kergon
004da28792
Move compose_log_line() into mirror directory.
2005-08-10 17:19:46 +00:00
Alasdair Kergon
b75434db93
fix last checkin
2005-08-04 01:29:18 +00:00
Alasdair Kergon
04e912aacd
Prevent snapshots getting activated in a clustered VG.
2005-08-04 01:27:25 +00:00
Alasdair Kergon
d7be352f87
Separate out _build_dev_string.
2005-08-04 01:15:30 +00:00
Alasdair Kergon
39fbb844f9
Various allocation-related pvmove fixes.
2005-06-14 17:54:48 +00:00
Alasdair Kergon
252daf9717
Use matchpathcon mode parameter.
2005-06-13 13:13:15 +00:00
Alasdair Kergon
69098210be
Always insert an intermediate layer for mirrors.
...
Suppress hidden LVs from reports unless --all is given.
Use square brackets for hidden LVs in reports.
Centralise restrictions on LV names.
2005-06-03 14:49:51 +00:00
Alasdair Kergon
99df4f892d
Basic support for mirrors.
2005-06-01 16:51:55 +00:00
Alasdair Kergon
87dbf462cb
Reinstate full PV size when removing from VG.
...
Support loopfiles for testing.
Complete the pv_segment support.
2005-05-03 17:28:23 +00:00
Alasdair Kergon
64cd5b5a46
extract compose_log_line
2005-04-17 23:59:04 +00:00
Alasdair Kergon
f8782ee2d7
Internal snapshot code restructuring.
2005-04-07 12:39:44 +00:00
Alasdair Kergon
bacab38d7f
Avoid rmdir opendir error messsages when dir was already removed.
2005-03-21 14:43:02 +00:00
Alasdair Kergon
243494c25e
Store snapshot and origin sizes separately.
2005-01-19 17:19:39 +00:00
Alasdair Kergon
369549d23f
Only ask libdevmapper for open_count when we need it.
2005-01-12 22:58:21 +00:00
Alasdair Kergon
16521a6feb
pool debugging
2004-11-23 18:23:23 +00:00
Alasdair Kergon
6ad525c77e
Fix return code from rm_link for vgmknodes.
2004-09-22 13:38:37 +00:00
Alasdair Kergon
12e5b0681b
Rename old segtypes files to segtype.
2004-09-16 18:40:56 +00:00
Alasdair Kergon
ffbd7d8de4
Export dm name build & split functions.
2004-09-15 15:02:36 +00:00
Alasdair Kergon
49a959c06e
Fix /dev/vgname mkdir perms.
2004-09-02 14:38:46 +00:00
Alasdair Kergon
af78dc0308
indent
2004-05-18 21:55:55 +00:00
Alasdair Kergon
5ad39493c4
Ensure presence of virtual targets before attempting activation.
2004-05-12 20:43:34 +00:00
Alasdair Kergon
61f597b408
Attempt to fix resizing of snapshot origins.
2004-05-12 20:40:34 +00:00
Alasdair Kergon
a3823f818e
update comment
2004-05-11 18:18:14 +00:00
Alasdair Kergon
ec53c365a2
Only include visible LVs in active/open counts.
2004-05-11 17:09:09 +00:00
Alasdair Kergon
e34577499d
Some basic checking for presence of device-mapper targets.
2004-05-05 18:11:43 +00:00
Alasdair Kergon
fc5c61cc8b
Begin to separate out segment types.
2004-05-04 21:25:57 +00:00
Alasdair Kergon
c3941941ce
Support tagged config files.
2004-05-04 18:28:15 +00:00
Alasdair Kergon
46cdd53323
Don't abort operations if selinux is present but disabled.
2004-05-04 15:29:26 +00:00
Alasdair Kergon
9f06ba2db3
fix selinux error mesg
2004-04-14 18:10:10 +00:00
Alasdair Kergon
5e8f2e2c04
Fix lvs_in_vg_opened counting.
2004-04-14 17:33:04 +00:00
Alasdair Kergon
32667ca256
Option for auto-fallback to LVM1 tools if running 2.4 without device-mapper.
2004-04-08 15:23:23 +00:00
Alasdair Kergon
14adc9b875
Basic selinux support
2004-04-07 14:08:22 +00:00
Alasdair Kergon
66ed5f82c4
Update copyright notices.
2004-03-30 19:35:44 +00:00
Alasdair Kergon
4f9f7eb6a6
Fix vgmknodes to remove dud /dev/mapper entries
2004-03-30 14:40:03 +00:00
Alasdair Kergon
f910c4a8e7
Rename dev_manager_mknodes -> dev_manager_lv_mknodes etc.
2004-03-30 14:38:57 +00:00
Alasdair Kergon
54a1abb284
Add list_versions to library
2004-03-26 19:52:09 +00:00
Alasdair Kergon
97b492a8e2
Ignore open hidden LVs when checking if deactivation is OK.
2004-03-26 19:13:39 +00:00
Alasdair Kergon
0873bd14a9
Suppress move percentage when inactive
2004-03-26 19:10:48 +00:00
Alasdair Kergon
44a1ac0cf3
lv_info_by_lvid
2004-03-26 15:35:01 +00:00
Alasdair Kergon
2ffe378d3f
Only print warning message once when compiled without libdevmapper.
2004-03-19 16:26:46 +00:00
Alasdair Kergon
80de983023
additional activation functions
2004-03-08 18:54:13 +00:00
Alasdair Kergon
8703ca623f
rename config file vars & always use / as separator
2004-03-08 18:28:45 +00:00
Alasdair Kergon
286253a73f
host tags
2004-03-08 18:13:22 +00:00
Alasdair Kergon
3c8c7beae1
Missing include.
2003-11-13 18:47:22 +00:00
Alasdair Kergon
9c3ba9fdcd
vgmknodes also creates necessary nodes in /dev/mapper
2003-11-13 14:11:41 +00:00
Alasdair Kergon
0a109fbd03
The LVM2 part of vgmknodes [still to do the non-devfs device-mapper bit].
2003-11-12 19:16:48 +00:00
Alasdair Kergon
1d791a8af4
Check no fs mounted before deactivating.
2003-10-21 22:00:36 +00:00
Alasdair Kergon
9bb009a3fe
Extract some common functions.
2003-09-17 20:35:57 +00:00
Alasdair Kergon
47a2c1c6e5
Fix read-only snapshot creation.
2003-09-16 16:08:05 +00:00
Alasdair Kergon
09241765d5
Some tidyups and minor fixes.
2003-08-20 15:48:27 +00:00
Alasdair Kergon
671c83c265
Remove small hard-coded activation target line parameter limit.
2003-08-20 12:53:57 +00:00
Alasdair Kergon
4beed60c08
Driver version 1 compatibility fix for snapshots.
2003-07-05 23:24:10 +00:00
Alasdair Kergon
8449314da2
Another sync point - numerous fixes & clean ups.
2003-07-04 22:34:56 +00:00
Alasdair Kergon
bdabf5db72
Distinguish between visible & top level devices.
2003-05-06 12:00:29 +00:00
Alasdair Kergon
120faf2a58
pvmove support
2003-04-30 15:26:25 +00:00
Alasdair Kergon
1d3e407c8f
o Rejig activation code device dependencies to make things a bit more robust
...
and further reduce the number of ioctl calls made.
o Metadata area struct change.
o Make config file accessible to activation functions & get stripe_filler
from it.
o Allow kernel to return snapshot status as a fraction or a percentage.
2003-04-24 22:09:13 +00:00
Alasdair Kergon
54752c2305
Support snapshot status fraction.
2003-04-15 13:20:16 +00:00
Alasdair Kergon
b9a019a08b
Allow for specification of major number as well as minor.
2003-04-02 19:14:43 +00:00
Alasdair Kergon
e8c4bf56fe
Tidy various pre-processing incl. making libdl optional.
2003-03-24 18:08:53 +00:00
Alasdair Kergon
884fafcc30
Activation commands now return success in test mode.
2003-01-17 20:16:23 +00:00
Alasdair Kergon
2f4d91fd69
configure --disable-devmapper if you don't have libdevmapper
2003-01-08 22:44:07 +00:00
Alasdair Kergon
a8190f7efa
When activating an LV, remove any stray LVM1 /dev nodes and group file.
2003-01-03 13:50:47 +00:00
Alasdair Kergon
dd2157534b
Default stripesize 64k & config file setting for it;
...
Clear many compiler warnings (i386) & associated bugs - hopefully without
introducing too many new bugs:-) (Same exercise required for other archs.)
Default compilation has optimisation - or else use ./configure --enable-debug
2002-12-19 23:25:55 +00:00
Alasdair Kergon
81c44790d5
Refactoring.
2002-11-18 14:01:16 +00:00
Alasdair Kergon
64d8e2c727
Remove hard-coded extent_size from snapshot target (field no longer used).
2002-07-17 17:00:54 +00:00
Patrick Caulfield
059a6b1d90
Get rid of compile warnings on 64bit platforms.
2002-06-07 08:37:07 +00:00
Alasdair Kergon
b8769751f6
Rename; add some FIXMEs.
2002-05-22 14:03:45 +00:00
AJ Lewis
a9dbabe07e
o the _status fxns now take more arguments - this way i don't get the
...
preparsed status info, shove it all into a string, and then parse it
again to get the info back out (which is what i was doing before)
o basically that's it...i like this *much* better than the previous
method and i think it makes the _status fxn more flexible if we need
to use it to get other info out.
2002-05-10 16:06:06 +00:00
AJ Lewis
02543bad1c
o Actually read snapshot percentage from the kernel - what a pain! :)
...
o Not sure if the code in dev_manager is really optimal, but it works..
will look at adjusting it a bit now.
o I *think* it works right when one snapshot if full but others aren't,
but I haven't really been able to test it because the full snapshot
somehow resets itself and weird things start happening to the system...
2002-05-09 21:17:57 +00:00
Alasdair Kergon
46127e673d
Some partial VG support with format_text.
2002-04-30 17:12:37 +00:00
Alasdair Kergon
63875e7591
Merge with text format branch.
...
Lots of changes/very little testing so far => there'll be bugs!
Use 'vgcreate -M text' to create a volume group with its metadata stored
in text files. Text format metadata changes should be reasonably atomic,
with a (basic) automatic recovery mechanism if the system crashes while a
change is in progress.
Add a metadata section to lvm.conf to specify multiple directories if
you want (recommended) to keep multiple copies of the metadata (eg on
different filesystems).
e.g. metadata {
dirs = ["/etc/lvm/metadata1","/usr/local/lvm/metadata2"]
}
Plenty of refinements still in the pipeline.
2002-04-24 18:20:51 +00:00
Alasdair Kergon
f7974aee2e
Allow deactivation of final snapshot.
2002-04-16 14:42:20 +00:00
Patrick Caulfield
3ed065de37
Return status from _lv_activate and friends.
...
Alasdair, I think this is right (and I need it) but you may like to check.
2002-04-11 09:14:04 +00:00
Alasdair Kergon
515b5f866e
Tidying.
2002-04-03 12:17:55 +00:00
Alasdair Kergon
321f62bf92
Cope with creation of additional snapshots while active.
...
(More work on suspension dependencies still needed.)
2002-03-27 18:17:43 +00:00
Alasdair Kergon
c502f8a722
New-style persistent minor support.
2002-03-26 13:41:37 +00:00
Alasdair Kergon
59b4868ac3
o read-only device support
...
o name/uuid disambiguation
2002-03-25 18:54:59 +00:00
Alasdair Kergon
0035b31cdb
Better support for LVs with hyphens in names.
2002-03-19 16:41:44 +00:00
Alasdair Kergon
5bd85668dd
lvrename works on snapshots now
2002-03-18 23:25:50 +00:00
Alasdair Kergon
20f990b6ce
Tie all snapshot (de)activation requests to (de)activation of origin device.
2002-03-18 13:09:27 +00:00
Alasdair Kergon
6821379586
s/Removing/Unloading/ in messages to reduce confusion
2002-03-15 23:01:59 +00:00
Alasdair Kergon
73b040eb49
Cut the number of device-mapper calls.
2002-03-15 22:59:12 +00:00
Alasdair Kergon
680750e3c2
Reduce the number of dm info calls.
2002-03-14 21:17:30 +00:00
Alasdair Kergon
1e57e60613
Integrate suspend.
2002-03-14 15:36:07 +00:00
Joe Thornber
b720dea9f0
o dev_manager_suspend, untested.
2002-03-14 10:56:09 +00:00
Alasdair Kergon
e33781e59f
Set LV uuid.
2002-03-13 15:11:29 +00:00
Alasdair Kergon
d23e948216
Move is_empty_dir to lvm-file
2002-03-11 22:23:24 +00:00
Joe Thornber
58bdaa31f0
o Actually check that the vg directory is empty rather than speculatively
...
rmdiring it. Work around for devfs bug.
2002-03-11 20:43:58 +00:00
Joe Thornber
b6491d88a6
o This should complete the dev_manager alg. Please could people now
...
report any activation oddities they see.
2002-03-11 20:36:04 +00:00
Alasdair Kergon
f6061ba62e
lv_info replaces lv_active etc.
2002-03-11 19:02:28 +00:00
Alasdair Kergon
427899ddce
o activate/reactivate merge
...
o unlocking macro
2002-03-11 15:08:39 +00:00
Joe Thornber
c4ab7d2dbd
o dm->active_list now filled in, ATM this is based on the layer name rather
...
than the uuid.
2002-03-11 11:27:48 +00:00
Joe Thornber
0fd2ba033f
o Comment out some new code that was preventing pjc activating
...
snapshots. This will go back in when the active_list is working.
2002-03-11 10:38:16 +00:00
Joe Thornber
ed38939a93
o knock out the offset for origin targets.
2002-03-08 10:45:01 +00:00
Joe Thornber
c7ee26ce5a
o Add active_list to dev_manager
...
o Origin layer is only added to snapshots if a snapshot is in the
active_list.
2002-03-08 10:41:48 +00:00
Joe Thornber
2ec8656bea
o First cut at dev scanning.
...
o Split up _expand_lv
2002-03-07 17:37:38 +00:00
Joe Thornber
b2ef256910
o Add comment describing what we're aiming for with dev_manager.
...
o Remove dev_manager_reactivate, since it'll be the same as activate.
o Merge the mark, visible and dirty fields into the same flags field.
2002-03-07 16:48:46 +00:00
Joe Thornber
63d6ce95db
o Top level device is now just called <vg>-<lv> (there's no 'top'
...
layer appended).
o Got rid of the unused layer->type field and enum.
2002-03-07 15:29:31 +00:00
Alasdair Kergon
fc8b7efc6f
o Use new LCK_HOLD flag to indicate whether lock should be held on return
...
from lock_vol() - otherwise it now attempts to acquire the lock and then
immediately releases it.
o Extend the id field in struct logical_volume to hold VG uuid + LV uuid
for format1. This unique lvid can be used directly when calling lock_vol().
o Add the VG uuid to vgcache to make VG uuid lookups possible. (Another
step towards using them instead of VG names internally.)
2002-03-05 20:03:09 +00:00
Alasdair Kergon
a1c2d9c0f3
Fix activation for VG with more than one LV.
2002-03-04 18:50:34 +00:00
Joe Thornber
b27e956d35
o Bad dependency, meant the origin was always getting activated.
2002-03-04 15:10:30 +00:00
Alasdair Kergon
35ebed75c6
Remove unused fns.
2002-03-04 14:27:25 +00:00
Joe Thornber
7bfdb5f77f
o I was tearing down device bottom-up instead of top down. Which
...
is why lvremove of snapshots wasn't working.
2002-03-04 14:26:43 +00:00
Joe Thornber
8d8c02317f
o Break creating a snapshot down into:
...
i) create cow
ii) activate cow
iii) zero cow
iv) deactivate
v) add snapshot info
vi) reactivate
2002-03-04 13:46:37 +00:00
Alasdair Kergon
8d3afaa53c
More use of LV locking.
2002-03-01 19:08:11 +00:00
Joe Thornber
7ced9ef3df
o point snapshots at origin:real rather than origin:top, and *ping*
...
snapshots work.
2002-03-01 09:07:00 +00:00
Alasdair Kergon
73a88ab3d3
o Lock mechanism for LV activation
...
o #defines for common lock flag combinations
o Try out hyphens instead of colons in device-mapper names - does this
make messages containing filenames easier to read?
2002-02-27 12:26:41 +00:00
Joe Thornber
de7f7b96db
o Format1 wasn't recording the snapshot chunk size properly
...
o Activation of snapshots now works - though the resulting device
doesn't (pjc ?)
o text format wasn't setting vg->cmd.
2002-02-26 16:48:52 +00:00
Alasdair Kergon
1a669b3e68
Clearer link pathname display.
2002-02-26 16:08:22 +00:00
Joe Thornber
333af9b13a
o _build_name was allocating 1 byte too few, which meant the
...
terminating zero was falling off at some later point.
o Don't try and iterate from a deleted node in _prune_unmarked.
2002-02-26 14:44:13 +00:00
Joe Thornber
a5bca5e240
o Removed old files
...
o rewrote activate.c to use dev-manager, I'm sure these two will merge
at some point.
o Rename is broken ATM
o dev-manager puts the calls through to fs.c for layers that have the
'visible' flag set.
2002-02-26 11:49:17 +00:00
Joe Thornber
c885633e02
o More dev_manager fns.
2002-02-25 16:53:12 +00:00
Joe Thornber
545e11a3d7
o In go the populate functions.
2002-02-25 15:19:53 +00:00
Joe Thornber
44f5287664
o More dev_manager work.
2002-02-25 14:46:57 +00:00
Alasdair Kergon
cf510897f1
Begin conversion so LV id is passed to activation unit instead of
...
struct logical_volume.
2002-02-25 12:56:16 +00:00
Joe Thornber
1d171345f8
o Sync with cvs, dev_manager still needs to be wired into activate.c
2002-02-25 12:02:33 +00:00