Zdeněk Kabeláč
5f1b8f71f3
add simple test for dev node usability (detect devices mounted with nodev)
2008-12-10 16:15:41 +00:00
Dave Wysochanski
cca8bb9092
Add liblvm interactive test infrastructure to build.
2008-12-07 19:37:07 +00:00
Dave Wysochanski
647314d3cc
Make _init_rand() thread safe - use rand_r() instead of rand().
...
Use good entropy for seed value if possible.
2008-12-07 04:27:56 +00:00
Dave Wysochanski
30e6773617
Add generic function to read /dev/urandom, used in uuid calculation.
2008-12-07 04:23:37 +00:00
Dave Wysochanski
08774dc558
Fix test-utils.h for rhel4 backward compatability.
...
for losetup, break out of the loop when successful setup of loop device,
and only look at 7 loop devices (default loop module setting)
for blockdev, use old option if new one is not available
2008-12-05 05:03:23 +00:00
prajnoha
481618826d
Added displayable_lvs_in_vg and lv_is_displayable functions to deal with
...
the counts of visible LVs from user's perspective consistently throughout
the code.
2008-12-04 15:54:26 +00:00
Dave Wysochanski
befcada36a
Fix vgcreate race which could allow two parallel vgcreates to succeed,
...
with the second vgcreate overwriting the first.
Obtain lock before calling vg_create(), which checks for existence of vgname
and fails if it already exists.
2008-12-01 20:14:33 +00:00
Alasdair Kergon
b71bf9332c
Fix uninitialised lv_count in vgdisplay -c
2008-12-01 17:38:35 +00:00
Alasdair Kergon
1303c93139
Suppress 'duplicate PV' message when it's only a cache update not a real
...
duplicate.
2008-11-28 15:51:40 +00:00
Alasdair Kergon
29c8c75492
Don't skip updating pvid hash when lvmcache_info struct got swapped.
2008-11-27 18:13:50 +00:00
Alasdair Kergon
862d83c691
Add tinfo to termcap search path for pld-linux.
2008-11-24 13:33:16 +00:00
Christine Caulfield
f18eeb4da8
Fix a starup race in clvmd that could result in huge waits for the first command to be processed.
2008-11-21 13:48:00 +00:00
Alasdair Kergon
d40fed016f
generate init script
2008-11-19 20:14:24 +00:00
Alasdair Kergon
76dc3ddf56
regenerate
2008-11-19 19:34:32 +00:00
Alasdair Kergon
d80d9a4c4e
Generate clvmd init script at configuration time for Red Hat-based distros.
2008-11-19 19:33:25 +00:00
Alasdair Kergon
281ee1c2bf
post-release (retrospective)
2008-11-19 14:14:51 +00:00
Zdeněk Kabeláč
65e976198e
daemons depends on liblvm2cmd - fixes parallel builds
2008-11-18 13:16:03 +00:00
Zdeněk Kabeláč
a0d668e850
fix missing const char*
2008-11-18 10:13:23 +00:00
Dave Wysochanski
f7d624e684
Fix "lvremove -f vgname" when vgname contains snapshots.
...
Prior to this patch, "lvremove -f vgname" would fail if vgname contained
one or more snapshot LVs. Now this passes, but has a side-effect.
If you issue "lvremove vgname" where vgname contains one or more snaps,
you will get an extra "y/n" prompt to remove the same snapshot.
Example:
$ lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
lvsnap vgtest swi-a- 16.00M lvtest 0.05
lvtest vgtest owi-a- 64.00M
$ lvremove vgtest
Do you really want to remove active logical volume "lvsnap"? [y/n]: n
Logical volume "lvsnap" not removed
Do you really want to remove active logical volume "lvsnap"? [y/n]: n
Logical volume "lvsnap" not removed
Command failed with status code 5.
Fixing this will most likely require modification of the iterator
function, process_each_lvs_in_vg() to iterate over snaps in some
cases (e.g. lvs, vgdisplay -v) but not in others (lvremove).
2008-11-17 18:20:13 +00:00
Alasdair Kergon
f5c395adb2
some makefile fixes for liblvm2cmd & remove some hardcoded .so
2008-11-14 20:59:56 +00:00
Dave Wysochanski
09192b4d6e
More man page cleanup - convert "+/-" to "+|-"
2008-11-12 15:16:58 +00:00
Dave Wysochanski
74ec3783e7
Make man pages consistent with either-or options (use "|" everywhere).
2008-11-12 15:01:35 +00:00
Zdeněk Kabeláč
1c38ce8245
cleaner const char* usage for last_path_component()
2008-11-12 09:53:33 +00:00
Zdeněk Kabeláč
702cfe15be
minor compiler warning fix for function declaration prototype
2008-11-12 09:49:06 +00:00
Zdeněk Kabeláč
54d790828f
removed redundant redeclaration of init_indent() and init_msg_prefix() from lvm-logging.h
2008-11-12 09:41:44 +00:00
Zdeněk Kabeláč
aff35fea29
* minor compilator warning fix for improper function declaration.
2008-11-12 09:30:52 +00:00
Petr Rockai
25a82bcbe3
Add a bunch of sub-tests aimed at testing various bugzillas, by jstava.
2008-11-11 15:46:15 +00:00
Petr Rockai
cb58100587
Import a bunch of new tests by jstava. Mostly everything pass, they however
...
tend to expose the lvremove -ff vg ordering bug.
2008-11-11 15:29:24 +00:00
Alasdair Kergon
9fbe96fd7c
clarify
v2_02_43
old-v2_02_43
2008-11-10 21:26:06 +00:00
Alasdair Kergon
98cd400443
no need for libdevmapper.h on system any more
2008-11-10 21:25:45 +00:00
Petr Rockai
873e699f6d
Include libdm in lcov reports.
2008-11-10 14:04:12 +00:00
Petr Rockai
9a8f6c824f
Fix t-pool-labels to pass again after the vgdisplay error return fix from
...
last Friday.
2008-11-10 13:44:01 +00:00
Milan Broz
a98888ad07
Fix lvm2.static build.
2008-11-10 13:41:43 +00:00
Petr Rockai
db98500b72
Minor code and documentation cleanups and changes by jstava.
2008-11-10 12:43:35 +00:00
Petr Rockai
3feee09cfe
add bz264241 check
...
remove lvconvert progress notifications (-i100)
(by jstava)
2008-11-10 12:41:52 +00:00
Alasdair Kergon
4a1cd0d391
First test release of the merged code base.
2008-11-10 12:39:50 +00:00
Petr Rockai
edb5071d3b
bz429342 lvcreate --nosync
...
bz192865 lvconvert logtype of an inactive mirror lv
(both by jstava)
2008-11-10 12:37:53 +00:00
Petr Rockai
e9509aa5e6
Add bz186013 check -- lvcreate rejects an invalid regionsize (jstava).
2008-11-10 12:37:03 +00:00
Petr Rockai
5e6ca1b72d
Use separate locking directory for each of the tests, as they never share a
...
volume group, or physical devices for that matter. Hopefully fixes occasional
test errors due to locking failures. Patch by jstava.
2008-11-10 12:36:23 +00:00
Petr Rockai
543bf2ffbd
Explicitly check after lvremove -ff vg that it did its job. By jstava.
2008-11-10 12:32:00 +00:00
Dave Wysochanski
15a7a4c38b
Fix lvhange and lvcreate man pages to properly describe permissions option.
...
James Youngman <jay@gnu.org>
2008-11-07 19:23:52 +00:00
Dave Wysochanski
640d07bf35
Fix vgdisplay return code and exit status.
2008-11-07 19:02:47 +00:00
Petr Rockai
e5ecc2b942
Set LD_LIBRARY_PATH in init.sh, as it is required to run dmsetup now as well,
...
which otherwise picks up the system version of libdevmapper, which is a pretty
bad idea.
2008-11-07 01:30:03 +00:00
Alasdair Kergon
cfd8fe40f4
quick review of docs
...
Note that we'll continue to use WHATS_NEW_DM for device-mapper changes
until we can switch to unified version numbering.
2008-11-04 17:49:22 +00:00
Alasdair Kergon
abba6e0642
make install_device-mapper
2008-11-04 17:25:32 +00:00
Alasdair Kergon
ec94fb89a2
clvmd
2008-11-04 16:41:47 +00:00
Alasdair Kergon
bb167efa7b
dmeventd
2008-11-04 15:55:27 +00:00
Alasdair Kergon
2a550ef96d
more fixes
2008-11-04 15:07:45 +00:00
Alasdair Kergon
03ed7d73fc
more missing bits
2008-11-04 14:57:06 +00:00
Petr Rockai
446852db3b
Fix typo.
2008-11-04 14:38:53 +00:00