Alasdair Kergon
1d4e9f245b
fix
2007-11-30 16:44:42 +00:00
Alasdair Kergon
e81af2f3fe
readahead support completed - untested
2007-11-30 16:42:26 +00:00
Alasdair Kergon
2d1eead2e8
read_ahead node ops
2007-11-30 14:59:57 +00:00
Alasdair Kergon
69506f1dc4
uncomment libdevmapper readahead calls
2007-11-29 15:04:12 +00:00
Alasdair Kergon
ca592a2745
refine specification of dmsetup readahead
2007-11-29 14:44:28 +00:00
Alasdair Kergon
52b8440916
add read_ahead functions to library and dmsetup --readahead
...
(Not live yet.)
2007-11-27 20:57:05 +00:00
Petr Rockai
cd1a7e80c0
Fix a possible double-free in libdevmapper-event.
2007-11-27 12:26:06 +00:00
Alasdair Kergon
940d710ece
drop mirrored_pv/mirrored_pe from alloc handle
2007-11-22 14:54:35 +00:00
Alasdair Kergon
3da4613d7b
Start refactoring pvmove allocation code.
2007-11-22 13:57:21 +00:00
Alasdair Kergon
94e33a6ca3
FIXMEs for case where dm itself has device open
2007-11-22 01:25:06 +00:00
Alasdair Kergon
cd1525ac51
note pvmove breakage
2007-11-19 18:24:08 +00:00
Alasdair Kergon
3e50ea9eef
Decode cluster locking state in log message. (untested)
...
Change file locking state messages from debug to very verbose.
2007-11-16 21:16:20 +00:00
Alasdair Kergon
a68d8ec833
move pvresize_single back under tools
2007-11-15 22:11:18 +00:00
Alasdair Kergon
b6f4f0c748
Fix --addtag to drop @ prefix from name
2007-11-15 21:59:11 +00:00
Alasdair Kergon
57d921e953
more vg_read lock fixes
2007-11-15 21:30:52 +00:00
Patrick Caulfield
37034fb826
If the pre_command fails then go back and wait patiently for the next
...
pre function rather than retrying it until we get stuck!
2007-11-15 10:16:14 +00:00
Alasdair Kergon
c6f8ef3814
define LCK_NONE for cases when vg_lock_and_read already holds lock
...
(temporary - library will use internal ref counting instead)
2007-11-15 02:55:22 +00:00
Alasdair Kergon
fed2f391ff
another vg_lock_and_read
2007-11-15 02:53:49 +00:00
Alasdair Kergon
e5f7352bef
Convert some vg_reads into vg_lock_and_reads
2007-11-15 02:20:03 +00:00
Alasdair Kergon
223c62e7b7
Avoid nested vg_reads when processing PVs in VGs and fix associated locking.
2007-11-14 18:41:05 +00:00
Patrick Caulfield
96b250d625
Make it compile with new lv_info_by_lvid() prototype
2007-11-14 13:37:51 +00:00
Alasdair Kergon
204a12e594
Accept sizes with --readahead argument.
...
Store size arguments as sectors internally.
2007-11-14 00:08:25 +00:00
Alasdair Kergon
9a17ce30a0
fix precedence
2007-11-12 21:50:21 +00:00
Alasdair Kergon
a6b22cf317
readahead activation code (but no dm support yet)
2007-11-12 20:51:54 +00:00
Alasdair Kergon
6dd60469ba
Add DM_READ_AHEAD_MINIMUM_FLAG
2007-11-12 20:47:18 +00:00
Dave Wysochanski
6c3dc20388
Fix compile warnings / minor errors introduced recently.
2007-11-12 20:02:55 +00:00
Alasdair Kergon
46355000d1
Remove new mirror logs when creation fails.
2007-11-12 14:36:57 +00:00
Alasdair Kergon
df322f0ba1
Attempt to remove incomplete LVs with lvcreate zeroing/activation problems.
2007-11-12 13:34:14 +00:00
Alasdair Kergon
14772580cd
Define DM_READ_AHEAD_AUTO and DM_READ_AHEAD_NONE.
2007-11-09 16:52:36 +00:00
Alasdair Kergon
b4068515e8
Enhance the management of readahead settings.
2007-11-09 16:51:54 +00:00
Alasdair Kergon
19c865437a
Prevent lvconvert -s from using same LV as origin and snapshot.
2007-11-07 16:33:12 +00:00
Alasdair Kergon
00a7c302ea
Add pv_mda_free and vg_mda_free fields to reports for raw text format.
2007-11-05 17:17:55 +00:00
Alasdair Kergon
40ec927b3f
attempt to fix human-readable unit output when number of sectors is odd
2007-11-05 17:13:54 +00:00
Alasdair Kergon
180b4569e2
fix inverted orphan test
2007-11-05 17:12:50 +00:00
Alasdair Kergon
1f2ed21dde
adjust sizes for metadata
2007-11-05 02:10:39 +00:00
Alasdair Kergon
fd4ff5d201
Show 'not usable' space when PV is too large for device in pvdisplay.
...
Ignore and fix up any excessive device size found in metadata.
2007-11-05 01:47:49 +00:00
Alasdair Kergon
2b0249ec42
Add LVM2 version to 'Generated by' comment in metadata.
2007-11-04 19:16:34 +00:00
Alasdair Kergon
b7940c98c1
fix new lvremove checks - mustn't fail when activation is disabled
2007-11-04 16:28:57 +00:00
Alasdair Kergon
612548c04d
Fix error message when fixing up PV size in lvm2 metadata (2.02.11).
2007-11-04 15:43:50 +00:00
Alasdair Kergon
d38bf3616c
Fix orphan-related locking in pvdisplay and pvs.
...
Fix missing VG unlocks in some pvchange error paths.
Add some missing validation of VG names.
Rename validate_vg_name() to validate_new_vg_name().
Change orphan lock to VG_ORPHANS.
Change format1 to use ORPHAN as orphan VG name.
2007-11-02 20:40:05 +00:00
Bryn M. Reeves
9c1dbeb3f1
Convert pvchange, pvdisplay, pvscan to use is_orphan()
2007-11-02 14:54:40 +00:00
Bryn M. Reeves
8b98c12815
Add is_orphan_vg() and change all hardcoded checks to use it.
2007-11-02 13:06:42 +00:00
Alasdair Kergon
e1d586d70e
explanation of md superblock location & avoid compilation warnings
2007-10-24 11:24:24 +00:00
Alasdair Kergon
47c06763b7
Detect md superblocks version 1.0, 1.1 and 1.2.
2007-10-24 00:51:05 +00:00
Alasdair Kergon
951e1064c9
refactor dev-md.c, separating out the magic number detection
2007-10-24 00:30:30 +00:00
Dave Wysochanski
0f8387c2d6
Remove comment about allocation of pv->vg_name.
2007-10-12 21:08:38 +00:00
Dave Wysochanski
0283c439ec
Add _alloc_pv() and _free_pv() from _pv_create() code and fix error paths.
...
Modified original patch by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
2007-10-12 18:37:19 +00:00
Dave Wysochanski
1b8de4cb25
Add pv_dev_name() to access PV device name.
...
Patch by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
2007-10-12 14:29:32 +00:00
Dave Wysochanski
70d9f98ed3
Accessor functions for PV will not modify the given PV.
...
So we can add 'const' to it.
Patch by Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
2007-10-12 14:08:10 +00:00
Dave Wysochanski
9ea1d647af
Non-functional change - refactor lv_create_empty().
...
Remove struct format_instance param - we can safely obtain
this from vg->fid inside the function.
2007-10-11 19:20:38 +00:00