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
a9532b189c
Kernel functionality that returns device dependencies (ejt).
2002-03-06 19:42:23 +00:00
Joe Thornber
844545411f
o Rename dmsetup dependencies -> dmsetup deps
2002-03-06 14:47:13 +00:00
Joe Thornber
4e23a2b9b8
o Add support for getting dependencies for a device.
...
o dmsetup dependencies <dev>
2002-03-06 14:38:25 +00:00
Andres Salomon
5deba027eb
convert from debian native package
2002-03-06 05:43:54 +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
Alasdair Kergon
4ca49a0501
snapshot/zero logic
2002-03-04 15:25:52 +00:00
Joe Thornber
493c53d090
o Add a line to lvdisplay to say if the volume is a snapshot.
2002-03-04 15:12:30 +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
Andres Salomon
a34482feab
proper /etc/lvm/lvm.conf now
2002-03-04 11:13:47 +00:00
Andres Salomon
cbdc8fd4a6
fix various issues
2002-03-04 11:12:57 +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
e8a9ae7e80
Fix unlock parameter.
2002-02-27 14:48:42 +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
Alasdair Kergon
aaed82738a
Running out of filehandles? Close /dev/device-mapper/control then.
2002-02-26 18:30:02 +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
Heinz Mauelshagen
ca7e20b7ca
pvresize command
2002-02-25 15:32:58 +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
Joe Thornber
4fa7e1cd49
o Remove the vg argument from find_cow
2002-02-25 11:55:39 +00:00
Joe Thornber
acd008298e
o hash_iterate -> hash_iter
2002-02-25 11:54:15 +00:00
Joe Thornber
83a8021515
o Added a macro called hash_iterate, that is similar to list_iterate
...
o Renamed hash_iterate function, hash_iter.
2002-02-25 11:52:58 +00:00
Alasdair Kergon
cf88dfb1db
indent
2002-02-24 22:31:55 +00:00
Heinz Mauelshagen
8937c4b481
lvmdiskscan
2002-02-22 13:17:46 +00:00
Patrick Caulfield
cc6af10a4d
Fill in format_text functions.
...
Sort of seems to work.
2002-02-22 11:44:56 +00:00
Alasdair Kergon
6d94578955
o Convert lv->id back to lv_number when writing back to disk
...
o Use first unused lv_number when creating new LV
o Use lv_number for refs to snapshots
o Update persistent minor logic after the lvcreate restructure
o Reset all parameters before use in lvcreate.
2002-02-21 19:04:37 +00:00
Heinz Mauelshagen
08442ab71e
Avoid ambigous volume_group argument in vg_add_snapshot()
2002-02-21 18:31:48 +00:00
Alasdair Kergon
10d91d213f
Generate LV uuid from lv_number when reading in LVs.
2002-02-21 15:26:44 +00:00
Heinz Mauelshagen
b7a3b06994
Removed wrong 'lv->vg' argument from lv_is_cow() call. Is used in lv_is_cow internally.
2002-02-21 14:00:45 +00:00
Joe Thornber
5f12c37f23
o typo
2002-02-21 10:17:01 +00:00
Joe Thornber
585edebccd
o add find_cow function.
2002-02-21 10:16:33 +00:00
Joe Thornber
9921c62234
o misc little fixes.
2002-02-21 10:15:54 +00:00
Andres Salomon
1ac76d2e16
ah, it was that "set -e" that was the culprit..
2002-02-21 08:52:36 +00:00
Andres Salomon
6e983bf400
stop init script from returning w/ non-zero if not really an error
2002-02-21 08:30:14 +00:00
Alasdair Kergon
6a8fd4fa6e
Try out using LV locking for reactivation.
2002-02-20 21:30:27 +00:00
Alasdair Kergon
3698eaa2d2
Remove lv_update_write_access: use lv_reactivate directly now instead.
2002-02-20 21:28:22 +00:00
Alasdair Kergon
8d97ca433c
Suppress meaningless <backtrace> msg on screen (no prog/line number given)
2002-02-20 21:26:40 +00:00
Alasdair Kergon
23cc65e537
lvd->lv_access & LV_SNAPSHOT not lvd->lv_status
2002-02-20 21:24:45 +00:00