Alasdair Kergon
7c2ef08367
Option for bitset memory allocation using malloc as well as pool.
2005-09-16 18:40:53 +00:00
Alasdair Kergon
dbb43034e6
Don't assume exactly two mirrors when parsing mirror status
2005-09-02 16:59:46 +00:00
Alasdair Kergon
40ec1e8a36
Suppress fsync() error message on filesystems that don't support it.
2005-09-01 18:37:22 +00:00
Alasdair Kergon
fd0eec20b7
Add format1 dev_write debug messages.
2005-08-16 19:00:55 +00:00
Patrick Caulfield
fe6c78629d
clvmd no longer takes out locks for non-clusteed LVs,
...
and non-clustered LVs are only activated on the local node.
2005-08-16 08:25:09 +00:00
Alasdair Kergon
3d38769798
Add clustered VG attribute to report.
2005-08-15 23:34:11 +00:00
Alasdair Kergon
4c60a35226
Add clustered VG flag to LV lock requests.
2005-08-15 13:24:46 +00:00
Alasdair Kergon
0fb173aa3a
Change LV locking macros to take lv instead of lvid.
2005-08-15 12:00:04 +00:00
Alasdair Kergon
07d318310b
Prepare tools to support clustered mirrors.
2005-08-14 23:18:28 +00:00
Alasdair Kergon
bfd31e94d5
Factor out adjusted_mirror_region_size()
2005-08-12 19:23:08 +00:00
Alasdair Kergon
197632009b
Move compose_log_line() into mirror directory.
2005-08-10 17:19:46 +00:00
Alasdair Kergon
4bf57acec8
Factor out _get_library_path().
2005-08-09 17:24:21 +00:00
Alasdair Kergon
398c74b263
Recognise aoe devices.
2005-08-08 17:54:23 +00:00
Alasdair Kergon
7b68df96dc
fix last checkin
2005-08-04 01:29:18 +00:00
Alasdair Kergon
78a352c2eb
Prevent snapshots getting activated in a clustered VG.
2005-08-04 01:27:25 +00:00
Alasdair Kergon
a4be2c013c
Separate out _build_dev_string.
2005-08-04 01:15:30 +00:00
AJ Lewis
cc4a9ff522
fix pool format handler to work with pvseg code
2005-07-26 21:48:18 +00:00
Alasdair Kergon
0440a206dc
Fix pvmove segment splitting.
...
Abstract vg_validate.
2005-07-12 19:40:59 +00:00
Alasdair Kergon
10b44b2d4a
Only make one attempt at contiguous allocation.
2005-07-12 14:50:45 +00:00
Alasdair Kergon
4f8781051a
Fix lvm1 format metadata read.
2005-06-22 15:31:29 +00:00
Alasdair Kergon
fbb77ddb23
preset pl to NULL
2005-06-14 18:29:12 +00:00
Alasdair Kergon
b6d69d0c1e
missing fn defs
2005-06-14 18:22:31 +00:00
Alasdair Kergon
5e947dac48
Various allocation-related pvmove fixes.
2005-06-14 17:54:48 +00:00
Alasdair Kergon
56c3d1f7fc
Use matchpathcon mode parameter.
2005-06-13 13:13:15 +00:00
AJ Lewis
c71d140252
o print the context along with the path when setting selinux context
2005-06-10 21:30:21 +00:00
Alasdair Kergon
5748cb17f8
Remove hard-coded 64k text metadata writing restriction.
2005-06-07 11:00:07 +00:00
Alasdair Kergon
8b80d2a57c
Make VG name restrictions consistent.
2005-06-06 18:16:33 +00:00
Alasdair Kergon
1a1f3d3efe
Introduce lvconvert. So far only removes mirror images.
2005-06-06 17:12:08 +00:00
Alasdair Kergon
ffb0e5387b
Allow mirror images to be resized.
2005-06-03 19:48:19 +00:00
Alasdair Kergon
c77de77790
Allow mirror images to have more than one segment.
2005-06-03 18:07:13 +00:00
Alasdair Kergon
5c9a54e480
lvremove mirror images
2005-06-03 15:44:12 +00:00
Alasdair Kergon
8211a13ce0
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
60f13f01d2
Basic support for mirrors.
2005-06-01 16:51:55 +00:00
Alasdair Kergon
3f910647c3
Fix mem allocs after archiver code move.
2005-05-24 17:37:39 +00:00
Alasdair Kergon
21ca3b1227
Fix vgmerge to handle duplicate LVIDs.
2005-05-19 16:48:51 +00:00
Alasdair Kergon
e7c47a5dad
Start merging cloned allocation functions.
2005-05-17 13:49:45 +00:00
Alasdair Kergon
7ac8c2389f
Move archiver code from tools into library.
2005-05-17 13:46:38 +00:00
Alasdair Kergon
24e654645f
vgscan/change/display/vgs automatically create metadata backup if out-of-date or missing.
2005-05-17 13:44:02 +00:00
Alasdair Kergon
0888dc43cf
Fix contiguous allocations with linear.
2005-05-11 16:46:59 +00:00
Alasdair Kergon
17ae61cce5
Cope with missing format1 PVs again.
2005-05-11 15:04:06 +00:00
Alasdair Kergon
7f2def9e6d
Remove lists of free PV segments.
...
Simplify pv_maps code and remove slow bitset algorithm.
2005-05-11 15:02:49 +00:00
Alasdair Kergon
c44c04a6d7
%Zu->zu
2005-05-09 17:45:06 +00:00
Alasdair Kergon
bbdd74e0fa
fix compiler warnings
2005-05-09 17:41:36 +00:00
Alasdair Kergon
c708ec79b1
Fix loopfiles mem alloc.
2005-05-09 17:02:52 +00:00
Alasdair Kergon
4d12267641
Un-inline dbg_strdup.
2005-05-09 17:01:06 +00:00
Alasdair Kergon
32469fb25c
lv_reduce tidying.
...
Remove some unnecessary parameters.
Introduce seg_is macros.
2005-05-09 16:59:01 +00:00
Alasdair Kergon
abe198c0e8
Don't create backup and archive dirs till needed.
2005-05-03 17:31:56 +00:00
Alasdair Kergon
15db9fcfbf
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
22c1a65f74
extend alloc_lv_segment
2005-04-22 15:44:00 +00:00
Alasdair Kergon
e40d124e14
set_lv_segment_area_pv/lv
2005-04-22 15:43:02 +00:00
Alasdair Kergon
c54a940540
Initial pv_segment code.
2005-04-19 20:58:25 +00:00
Alasdair Kergon
41d7e56a02
initial pv_segment defns
2005-04-19 20:52:35 +00:00
Alasdair Kergon
cc39455372
_copy_pv -> int
2005-04-19 20:44:21 +00:00
Alasdair Kergon
66278a80b1
vgchange --physicalextentsize (but only if it's an exact fit - may need to
...
use pvmove first)
2005-04-18 14:56:42 +00:00
Alasdair Kergon
f1379332dc
extract compose_log_line
2005-04-17 23:59:04 +00:00
Alasdair Kergon
ef9188078d
get_pv_from_vg_by_id
2005-04-17 23:57:44 +00:00
Alasdair Kergon
072893aabd
Internal snapshot code restructuring.
2005-04-07 12:39:44 +00:00
Alasdair Kergon
3a6edbed16
add lvid to lv_create_empty
2005-04-07 12:29:46 +00:00
Alasdair Kergon
69b2cc0ee0
Remove unused internal non-persistent snapshot option.
2005-04-07 12:27:57 +00:00
Alasdair Kergon
0c86ac44a9
fix unused o_direct label
2005-04-07 12:25:33 +00:00
Alasdair Kergon
90395b8d53
store snapshot id as lvid internally
2005-04-07 12:24:48 +00:00
Alasdair Kergon
864de9cee1
Allow offline extension of snapshot volumes.
...
NB Requires kernel patch that is not upstream.
2005-04-07 12:17:46 +00:00
Alasdair Kergon
367b9cb1f5
Move from 2-step to 3-step on-disk metadata commit.
2005-04-06 18:59:55 +00:00
Alasdair Kergon
b12f3c5b9d
Add ramdisk.
2005-04-06 16:43:59 +00:00
Alasdair Kergon
9d1db8278a
_vg_posn -> _find_vg_rlocn
2005-04-06 16:35:33 +00:00
Alasdair Kergon
06cc0dade2
more refinements
2005-04-06 15:21:28 +00:00
Alasdair Kergon
1128f56b1e
Annotate, tidy and extend list.h.
2005-04-06 14:50:37 +00:00
Alasdair Kergon
1165258cda
Alignment tidying.
2005-04-06 13:47:41 +00:00
Alasdair Kergon
343a8c920d
Add clustered attribute so vgchange can identify clustered VGs w/o locking.
2005-03-21 22:55:12 +00:00
Alasdair Kergon
e5b836d2d6
Improve detection of external changes affecting internal cache.
2005-03-21 22:40:35 +00:00
Alasdair Kergon
162d85b97b
Add 'already in device cache' debug message.
2005-03-21 14:51:49 +00:00
Alasdair Kergon
0aa8e5be94
Avoid rmdir opendir error messsages when dir was already removed.
2005-03-21 14:43:02 +00:00
Alasdair Kergon
779b7713cf
Tighten signal handlers.
2005-03-21 14:16:16 +00:00
Alasdair Kergon
7e0b7fd0e5
Avoid some compiler warnings.
2005-03-10 22:34:17 +00:00
Alasdair Kergon
e5def0bab5
Additional rename failure error message.
2005-03-10 22:31:10 +00:00
Alasdair Kergon
1cbfe69961
read/write may be macros
2005-03-10 20:23:36 +00:00
Alasdair Kergon
b9565b406a
Cope with new devices appearing by rescanning /dev if a uuid can't be found.
2005-03-08 13:46:17 +00:00
Alasdair Kergon
aa70fe8b71
Suppress 'open failed' error messages during scanning.
2005-03-03 21:54:35 +00:00
Alasdair Kergon
f1b2dad435
Add fixed offset to imported pool minor numbers.
2005-02-09 17:49:36 +00:00
Alasdair Kergon
274c88be9f
More 64-bit display/report fixes.
2005-02-01 16:19:48 +00:00
Alasdair Kergon
51c2a81360
More informative startup mesg if can't create /etc/lvm.
2005-01-27 15:50:34 +00:00
Alasdair Kergon
7851b13bc4
Fix snapshot device size bug (since 2.01.01).
2005-01-27 15:48:49 +00:00
Patrick Caulfield
6f4d25ec7f
Fix clvmd startup bug introduced in cman/gulm amalgamation. bz#145729
...
Improve reporting of node-specific locking errors so you'll get
somthing a little more helpfiul than "host is down" - it will now tell
you /which/ host it thinks is down.
2005-01-21 11:35:24 +00:00
Alasdair Kergon
ed2799e7fe
Fix some size_t printing.
2005-01-20 18:14:04 +00:00
Alasdair Kergon
894a05fffa
Fix 64 bit xlate consts.
2005-01-20 18:13:17 +00:00
Alasdair Kergon
da73b38d1a
Split out pool sptype_names to avoid unused const.
2005-01-20 18:12:41 +00:00
Alasdair Kergon
52f9afec22
Always fail if random id generation fails.
2005-01-20 18:11:53 +00:00
Alasdair Kergon
c44c015a2d
Recognise gnbd.
2005-01-19 18:56:01 +00:00
Alasdair Kergon
c45a8a2c1c
Store snapshot and origin sizes separately.
2005-01-19 17:19:39 +00:00
Alasdair Kergon
73543ee70d
Fix vgscan metadata auto-correction.
2005-01-17 18:24:28 +00:00
Alasdair Kergon
e9c761b869
Only ask libdevmapper for open_count when we need it.
2005-01-12 22:58:21 +00:00
Patrick Caulfield
b9fb9b206e
Fix off-by-one error in cluster_locking that could case read hangs.
2005-01-07 14:22:49 +00:00
Alasdair Kergon
165f49ba1d
Fix device reference counting on re-opens.
2004-12-21 20:23:16 +00:00
Alasdair Kergon
f6ab00eb54
Ignore sysfs symlinks when DT_UNKNOWN.
2004-12-21 18:29:46 +00:00
Alasdair Kergon
d46fd67fb6
Skip devices that are too small to be PVs.
2004-12-21 17:54:52 +00:00
Alasdair Kergon
9ec484617a
Cope with empty msdos partition tables.
2004-12-21 16:10:25 +00:00
Alasdair Kergon
5e94864311
Reopen RO file descriptor RW if necessary.
2004-12-12 21:47:14 +00:00
Alasdair Kergon
09a7dce6be
Additional device-handling debug messages.
...
Additional verbosity level -vvvv includes line numbers and backtraces.
Verbose messages now go to stderr not stdout.
Close any stray file descriptors before starting.
Refine partitionable checks for certain device types.
Allow devices/types to override built-ins.
2004-12-10 16:01:35 +00:00
Alasdair Kergon
39de4a2a56
Extend dev_open logging.
2004-12-09 16:56:51 +00:00
Alasdair Kergon
66f0408473
xlate compilation fix
2004-11-27 22:07:41 +00:00
Alasdair Kergon
bbdab3fc9e
Endian fix to signature detection.
2004-11-27 21:37:54 +00:00
Alasdair Kergon
57b8df3e45
fix partition table signature size
2004-11-26 14:40:34 +00:00
Alasdair Kergon
c3a4c63c15
Trap large memory allocation requests.
2004-11-24 21:34:56 +00:00
Alasdair Kergon
2e6051674b
Fix to partition table detection code.
2004-11-24 20:38:05 +00:00
Alasdair Kergon
7f1e8db796
Improve filter debug msgs.
2004-11-24 20:36:52 +00:00
Alasdair Kergon
bd46a496c7
pool debugging
2004-11-23 18:23:23 +00:00
Alasdair Kergon
8a9351000e
fix a md filter log mesg
2004-11-23 17:45:48 +00:00
Alasdair Kergon
985ef4617f
Detect partition table signature.
2004-11-23 11:44:04 +00:00
Alasdair Kergon
5ab925debf
pvcreate wipes md superblocks. (With --uuid or --restorefile it prompts.)
2004-11-19 19:25:07 +00:00
Alasdair Kergon
b2dd0bb1d0
Separate out md superblock detection code.
2004-11-18 20:02:21 +00:00
Alasdair Kergon
56f5c04d5b
Fix size of dm_name string.
2004-10-11 15:59:23 +00:00
Alasdair Kergon
be495a46bf
Fix return code from rm_link for vgmknodes.
2004-09-22 13:38:37 +00:00
Alasdair Kergon
2b176f9034
Fix pool_empty so it really does empty the memory pool.
2004-09-16 20:09:55 +00:00
Alasdair Kergon
c4ddb31abf
Rename old segtypes files to segtype.
2004-09-16 18:40:56 +00:00
Alasdair Kergon
e26c4fd2a2
Some fixes to memory debugging code.
...
Exclude internal commands formats & segtypes from install.
2004-09-16 16:53:39 +00:00
Alasdair Kergon
7f64c8e5fa
Export dm name build & split functions.
2004-09-15 15:02:36 +00:00
Alasdair Kergon
60bd717971
Use O_NOATIME on devices if available.
2004-09-14 22:23:23 +00:00
Alasdair Kergon
19d1e7102c
Write log message when each segtype/format gets initialised.
2004-09-14 17:37:51 +00:00
Alasdair Kergon
156dd4f1ec
New commands 'segtypes' and 'formats'.
2004-09-14 16:42:46 +00:00
Alasdair Kergon
68eb9e3b1f
Test for incompatible format/segtype combinations in lv_extend.
2004-09-14 13:56:18 +00:00
Alasdair Kergon
b588726e9f
Fix /dev/vgname mkdir perms.
2004-09-02 14:38:46 +00:00
Alasdair Kergon
28acccca2a
Restructure xlate.h
2004-09-02 13:53:25 +00:00
Alasdair Kergon
acac21c462
Recognise iseries/vd devices.
2004-08-18 19:13:01 +00:00
Alasdair Kergon
cab8ea7c62
Cluster-extension-only installation.
2004-08-18 18:57:40 +00:00
Alasdair Kergon
cf076dd366
Cope with DT_UNKNOWN in sysfs.
2004-08-18 18:50:21 +00:00
Alasdair Kergon
392b28ec5c
Support for PE ranges in pvmove source PV.
2004-08-17 22:09:02 +00:00
Alasdair Kergon
eabaa3398b
Change alloc_areas to pe_ranges and allow suppression of availability checks.
2004-08-17 21:55:23 +00:00
Alasdair Kergon
1c31f23f56
Add a const.
2004-08-11 13:15:35 +00:00
Alasdair Kergon
a303dcde2a
Add dev_size column to pvs.
2004-08-11 13:15:05 +00:00
Alasdair Kergon
5fd24a89ec
Add report columns for in-kernel device number.
2004-07-03 22:07:52 +00:00
Alasdair Kergon
8bad033938
Fix device number handling for 2.6 kernels.
2004-07-01 15:14:29 +00:00
Alasdair Kergon
a0154cd9e7
Reduce severity of setlocale failure message (ie suppress during boot).
2004-06-29 13:28:57 +00:00
Alasdair Kergon
11a4112cb9
Missing .exported_symbols
2004-06-24 08:16:09 +00:00
Alasdair Kergon
d3c8211fef
Add cluster support.
2004-06-24 08:02:38 +00:00
Alasdair Kergon
c29d24650d
Display all filtered devices, not just PVs, with pvs -a.
2004-06-19 19:27:00 +00:00
Alasdair Kergon
01c263e9fe
Fix sync_dir() when no / in filename.
2004-06-19 19:24:33 +00:00
Alasdair Kergon
8d267798db
vgcfgbackup -f accepts template with %s for VG name.
2004-06-19 18:55:29 +00:00
Alasdair Kergon
374df1cf8e
Extend hash functions to handle non-null-terminated data.
2004-06-18 15:08:22 +00:00
Alasdair Kergon
b86ef8e2cb
Add local activation support.
2004-06-16 17:13:41 +00:00
Alasdair Kergon
b7d0982ae7
tidy relative paths in makefile includes
2004-06-15 17:25:07 +00:00
Alasdair Kergon
603292735e
mark pool support read-only; fix makefile typo
2004-06-07 19:26:13 +00:00
Alasdair Kergon
d8ac0fbcbf
Add read-only GFS pool support.
2004-06-07 19:10:21 +00:00
Alasdair Kergon
30bab85be1
Fix rounding of large displayed sizes.
2004-06-07 15:22:43 +00:00
Alasdair Kergon
2ea0f30ffa
i2o_block
2004-06-01 18:33:50 +00:00
Alasdair Kergon
7d36b514d8
Suppress decimal point when using units of sectors/bytes.
2004-05-28 12:47:57 +00:00
Alasdair Kergon
abaf083ddc
Additional kernel target checks before pvmove & snapshot creation.
2004-05-24 20:51:56 +00:00
Alasdair Kergon
bfa258b3e7
Set area_count within alloc_lv_segment
2004-05-24 17:30:00 +00:00
Alasdair Kergon
a0a23eff4b
Rename allocation policies; add --alloc to cmdline; LV inherits from VG.
2004-05-18 22:12:53 +00:00
Alasdair Kergon
b61702ce8c
Add reset_fn to external_locking.
2004-05-18 21:57:24 +00:00
Alasdair Kergon
63aead84ee
indent
2004-05-18 21:55:55 +00:00
Alasdair Kergon
e0a86d8c18
Ensure presence of virtual targets before attempting activation.
2004-05-12 20:43:34 +00:00
Alasdair Kergon
369028100b
Attempt to fix resizing of snapshot origins.
2004-05-12 20:40:34 +00:00
Alasdair Kergon
f75c11ed27
update comment
2004-05-11 18:18:14 +00:00
Alasdair Kergon
6925cbe624
A quick sanity check on vg_disk struct when read in. More checks needed.
2004-05-11 17:18:42 +00:00
Alasdair Kergon
ff4b8b64c8
Only include visible LVs in active/open counts.
2004-05-11 17:09:09 +00:00
Alasdair Kergon
1832f310ac
Add --type to lvcreate/resize.
...
Add virtual segment types, zero and error.
A large sparse device can be constructed as a writeable snapshot of a large
zero device.
2004-05-11 16:01:58 +00:00
Alasdair Kergon
1d2ebf6281
Push lv_create & alloc policy up to tool level.
2004-05-05 18:49:21 +00:00
Alasdair Kergon
736e31313c
comments
2004-05-05 18:35:04 +00:00
Alasdair Kergon
0e3d94526a
Reporting uses line-at-a-time output.
2004-05-05 18:23:11 +00:00
Alasdair Kergon
fc52c6d5dd
lvm2 format sets unlimited_vols format flag.
2004-05-05 18:17:48 +00:00
Alasdair Kergon
ea601b75e2
Internal-only metadata flag support.
2004-05-05 18:15:47 +00:00
Alasdair Kergon
224565478c
Some basic checking for presence of device-mapper targets.
2004-05-05 18:11:43 +00:00
Alasdair Kergon
cb919290c2
Separate out polldaemon.
2004-05-05 17:56:20 +00:00
Alasdair Kergon
23289e6d14
Revise internal locking semantics.
2004-05-05 12:03:07 +00:00
Alasdair Kergon
5668c1abad
move find_pv_by_name to lib
2004-05-05 11:04:28 +00:00
Alasdair Kergon
0b2b87b717
Add devices to segments report; some move->copy renaming.
2004-05-05 10:58:44 +00:00
Alasdair Kergon
4922197a33
Begin to separate out segment types.
2004-05-04 21:25:57 +00:00
Alasdair Kergon
6ec6994107
Compress any (obsolete) long LVM1 pvids encountered.
2004-05-04 18:38:11 +00:00
Alasdair Kergon
25579907fc
Support tagged config files.
2004-05-04 18:28:15 +00:00
Alasdair Kergon
470a1e923c
Don't abort operations if selinux is present but disabled.
2004-05-04 15:29:26 +00:00
Alasdair Kergon
a38df97fb8
config option to avoid using install -o -g
2004-04-19 13:10:06 +00:00
Alasdair Kergon
96185e9ca1
Use 64-bit file functions.
2004-04-16 18:43:29 +00:00
Alasdair Kergon
01c6121ba5
Set devices/md_component_detection = 1 to ignore devices containing md
...
superblocks. [Luca Berra]
2004-04-16 16:12:04 +00:00
Alasdair Kergon
121c5c060b
Ignore error setting selinux file context if fs doesn't support it.
2004-04-16 12:24:46 +00:00
Alasdair Kergon
627f730e18
fix selinux error mesg
2004-04-14 18:10:10 +00:00
Alasdair Kergon
c7a7f85737
Add power2
2004-04-14 17:33:51 +00:00
Alasdair Kergon
c8f601b30f
Fix lvs_in_vg_opened counting.
2004-04-14 17:33:04 +00:00
Alasdair Kergon
d5d70df747
fix patch that misapplied
2004-04-08 17:21:01 +00:00
Alasdair Kergon
7d1552c9de
Option for auto-fallback to LVM1 tools if running 2.4 without device-mapper.
2004-04-08 15:23:23 +00:00
Alasdair Kergon
036f273ad0
Basic selinux support
2004-04-07 14:08:22 +00:00
Alasdair Kergon
fb53aa7bc6
Fix sysfs filter to check fs type.
2004-04-06 16:47:59 +00:00
Alasdair Kergon
d68a82ecbd
Fix shared format1 build.
2004-04-05 16:29:37 +00:00
Alasdair Kergon
6606c3ae81
Update copyright notices.
2004-03-30 19:35:44 +00:00
Alasdair Kergon
8b07664860
Fix vgmknodes to remove dud /dev/mapper entries
2004-03-30 14:40:03 +00:00
Alasdair Kergon
f09fe0ad0f
Rename dev_manager_mknodes -> dev_manager_lv_mknodes etc.
2004-03-30 14:38:57 +00:00
Alasdair Kergon
685d88b26a
spelling corrections
2004-03-30 14:36:50 +00:00
Alasdair Kergon
6dee988083
vgdisplay_colons
2004-03-30 14:35:40 +00:00
Alasdair Kergon
8e1e14ee8a
missing definition
2004-03-26 21:46:01 +00:00
Alasdair Kergon
f22969328b
tweak memlock includes
2004-03-26 21:11:34 +00:00
Alasdair Kergon
2534fa5203
Add string display to mem leak dump.
2004-03-26 21:09:44 +00:00
Alasdair Kergon
93af0a4a51
indent
2004-03-26 21:07:30 +00:00
Alasdair Kergon
2da02bbd16
move lock_lvs; add lock memlock code
2004-03-26 20:49:35 +00:00
Alasdair Kergon
ff6d21103b
LV allocation variable renaming
2004-03-26 20:35:14 +00:00
Alasdair Kergon
05896e787c
Add locking flags + memlock option.
2004-03-26 20:17:11 +00:00
Alasdair Kergon
4291ce3cac
makefile spacing
2004-03-26 20:03:58 +00:00
Alasdair Kergon
d1f4953ad4
Add list_versions to library
2004-03-26 19:52:09 +00:00
Alasdair Kergon
c1f5052199
Ignore open hidden LVs when checking if deactivation is OK.
2004-03-26 19:13:39 +00:00
Alasdair Kergon
b65b777d2a
Suppress move percentage when inactive
2004-03-26 19:10:48 +00:00
Alasdair Kergon
23670fbe43
Tidy sysfs includes
2004-03-26 18:54:55 +00:00
Alasdair Kergon
4bd9480dce
lv_info_by_lvid
2004-03-26 15:35:01 +00:00
Alasdair Kergon
79982c59a0
.export.sym generation
2004-03-26 14:51:23 +00:00
Alasdair Kergon
aff059ecc2
cmdlib logging function
2004-03-26 14:47:14 +00:00
Alasdair Kergon
84510264cd
Update makefiles (incl. cmdlib).
2004-03-26 13:21:12 +00:00
Alasdair Kergon
d24fb77c03
Rebaseline internal verbose level.
2004-03-26 11:45:01 +00:00
Alasdair Kergon
f2046e0aeb
Only print warning message once when compiled without libdevmapper.
2004-03-19 16:26:46 +00:00
Alasdair Kergon
68df28296d
Fix lvreduce pv extents calculations.
2004-03-19 16:19:41 +00:00
Alasdair Kergon
658b58129b
additional activation functions
2004-03-08 18:54:13 +00:00
Alasdair Kergon
814643d8a2
rename config file vars & always use / as separator
2004-03-08 18:28:45 +00:00
Alasdair Kergon
de17d760ba
host tags
2004-03-08 18:13:22 +00:00
Alasdair Kergon
a0313876e7
move hostname into global
2004-03-08 17:25:59 +00:00
Alasdair Kergon
cf6dd25126
tagging
2004-03-08 17:19:15 +00:00
Alasdair Kergon
5071196631
More str_list fns.
2004-03-08 15:23:01 +00:00
Alasdair Kergon
c2b067912b
File missed from last checkin.
2004-02-18 13:06:21 +00:00
Alasdair Kergon
69792976e4
Basic internationalisation support.
2004-02-13 22:56:45 +00:00
Alasdair Kergon
08c419da66
Don't recurse symlinked dirs such as /dev/fd on 2.6.
2004-02-13 18:55:43 +00:00
Alasdair Kergon
a43a1312d2
don't inline pool_zalloc(); lift duplicated pool_str(n)dup to pool.c
2004-02-13 15:38:54 +00:00
Alasdair Kergon
6e4b011dac
Don't inline hash _find
2004-02-13 15:36:58 +00:00
Alasdair Kergon
a8537e6f59
Sysfs block device filtering option for 2.6.
2004-02-13 14:46:04 +00:00
Alasdair Kergon
c1c0685e34
split_words()
2004-02-13 14:43:35 +00:00
Alasdair Kergon
82c86650e1
Define BLKGETSIZE64 on systems with out-of-date header files.
2004-01-27 20:53:57 +00:00
Alasdair Kergon
cc8f6e3dbc
If PV/VG uuids are missing, generate them from the pv/vg numbers.
...
[This situation could occur if the uuids were oritinally created by
LVM1 on a system without /dev/urandom.]
2004-01-09 19:18:20 +00:00
Alasdair Kergon
397b239bdf
Log full details when "VG data differs between PVs" error message occurs.
2004-01-02 14:04:44 +00:00
Alasdair Kergon
50b39413ac
Relax restriction on pe_start location when re-writing LVM1 metadata.
2003-12-09 17:51:39 +00:00
Alasdair Kergon
e19f549a11
Fix support for PVs on read only devices. [Still must set LVs read only]
2003-11-21 19:54:40 +00:00
Alasdair Kergon
ee8518bd9c
lvcreate should close the initialised snapshot device immediately.
2003-11-14 17:55:39 +00:00
Alasdair Kergon
27642fade0
Fix dev_zero() offset.
2003-11-13 23:55:03 +00:00
Alasdair Kergon
034db45e26
Immediate error on big memory allocations when --enable-debug.
2003-11-13 23:54:02 +00:00
Alasdair Kergon
c01f85420e
Missing include.
2003-11-13 18:47:22 +00:00
Alasdair Kergon
8c0388e487
vgmknodes also creates necessary nodes in /dev/mapper
2003-11-13 14:11:41 +00:00
Alasdair Kergon
f7dd6d8446
The LVM2 part of vgmknodes [still to do the non-devfs device-mapper bit].
2003-11-12 19:16:48 +00:00
Alasdair Kergon
12bb377f9b
Default to unlimited number of LVs/PVs in lvm2 format.
2003-11-06 20:33:34 +00:00
Alasdair Kergon
6078f63801
Prevent PV allocation bit getting changed for format_text orphans.
2003-11-06 20:15:13 +00:00
Alasdair Kergon
2dc95e1c41
Configuration-time O_DIRECT setting.
2003-11-06 17:14:06 +00:00
Alasdair Kergon
40e975869b
Add drbd.
2003-11-06 17:10:35 +00:00
Alasdair Kergon
3eb135f550
Fit locking bits into 1 byte.
2003-11-06 17:08:18 +00:00
Alasdair Kergon
fee16e1049
Cope better with LVM1 minor numbers & LV numbers.
2003-11-06 16:58:38 +00:00
Alasdair Kergon
207aa8a131
Fix exported format1 VG recognition.
2003-10-21 22:21:41 +00:00
Alasdair Kergon
cfb7bfc7d9
More consistent error code usage.
2003-10-21 22:06:07 +00:00
Alasdair Kergon
0cf96f33ea
Check no fs mounted before deactivating.
2003-10-21 22:00:36 +00:00
Alasdair Kergon
dcc31da516
dumpconfig to dump active configuration
2003-10-15 20:17:19 +00:00
Alasdair Kergon
c7ee8edc33
relax a scanning restriction
2003-10-15 20:10:11 +00:00
Alasdair Kergon
ada0dc4234
Prevent creation of MDA bigger than disk.
2003-10-15 20:06:37 +00:00
Alasdair Kergon
ac21f47034
more str_list fns
2003-10-15 20:04:29 +00:00
Alasdair Kergon
13057fe53f
str_list_del
2003-10-15 20:01:12 +00:00
Alasdair Kergon
aa37899857
Extract some common functions.
2003-09-17 20:35:57 +00:00
Alasdair Kergon
842a35c7ca
Remove incorrect comments.
2003-09-16 16:23:21 +00:00
Alasdair Kergon
b2a849142b
Fix read-only snapshot creation.
2003-09-16 16:08:05 +00:00
Alasdair Kergon
85c1926171
Improve segment merge/split code.
2003-09-15 18:22:50 +00:00
Alasdair Kergon
96bea84664
vgcfgrestore -l lists backup file too
2003-09-15 15:03:22 +00:00
Alasdair Kergon
6a5b803539
Don't use !# in randomly-generated uuids.
2003-09-15 14:58:43 +00:00
Alasdair Kergon
f1e6be4be1
Additional validation of LV segments read from metadata. [HM]
2003-09-01 19:55:16 +00:00
Alasdair Kergon
8fd3c219fd
Fix unsafe list iteration in segment merge code. [HM]
2003-08-27 15:30:39 +00:00
Alasdair Kergon
29ebccc3e2
Cope better when format functions are missing.
2003-08-26 21:12:06 +00:00
Alasdair Kergon
4c22730b53
Some tidyups and minor fixes.
2003-08-20 15:48:27 +00:00
Alasdair Kergon
9a90f1aba6
Remove small hard-coded activation target line parameter limit.
2003-08-20 12:53:57 +00:00
Alasdair Kergon
21a1fa4701
Accept signed numbers in config file.
2003-07-15 16:32:20 +00:00
Alasdair Kergon
10f57523d9
Fix vgimport fix to work outside debug mode.
2003-07-15 01:26:24 +00:00
Alasdair Kergon
eaabdc26ce
Fix detection of exported LVM1 volume groups.
2003-07-13 11:07:25 +00:00
Alasdair Kergon
a12c4af876
Fix inactive snapshot display.
2003-07-11 17:09:21 +00:00
Alasdair Kergon
27ab6e0f86
Driver version 1 compatibility fix for snapshots.
2003-07-05 23:24:10 +00:00
Alasdair Kergon
914c97239f
Another sync point - numerous fixes & clean ups.
2003-07-04 22:34:56 +00:00
Alasdair Kergon
46a68b7dd6
move functions
2003-05-06 12:22:24 +00:00
Alasdair Kergon
44c319cf0d
move fields
2003-05-06 12:06:02 +00:00
Alasdair Kergon
8b99c8b6ec
reset_locking()
2003-05-06 12:03:13 +00:00
Alasdair Kergon
2fc3a4576f
Move fields.
2003-05-06 12:02:36 +00:00
Alasdair Kergon
9a5e05a406
list_next
2003-05-06 12:01:13 +00:00
Alasdair Kergon
9019ed2e77
Add argv
2003-05-06 12:00:51 +00:00
Alasdair Kergon
b9e67d4f46
Distinguish between visible & top level devices.
2003-05-06 12:00:29 +00:00
Alasdair Kergon
6faef15ecd
add region size & interval
2003-04-30 15:27:48 +00:00
Alasdair Kergon
10b29b8d2d
pvmove support
2003-04-30 15:26:25 +00:00
Alasdair Kergon
8afb045af2
Add mirror.c
2003-04-30 15:24:49 +00:00
Alasdair Kergon
97d344e2cb
basic pvmove support
2003-04-30 15:23:43 +00:00
Alasdair Kergon
5053603d2a
pvmove flag
2003-04-30 15:22:52 +00:00
Alasdair Kergon
7b44156315
mirror type
2003-04-30 15:22:36 +00:00
Alasdair Kergon
9d6e5a6387
mirror display type
2003-04-30 15:21:43 +00:00
Alasdair Kergon
4b7af6da11
Add comment
2003-04-30 15:21:10 +00:00
Alasdair Kergon
fe451a01e8
Try alternative syncs if BLKFLSBUF fails.
2003-04-28 16:20:39 +00:00
Alasdair Kergon
662b119be6
Extra metadata-reading debug message.
2003-04-28 12:18:53 +00:00
Alasdair Kergon
eb8ae8e837
Update segment area length when merging consecutive segments.
2003-04-24 22:46:47 +00:00
Alasdair Kergon
b8c919b402
o Metadata area struct change.
...
o Support physical extent restrictions on PV lists for allocations
e.g. lvcreate -l 200 vg1 /dev/sda1:100-199:300-399
2003-04-24 22:23:24 +00:00
Alasdair Kergon
a3f950d56f
stripe filler parameter
2003-04-24 22:10:56 +00:00
Alasdair Kergon
a9953411a8
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
9a079266dd
Add pool_strndup
2003-04-24 21:58:34 +00:00
Alasdair Kergon
010c07de20
Improve message for pvcreate of empty device.
2003-04-22 16:09:11 +00:00
Alasdair Kergon
b896caa19b
Improve build robustness.
2003-04-15 13:24:42 +00:00
Alasdair Kergon
5beb6fab74
Abort if any filter creation fails.
2003-04-15 13:22:43 +00:00
Alasdair Kergon
258c50db74
Cope with intentionally missing /proc.
2003-04-15 13:21:38 +00:00
Alasdair Kergon
446155d94f
Support snapshot status fraction.
2003-04-15 13:20:16 +00:00
Alasdair Kergon
27f364af95
Allow for specification of major number as well as minor.
2003-04-02 19:14:43 +00:00
Alasdair Kergon
34e0f798e3
size_t tidying
2003-04-02 19:11:23 +00:00
Alasdair Kergon
26e7f2e0c4
Tidy various pre-processing incl. making libdl optional.
2003-03-24 18:08:53 +00:00
Alasdair Kergon
3a1703294b
Fix incomplete munmap. (pjc)
2003-03-20 14:29:28 +00:00
Joe Thornber
712a874f07
HAT_CHAR and DOLLAR_CHAR were defined to the same value !
2003-02-20 14:53:56 +00:00
Alasdair Kergon
7e4867f743
LV name validation
2003-02-03 20:09:58 +00:00
Alasdair Kergon
c0002e576e
Identifiers may now start with digits etc.
2003-02-03 20:08:45 +00:00
Alasdair Kergon
efb63f4740
Allow strings in single quotes too
2003-01-28 17:20:11 +00:00
Alasdair Kergon
41102098e5
Treat 'section{' as equivalent to 'section {'
2003-01-28 16:07:04 +00:00
Alasdair Kergon
79be52c881
Indicate full (dropped) snapshot.
2003-01-21 18:50:50 +00:00
Alasdair Kergon
a421f74371
vgreduce --removemissing to remove missing PVs & deps & make VG consistent
2003-01-17 21:04:26 +00:00
Alasdair Kergon
711f7fc681
Activation commands now return success in test mode.
2003-01-17 20:16:23 +00:00
Alasdair Kergon
e9ea1fb3bf
Fix (rare) cache bug on machines with large /dev directories.
2003-01-10 19:14:01 +00:00
Alasdair Kergon
04e8cd96f3
Fix segfault in uuid display (substitution missed during bulk change)
2003-01-09 19:35:17 +00:00
Alasdair Kergon
199e490e7d
configure --disable-devmapper if you don't have libdevmapper
2003-01-08 22:44:07 +00:00
Alasdair Kergon
4970ebfb92
o Additional device/filter-level debugging messages + duplicate alias fix
...
o 32/64-bit size_t fix (pjc)
2003-01-08 16:41:22 +00:00
Alasdair Kergon
f3f3424f9a
Detect duplicate PV uuids - select the one on an md device if appropriate.
2003-01-06 21:10:43 +00:00
Alasdair Kergon
fdf481c665
Ignore filter cache at startup if config file is newer than cache.
2003-01-06 21:09:04 +00:00
Alasdair Kergon
4aae68792c
When there are device name aliases, choose the "nicest" to display.
2003-01-03 21:11:23 +00:00
Alasdair Kergon
4e268ceacb
Also lock memory during LV updates.
2003-01-03 21:10:28 +00:00
Alasdair Kergon
4086fb2620
When activating an LV, remove any stray LVM1 /dev nodes and group file.
2003-01-03 13:50:47 +00:00
Alasdair Kergon
8ef2b021ed
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
4c64ed4ced
New column-based reporting tools: lvs, pvs & vgs.
2002-12-12 20:55:49 +00:00
Alasdair Kergon
69e2befd15
Use sync_dir().
2002-12-05 22:56:22 +00:00
Alasdair Kergon
0fc1d0788d
Add sync_dir()
2002-12-05 22:51:15 +00:00
Alasdair Kergon
28879d4174
Fix display alignment of zero.
2002-12-05 22:42:31 +00:00
Alasdair Kergon
8a95d67e26
Maintain snapshot_count correctly.
2002-12-05 22:30:39 +00:00
Alasdair Kergon
a14e14efdd
Keep some ld versions happy.
2002-12-05 22:27:43 +00:00
Alasdair Kergon
a648372757
New devices/types config file entry to add new types of block devices.
2002-12-03 16:20:38 +00:00
Alasdair Kergon
11779747ef
Show PV uuid; single stripe is 'linear'; suppress snapshot fields for origin.
2002-12-03 13:26:17 +00:00
Alasdair Kergon
66a8d8b4b2
Show stripesize in KB.
2002-11-26 21:56:57 +00:00
Alasdair Kergon
22d2827b41
Skip config file reload attempt if no config file location.
2002-11-26 12:14:37 +00:00
Alasdair Kergon
50d7e96c6d
Remove 2 TB LV size restriction message.
2002-11-18 16:21:00 +00:00
Alasdair Kergon
c3aa104a8d
Missing sector->k conversion in "logical volumes cannot be larger than" mesg.
2002-11-18 16:08:45 +00:00
Alasdair Kergon
5a52dca9c2
Some new features.
2002-11-18 14:04:08 +00:00
Alasdair Kergon
d1d9800ef1
Refactoring.
2002-11-18 14:01:16 +00:00
Alasdair Kergon
74b27447c1
A new cache.
2002-11-18 13:53:58 +00:00
Alasdair Kergon
f2187638dc
Don't let LVM2 access a VG if the original LVM driver appears to be using it.
2002-11-01 19:57:25 +00:00
Joe Thornber
6086b60455
o inline _step_matcher
2002-08-29 15:05:16 +00:00
Joe Thornber
22a0881ded
o Anchor support for the regex engine.
2002-08-29 14:46:30 +00:00
Patrick Caulfield
da253e3aac
Remove O_DIRECT as it causes problems with some systems.
...
Harumph.
2002-08-14 14:58:00 +00:00
Joe Thornber
b1545f2985
o Make sure the status parsing code can deal with an empty array.
2002-08-01 12:51:48 +00:00
Joe Thornber
07bb413a8f
o Added new value type CFG_EMPTY_ARRAY, to indicate '[]', useful since we use
...
the arrays to hold a symbolic set of flags.
2002-08-01 12:46:52 +00:00
Joe Thornber
ffa879d092
o 0 was used rather than NULL in a couple of places.
...
o Indent output with tabs rather than single spaces.
2002-08-01 08:22:09 +00:00
Patrick Caulfield
7a0ed4a40c
Rename lock_resource to file_lock_resource to avoid name clashes
2002-07-25 09:04:30 +00:00
Patrick Caulfield
6b3b4a250b
Use O_DIRECT for writing to devices.
...
Doesn't work on HPPA due to a kernel bug but other archs shuld be OK.
2002-07-22 08:10:54 +00:00
Alasdair Kergon
12caf445d4
Remove hard-coded extent_size from snapshot target (field no longer used).
2002-07-17 17:00:54 +00:00
Joe Thornber
7cc602c800
i) Add the VISIBLE flag to the text format. (Other changes are pending
...
for lib/activate.)
2002-07-11 15:28:49 +00:00
Joe Thornber
291906a208
i) Added a little macro to aid defining the status flags.
2002-07-11 14:36:45 +00:00
Joe Thornber
097d49e73d
i) There's now a seperate field in struct logical_volume that stores the
...
allocation policy. This can currently take one of three values:
typedef enum {
ALLOC_NEXT_FREE,
ALLOC_STRICT,
ALLOC_CONTIGUOUS
} alloc_policy_t;
Notice that 'SIMPLE' has turned into the slightly more meaningful NEXT_FREE.
ii) Put code into display.[hc] for converting one of these enums to a
text representation and back again.
ii) Updated the text format so this also has the alloc_policy field.
2002-07-11 14:21:49 +00:00
Alasdair Kergon
407332cb9a
tidy
2002-07-11 14:09:26 +00:00
Alasdair Kergon
48450b8f43
Add get_config_str
2002-07-11 14:07:43 +00:00
Patrick Caulfield
38f3949b25
Don't log an error if we can't write the cache file because the FS is read-only.
...
Gets rid of that annoying error at shutdown.
2002-07-11 09:23:29 +00:00
Alasdair Kergon
48ad31920d
Add --ignorelockingfailure
2002-07-10 20:43:32 +00:00
Alasdair Kergon
0dbd22124b
Merge adjacent "Missing" segments.
2002-07-10 13:54:17 +00:00
Joe Thornber
7df3006c6b
o Add version number to text format.
2002-07-02 18:47:43 +00:00
Patrick Caulfield
b40b90f035
Flush on open as well as close.
2002-06-25 14:02:28 +00:00
Patrick Caulfield
aefa3c6d82
Get rid of compile warnings on 64bit platforms.
2002-06-07 08:37:07 +00:00
Alasdair Kergon
70d6838fb0
Tidy
2002-05-31 19:28:37 +00:00
Alasdair Kergon
61e9603be5
Remember to update VG free_count when reducing size of an LV.
2002-05-30 16:08:19 +00:00
AJ Lewis
fa6a82c9af
o fix changed function names
2002-05-23 14:13:21 +00:00
Alasdair Kergon
5f05971a84
Fix LVM1 backwards compatibility issue when LV with a low LV number is deleted.
2002-05-23 11:37:51 +00:00