]> sourceware.org Git - lvm2.git/log
lvm2.git
12 years agoCheck all tags and LV names are in a valid form in vg_validate.
Alasdair Kergon [Thu, 23 Feb 2012 00:11:01 +0000 (00:11 +0000)]
Check all tags and LV names are in a valid form in vg_validate.

12 years agoAdd lvm2 tmpfiles.d configuration file.
Peter Rajnoha [Wed, 22 Feb 2012 18:02:31 +0000 (18:02 +0000)]
Add lvm2 tmpfiles.d configuration file.

12 years agoAdd configure --with-tmpfilesdir and lvm2 tmpfiles.d configuration file itself.
Peter Rajnoha [Wed, 22 Feb 2012 17:55:10 +0000 (17:55 +0000)]
Add configure --with-tmpfilesdir and lvm2 tmpfiles.d configuration file itself.

/etc/tmpfiles.d directory holds configuration files for temporary/volatile
files and directories that should be automatically managed. For example,
if we have some parts of the fs hierarchy on tmpfs, we'd like to recreate
some files or directories on every boot so they're always prepared for use.

Systemd can read such configuration files. For now, the lock and run directory
are the ones that are most probably placed on tmpfs. If this is the case, we
can install the configuration by 'make install_tmpfiles_configuration'.

12 years agoAllow 'lvconvert --repair' to operate on RAID 4/5/6.
Jonathan Earl Brassow [Wed, 22 Feb 2012 17:18:49 +0000 (17:18 +0000)]
Allow 'lvconvert --repair' to operate on RAID 4/5/6.

The higher level RAIDs should be allowed for repair along with 'mirror' and
'raid1' segment types.

12 years ago*** empty log message ***
Jonathan Earl Brassow [Wed, 22 Feb 2012 17:14:38 +0000 (17:14 +0000)]
*** empty log message ***

12 years agoAdd some messages that indicate completion of RAID device replacement.
Jonathan Earl Brassow [Wed, 22 Feb 2012 16:03:55 +0000 (16:03 +0000)]
Add some messages that indicate completion of RAID device replacement.

There were no messages printed upon completiion of RAID device replacement.
This could cause confusion/concern during automated recovery, because the
user sees the failure messages but no other messages indicating correction.

12 years agoFix a bad return code in 'lvconvert_raid'
Jonathan Earl Brassow [Wed, 22 Feb 2012 15:20:50 +0000 (15:20 +0000)]
Fix a bad return code in 'lvconvert_raid'

Functions at this level do return 0 or 1, not ECMD_* values.

12 years agoTweak lvmetad a bit more:
Petr Rockai [Tue, 21 Feb 2012 09:19:08 +0000 (09:19 +0000)]
Tweak lvmetad a bit more:
- allow at most one PV on any given device
- allow PV lookup by device
- merge the pvmeta info into VG metadata when responding to vg_lookup

12 years agopost-release
Alasdair Kergon [Mon, 20 Feb 2012 21:11:06 +0000 (21:11 +0000)]
post-release

12 years agoCall built-in blkid conditionaly (udev version >= 176), call standard blkid
Peter Rajnoha [Mon, 20 Feb 2012 19:38:40 +0000 (19:38 +0000)]
Call built-in blkid conditionaly (udev version >= 176), call standard blkid
with full path otherwise.

12 years agopre-release
Alasdair Kergon [Mon, 20 Feb 2012 19:38:19 +0000 (19:38 +0000)]
pre-release

12 years agoCheck whether udev supports built-in blkid.
Peter Rajnoha [Mon, 20 Feb 2012 19:36:27 +0000 (19:36 +0000)]
Check whether udev supports built-in blkid.

Built-in blkid is supported since udev v176 - set the UDEV_HAS_BUILTIN_BLKID
variable appropriately so we can use it in the rules to call the built-in
blkid conditionaly.

12 years agoSwitch to using built-in blkid in 13-dm-disk.rules.
Peter Rajnoha [Thu, 16 Feb 2012 14:39:02 +0000 (14:39 +0000)]
Switch to using built-in blkid in 13-dm-disk.rules.

Available in udev since version 176.

12 years agoDrop the now-redundant pvid_to_status hash.
Petr Rockai [Wed, 15 Feb 2012 17:37:09 +0000 (17:37 +0000)]
Drop the now-redundant pvid_to_status hash.

12 years agoUpdate lvmetad: use device major/minor pair to track devices. Keep a pvmeta
Petr Rockai [Wed, 15 Feb 2012 17:30:07 +0000 (17:30 +0000)]
Update lvmetad: use device major/minor pair to track devices. Keep a pvmeta
config tree per PV which is mostly provided by the client, so it can be used to
keep track of things like label_sector, PV format, mda count / offsets and so
on.

12 years agoInitialize dmeventd monitoring for every command
Zdenek Kabelac [Wed, 15 Feb 2012 15:18:43 +0000 (15:18 +0000)]
Initialize dmeventd monitoring for every command

Read lvm.conf setting for monitoring for each command. So we should not
activate monitoring if the default compilation is set to monitor during
lvconvert commnads.

Patch also removes check for  clustered VG and allows to disable monitoring
for clustered VG with the assumption, the problem with monitoring and dmeventd
flag passing for INGNORE is already fixed.

12 years agotypo
Peter Rajnoha [Wed, 15 Feb 2012 15:10:31 +0000 (15:10 +0000)]
typo

12 years agoAdd watch rule to 13-dm-disk.rules.
Peter Rajnoha [Wed, 15 Feb 2012 14:50:33 +0000 (14:50 +0000)]
Add watch rule to 13-dm-disk.rules.

We don't have anything better yet...

The problems the watch rule caused when removing devices should be covered
now with the "retry remove" logic. It's also better to have this maintained
by us, rather than having this rule anywhere else without proper control.

12 years agoSimplify with dm_strdup
Zdenek Kabelac [Wed, 15 Feb 2012 14:27:53 +0000 (14:27 +0000)]
Simplify with dm_strdup

12 years agoRun tests with lvmetad if we have it.
Petr Rockai [Wed, 15 Feb 2012 14:24:31 +0000 (14:24 +0000)]
Run tests with lvmetad if we have it.

12 years agoFix segfault in dmsetup when using table specification with --table.
Peter Rajnoha [Wed, 15 Feb 2012 14:20:59 +0000 (14:20 +0000)]
Fix segfault in dmsetup when using table specification with --table.

Segfault introduced with the patch that added dm_free(_table) at the
end of dmsetup (in this release).

12 years ago(lvmetad) Remove unused variable.
Petr Rockai [Wed, 15 Feb 2012 14:15:50 +0000 (14:15 +0000)]
(lvmetad) Remove unused variable.

12 years agoIn lvmetad, also nuke VGs when all their PVs are stolen by another VG (vgmerge
Petr Rockai [Wed, 15 Feb 2012 14:06:48 +0000 (14:06 +0000)]
In lvmetad, also nuke VGs when all their PVs are stolen by another VG (vgmerge
& vgsplit do this).

12 years agoDetect failing fifo
Zdenek Kabelac [Wed, 15 Feb 2012 13:56:47 +0000 (13:56 +0000)]
Detect failing fifo

If the fifo died because of dmeventd restart - do not wait for 20s
in select  - it will not get better and return error immediately.

12 years agoDeal with slower test processing
Zdenek Kabelac [Wed, 15 Feb 2012 13:51:17 +0000 (13:51 +0000)]
Deal with slower test processing

If the merge was faster then query - deal with it and pass the test.

12 years agoInitialize monitoring support only for thin pools
Zdenek Kabelac [Wed, 15 Feb 2012 13:49:51 +0000 (13:49 +0000)]
Initialize monitoring support only for thin pools

12 years agoUpdate cut&paste error message
Zdenek Kabelac [Wed, 15 Feb 2012 13:46:54 +0000 (13:46 +0000)]
Update cut&paste error message

12 years agoTurn a warning to an error in vgreduce --removemissing, since we exit with a
Petr Rockai [Wed, 15 Feb 2012 12:30:46 +0000 (12:30 +0000)]
Turn a warning to an error in vgreduce --removemissing, since we exit with a
failure status there.

12 years agoAdd dmsetup manpage entries for mangle command and --manglename option.
Peter Rajnoha [Wed, 15 Feb 2012 12:25:23 +0000 (12:25 +0000)]
Add dmsetup manpage entries for mangle command and --manglename option.

12 years agoAdd DM_DEFAULT_NAME_MANGLING_MODE env. variable to override configured value.
Peter Rajnoha [Wed, 15 Feb 2012 12:23:15 +0000 (12:23 +0000)]
Add DM_DEFAULT_NAME_MANGLING_MODE env. variable to override configured value.

Just in case of emergency when name mangling code causes any problems so
we can override the default value and switch off the mangling globally.

12 years agoReplace any '\' char with '\\' in table specification on input.
Peter Rajnoha [Wed, 15 Feb 2012 12:17:34 +0000 (12:17 +0000)]
Replace any '\' char with '\\' in table specification on input.

Device-mapper in kernel uses '\' as escape character so it's better
to double it to avoid any confusion when using existing device names
with '\' in the table specification.

For example:

dmsetup create x --table "0 8 linear /dev/mapper/a\x20b 0"

should pass just fine now without a need to explicitly escape the '\' char
like this:

dmsetup create x --table "0 8 linear /dev/mapper/a\\x20b 0"

12 years agoAdd mangle command to dmsetup to provide renaming to correct mangled form.
Peter Rajnoha [Wed, 15 Feb 2012 12:08:57 +0000 (12:08 +0000)]
Add mangle command to dmsetup to provide renaming to correct mangled form.

12 years agoAdd 'mangled_name' and 'unmangled_name' fields to dmsetup info -c -o.
Peter Rajnoha [Wed, 15 Feb 2012 12:06:17 +0000 (12:06 +0000)]
Add 'mangled_name' and 'unmangled_name' fields to dmsetup info -c -o.

12 years agoAdd --manglename option to dmsetup to select the name mangling mode.
Peter Rajnoha [Wed, 15 Feb 2012 12:02:58 +0000 (12:02 +0000)]
Add --manglename option to dmsetup to select the name mangling mode.

12 years agoUnamngle dm device name list automatically on ioctl return.
Peter Rajnoha [Wed, 15 Feb 2012 12:01:28 +0000 (12:01 +0000)]
Unamngle dm device name list automatically on ioctl return.

If dm_task_get_name or dm_task_get_names gets called, these will return
unmangled form of the names so the name mangling stays totally transparent
to any libdevmapper user (unless DM_STRING_MANGLING_NONE is used in which
case the name is not touched and it is is returned as it is in kernel).

For example:

dmsetup create "a b" - will create a\x20b device in kernel and so udev will
create /dev/mapper/a\x20b

dm_task_get_name/names will still return "a b"

In AUTO mode, the libdevmapper user can still query the device by using
the mangled ("a\x20b") or unmangled form of the name when calling dm_task_set_name.
If mangled name is provided, it's detected and the name is kept as it is.
If unmangled name is provided, it will be mangled. IOW in AUTO mode it's
totally transparent and it should not require any changes in the code
using libdevmapper.

However, any libdevmapper user must be aware of the fact that the mangled form
of the name appears in /dev/mapper (udev just can't deal with those blacklisted
characters).

12 years agolvmetad server-side update:
Petr Rockai [Wed, 15 Feb 2012 11:43:06 +0000 (11:43 +0000)]
lvmetad server-side update:
- rename the hashes to be explicit about the mapping
- add VG/PV listing calls to the protocol
- cache slightly more of the per-PV state
- filter cached metadata
- compare the metadata upon metadata_update

12 years agoAdd dm_task_get_name_mangled/unmangled to libdevmapper.
Peter Rajnoha [Wed, 15 Feb 2012 11:39:38 +0000 (11:39 +0000)]
Add dm_task_get_name_mangled/unmangled to libdevmapper.

dm_task_get_name_mangled will always return mangled form of the name while
the dm_task_get_name_unmangled will always return unmangled form of the name
irrespective of the global setting (dm_set/get_name_mangling_mode).

This is handy in situations where we need to detect whether the name is already
mangled or not. Also display functions make use of it.

12 years agoAdd DEV_NAME macro.
Peter Rajnoha [Wed, 15 Feb 2012 11:33:53 +0000 (11:33 +0000)]
Add DEV_NAME macro.

Use the DEV_NAME macro to use the mangled form of the name if present,
use normal name otherwise (we store both forms - mangled and unmangled in
struct dm_task). Mangled form should be always preferred over unmangled
with the exception of the situations where we divide one task into several
others (like "create and load") - we need to avoid mangling the name twice
(because of multiple dm_task_set_name calls)!

12 years agoMangle device name on dm_task_set_name/newname call if necessary.
Peter Rajnoha [Wed, 15 Feb 2012 11:27:01 +0000 (11:27 +0000)]
Mangle device name on dm_task_set_name/newname call if necessary.

If dm_task_set_name/newname is called, the name provided will be
automatically translated to correct encoded form with the hex enconding
so any character not on udev whitelist will be mangled with \xNN
format where NN is hex value of the character used.

By default, the name mangling mode used is the one set during
configure with the '--with-default-name-mangling' option.

12 years agoautoreconf
Peter Rajnoha [Wed, 15 Feb 2012 11:20:12 +0000 (11:20 +0000)]
autoreconf

12 years agoAdd configure --with-default-name-mangling.
Peter Rajnoha [Wed, 15 Feb 2012 11:17:57 +0000 (11:17 +0000)]
Add configure --with-default-name-mangling.

This option configures the default name mangling mode used, one of:
AUTO, NONE and HEX.

The name mangling is primarily used to support udev character whitelist
(0-9, A-Z, a-z, #*-.:=@_) so any character that is not on udev whitelist
will get translated into an encoded form \xNN where NN is the hex value
of the character.

12 years agoDo not forget to initialise the error value in daemon_reply.
Petr Rockai [Wed, 15 Feb 2012 09:14:54 +0000 (09:14 +0000)]
Do not forget to initialise the error value in daemon_reply.

12 years agoFix pool names of the format1/format_pool orphan VGs.
Petr Rockai [Wed, 15 Feb 2012 01:44:58 +0000 (01:44 +0000)]
Fix pool names of the format1/format_pool orphan VGs.

12 years agoIn the test harness, do the back-substitution (@TESTDIR@, @PREFIX@) also on the
Petr Rockai [Wed, 15 Feb 2012 01:31:10 +0000 (01:31 +0000)]
In the test harness, do the back-substitution (@TESTDIR@, @PREFIX@) also on the
live VERBOSE output, not just the post-mortem dumps.

12 years agoMake conversion from a synced 'mirror' to 'raid1' not cause a full resync.
Jonathan Earl Brassow [Mon, 13 Feb 2012 20:13:39 +0000 (20:13 +0000)]
Make conversion from a synced 'mirror' to 'raid1' not cause a full resync.

It was not possible to pass down the DM_[FORCE|NO]SYNC flags to
'dm_tree_node_add_raid_target'.  This meant that converting to 'raid1' from
'mirror' would cause a full resync.  (It also meant that '--nosync' was
ineffective when creating a 'raid1' LV.)

I've taken the 'reserved' parameter in 'dm_tree_node_add_raid_target' and
used it for the "flags" parameter.  Now it is possible to pass the sync
flags and any other flags that may come up.

12 years agoChange confusing message that is printed when a RAID device fails.
Jonathan Earl Brassow [Mon, 13 Feb 2012 18:38:36 +0000 (18:38 +0000)]
Change confusing message that is printed when a RAID device fails.

s/Issue/Use/, otherwise it is easy to misread "Issue" as "Issuing" - causing
the user confusion as to whether the action was performed automatically or
whether they need to issue the command.

12 years agoFix possible NULL pointer dereferences when updating mirror log.
Jonathan Earl Brassow [Mon, 13 Feb 2012 18:36:55 +0000 (18:36 +0000)]
Fix possible NULL pointer dereferences when updating mirror log.

'_lv_update_log_type' takes a lvconvert_params argument so that it can pass
down the user's preference of 'region_size' and allocation_policy.  When
'mirror_remove_missing' was introduced (commit ID
95986e42a18ca98c9b1d777346978b7297c85558) it didn't make sense to pass down
user preferences - so NULL was given instead.  While it may never happen in
practice, static analysis reveals that this argument could be dereferenced.
So, if the user preferences were not passed in, glean the necessary fields
from what is already set in the LV.

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
(Not updating WHATSNEW for this simple clean-up.)

12 years agoFix bug that caused RAID devices to be unable to activate if sub-LV was missing.
Jonathan Earl Brassow [Mon, 13 Feb 2012 17:59:21 +0000 (17:59 +0000)]
Fix bug that caused RAID devices to be unable to activate if sub-LV was missing.

Commit 02f6f4902fd90709f55e2e97e969ee28c2945c81 introduced a bug that caused
RAID devices to fail to activate if the device for a single sub-LV failed.
The special case of LVM mirror was handled, but not LVM RAID.
EXAMPLE:
[root@bp-01 ~]# devices vg
  LV            Copy%  Devices
  lv            100.00 lv_rimage_0(0),lv_rimage_1(0)
  [lv_rimage_0]        /dev/sde1(1)
  [lv_rimage_1]        /dev/sdh1(1)
  [lv_rmeta_0]         /dev/sde1(0)
  [lv_rmeta_1]         /dev/sdh1(0)
[root@bp-01 ~]# vgchange -an vg
  0 logical volume(s) in volume group "vg" now active
[root@bp-01 ~]# off.sh sdh
Turning off sdh
[root@bp-01 ~]# vgchange -ay vg --partial
  Partial mode. Incomplete logical volumes will be processed.
  Couldn't find device with uuid fbI0YO-GX7x-firU-Vy5o-vzwx-vAKZ-feRxfF.
  Cannot activate vg/lv_rimage_1: all segments missing.
  0 logical volume(s) in volume group "vg" now active

AFTER this patch:
[root@bp-01 ~]# vgchange -ay vg --partial
  Partial mode. Incomplete logical volumes will be processed.
  Couldn't find device with uuid fbI0YO-GX7x-firU-Vy5o-vzwx-vAKZ-feRxfF.
  1 logical volume(s) in volume group "vg" now active
[root@bp-01 ~]# devices vg
  Couldn't find device with uuid fbI0YO-GX7x-firU-Vy5o-vzwx-vAKZ-feRxfF.
  LV            Copy%  Devices
  lv            100.00 lv_rimage_0(0),lv_rimage_1(0)
  [lv_rimage_0]        /dev/sde1(1)
  [lv_rimage_1]        unknown device(1)
  [lv_rmeta_0]         /dev/sde1(0)
  [lv_rmeta_1]         unknown device(0)
[root@bp-01 ~]# dmsetup table vg-lv; dmsetup status vg-lv
1024000 raid raid1 3 0 region_size 1024 2 253:2 253:3 - -
1024000 raid raid1 2 AD 1024000/1024000

No WHATSNEW update necessary because this is an intrarelease fix.

 brassow

12 years agoSuperfluous '/' in systemd_dir path.
Peter Rajnoha [Mon, 13 Feb 2012 17:31:14 +0000 (17:31 +0000)]
Superfluous '/' in systemd_dir path.

12 years agoFix missing temp_buf init for error path
Zdenek Kabelac [Mon, 13 Feb 2012 14:39:24 +0000 (14:39 +0000)]
Fix missing temp_buf init for error path

In previous commit this was missing, also deallocate in reversed order.

12 years agoAdd internal error to guard vgname2 NULL dereference
Zdenek Kabelac [Mon, 13 Feb 2012 14:26:15 +0000 (14:26 +0000)]
Add internal error to guard vgname2 NULL dereference

12 years agoAdd some FIXME around allocation code
Zdenek Kabelac [Mon, 13 Feb 2012 14:25:14 +0000 (14:25 +0000)]
Add some FIXME around allocation code

Remove also unreachable break..

12 years agoNever try to test character past given buffer
Zdenek Kabelac [Mon, 13 Feb 2012 14:23:40 +0000 (14:23 +0000)]
Never try to test character past given buffer

In case units[0] would be already '\0', do not check units[1].

12 years agoMake sure dereferenced words[0] and words[1] are defined
Zdenek Kabelac [Mon, 13 Feb 2012 14:17:04 +0000 (14:17 +0000)]
Make sure dereferenced words[0] and words[1] are defined

12 years agoAdd configure --with-systemdsystemunitdir.
Peter Rajnoha [Mon, 13 Feb 2012 13:02:47 +0000 (13:02 +0000)]
Add configure --with-systemdsystemunitdir.

12 years agoHandle all succefull values from open()
Zdenek Kabelac [Mon, 13 Feb 2012 12:07:51 +0000 (12:07 +0000)]
Handle all succefull values from open()

12 years agoEnsure allocated device does not leak on error path
Zdenek Kabelac [Mon, 13 Feb 2012 12:06:39 +0000 (12:06 +0000)]
Ensure allocated device does not leak on error path

For unimplementd canonicalize_file_name set to NULL

12 years agoAdd internal error for unsupported code paths
Zdenek Kabelac [Mon, 13 Feb 2012 11:25:56 +0000 (11:25 +0000)]
Add internal error for unsupported code paths

Patch mainly helps static analyzers to better work with code paths
lvm code should never trigger.

12 years agoCheck for missing reply_uuid
Zdenek Kabelac [Mon, 13 Feb 2012 11:24:09 +0000 (11:24 +0000)]
Check for missing reply_uuid

12 years agoCheck for allocation failure
Zdenek Kabelac [Mon, 13 Feb 2012 11:18:45 +0000 (11:18 +0000)]
Check for allocation failure

12 years agoAdd check for allocation failure
Zdenek Kabelac [Mon, 13 Feb 2012 11:16:42 +0000 (11:16 +0000)]
Add check for allocation failure

12 years agoAdd few missing allocation failures tests
Zdenek Kabelac [Mon, 13 Feb 2012 11:13:44 +0000 (11:13 +0000)]
Add few missing allocation failures tests

12 years agoAdd check for rimage name allocation failure
Zdenek Kabelac [Mon, 13 Feb 2012 11:10:37 +0000 (11:10 +0000)]
Add check for rimage name allocation failure

12 years agoAdd check for mda_copy failure
Zdenek Kabelac [Mon, 13 Feb 2012 11:09:25 +0000 (11:09 +0000)]
Add check for mda_copy failure

12 years agoAdd check for failure
Zdenek Kabelac [Mon, 13 Feb 2012 11:07:55 +0000 (11:07 +0000)]
Add check for failure

12 years agoAdd free_orphan_vg
Zdenek Kabelac [Mon, 13 Feb 2012 11:03:59 +0000 (11:03 +0000)]
Add free_orphan_vg

Move commod code to destroy orphan VG into free_orphan_vg() function.
Use orphan vgmem for creation of PV lists.
Remove some free_pv_fid() calls (FIXME: check all of them)
FIXME: Check whether we could merge release_vg back again for all VGs.

12 years agoIf the same fid is already same avoid ref_counting
Zdenek Kabelac [Mon, 13 Feb 2012 11:01:34 +0000 (11:01 +0000)]
If the same fid is already same avoid ref_counting

12 years agoAdd missing test for failure of lvmcache_foreach_pv
Zdenek Kabelac [Mon, 13 Feb 2012 10:58:20 +0000 (10:58 +0000)]
Add missing test for failure of lvmcache_foreach_pv

12 years agoClean error paths for format instance
Zdenek Kabelac [Mon, 13 Feb 2012 10:56:31 +0000 (10:56 +0000)]
Clean error paths for format instance

With updated orphan VG code this code needed some updates.
Add missing log_error for allocation failures.

12 years agoRelease_vg instead of plain free in error path
Zdenek Kabelac [Mon, 13 Feb 2012 10:53:31 +0000 (10:53 +0000)]
Release_vg instead of plain free in error path

12 years agoLog error reporting for failing _alloc_pv
Zdenek Kabelac [Mon, 13 Feb 2012 10:51:52 +0000 (10:51 +0000)]
Log error reporting for failing _alloc_pv

Drop unneeded zeroing of zalloced memory region.

12 years agoDo not write to -1 buffer address
Zdenek Kabelac [Mon, 13 Feb 2012 10:49:28 +0000 (10:49 +0000)]
Do not write to -1 buffer address

In case of zero bytes would be read from sysfs, it would store '\0' on
temp_buf[-1] address.

Simplify some buffer length calculation and use strcpy if we've just
checked string fits in give buffer.

Replace jump label error: with bad: commonly used in libdm.

12 years agoRemove duplicit test
Zdenek Kabelac [Mon, 13 Feb 2012 10:45:26 +0000 (10:45 +0000)]
Remove duplicit test

When it's space it's also not a '\0'.

12 years agoUpdate autoconf.
Milan Broz [Mon, 13 Feb 2012 07:30:24 +0000 (07:30 +0000)]
Update autoconf.

12 years agoIn the new corosync world, dlm is a standalone service.
Fabio M. Di Nitto [Mon, 13 Feb 2012 05:24:57 +0000 (05:24 +0000)]
In the new corosync world, dlm is a standalone service.

Fix clvmd init script to Require dlm service when building for the
new corosync or clvmd will fail to start.

12 years agopost-release
Alasdair Kergon [Mon, 13 Feb 2012 00:23:21 +0000 (00:23 +0000)]
post-release

12 years agopre-release v2_02_91
Alasdair Kergon [Sun, 12 Feb 2012 23:02:52 +0000 (23:02 +0000)]
pre-release

12 years agoFMT_INSTANCE_VG is redundant now
Alasdair Kergon [Sun, 12 Feb 2012 23:01:19 +0000 (23:01 +0000)]
FMT_INSTANCE_VG is redundant now

12 years agoFMT_INSTANCE_PV is no longer used
Alasdair Kergon [Sun, 12 Feb 2012 22:37:24 +0000 (22:37 +0000)]
FMT_INSTANCE_PV is no longer used

12 years agouse stack consistently if 0 is considered an error
Alasdair Kergon [Sun, 12 Feb 2012 21:42:43 +0000 (21:42 +0000)]
use stack consistently if 0 is considered an error

12 years agomissing error mesg
Alasdair Kergon [Sun, 12 Feb 2012 21:37:03 +0000 (21:37 +0000)]
missing error mesg

12 years agoremove unused bits after fid changes
Alasdair Kergon [Sun, 12 Feb 2012 20:19:39 +0000 (20:19 +0000)]
remove unused bits after fid changes

12 years agogive standard error message if lstat fails unexpectedly
Alasdair Kergon [Sun, 12 Feb 2012 20:17:12 +0000 (20:17 +0000)]
give standard error message if lstat fails unexpectedly

12 years agoFix message check
Zdenek Kabelac [Fri, 10 Feb 2012 15:17:52 +0000 (15:17 +0000)]
Fix message check

Check pointer from strchr for NULL instead of crash later.
Badly formated message would have crash dmeventd otherwise.

12 years agoCheck for deps pointer before dererence
Zdenek Kabelac [Fri, 10 Feb 2012 14:48:28 +0000 (14:48 +0000)]
Check for deps pointer before dererence

As _deps() call may return NULL - check for it.

12 years agoAdd validation of name and uuid
Zdenek Kabelac [Fri, 10 Feb 2012 14:42:28 +0000 (14:42 +0000)]
Add validation of name and uuid

Do not accept NULL pointers.

12 years agoDo not crash for NULL sort_key
Zdenek Kabelac [Fri, 10 Feb 2012 14:00:07 +0000 (14:00 +0000)]
Do not crash for NULL sort_key

Guard against NULL pointer for sort_key and let it behave like an empty
string would have been passed in (i.e. no key).

12 years agoReturn error for failing allocation
Zdenek Kabelac [Fri, 10 Feb 2012 13:56:19 +0000 (13:56 +0000)]
Return error for failing allocation

Fix case, where final strdup would have failed and it would miss to return
failure for this case and return success and NULL pointer.

12 years agoAdd test for failing allocation
Zdenek Kabelac [Fri, 10 Feb 2012 13:52:05 +0000 (13:52 +0000)]
Add test for failing allocation

Avoid memcpy to NULL if realloc fails.

12 years agoAdd test for memory allocation failures
Zdenek Kabelac [Fri, 10 Feb 2012 13:49:29 +0000 (13:49 +0000)]
Add test for memory allocation failures

Replace asserts with test for failing memory allocation.
Add at least stack traces.
Index counter starts from 1 (0 reserved for error), so replacing fingerprint.

12 years agoRemove unreachable code
Zdenek Kabelac [Fri, 10 Feb 2012 13:46:23 +0000 (13:46 +0000)]
Remove unreachable code

12 years agoWhat's new.
Petr Rockai [Fri, 10 Feb 2012 02:56:54 +0000 (02:56 +0000)]
What's new.

12 years agoKeep a global (per-format) orphan_vg and keep any and all orphan PVs linked to
Petr Rockai [Fri, 10 Feb 2012 02:53:03 +0000 (02:53 +0000)]
Keep a global (per-format) orphan_vg and keep any and all orphan PVs linked to
it. Avoids the need for FMT_INSTANCE_PV and enables further simplifications. No
functional change, internal refactor only.

12 years agoWhat's new: lvmcache.
Petr Rockai [Fri, 10 Feb 2012 01:29:46 +0000 (01:29 +0000)]
What's new: lvmcache.

12 years agoMove lvmcache data structures behind an API (making the structures private to
Petr Rockai [Fri, 10 Feb 2012 01:28:27 +0000 (01:28 +0000)]
Move lvmcache data structures behind an API (making the structures private to
lvmcache.c). No functional change.

12 years agoStop processing lvextend if trying to extend a mirror that is being recovered.
Peter Rajnoha [Thu, 9 Feb 2012 15:13:42 +0000 (15:13 +0000)]
Stop processing lvextend if trying to extend a mirror that is being recovered.

Missing correct return value in lv_extend fn.

12 years agoMove label_init up in code stack
Zdenek Kabelac [Wed, 8 Feb 2012 13:44:49 +0000 (13:44 +0000)]
Move label_init up in code stack

label_exit() is called destroy_toolcontext() and we are now
using standard dm_list function for destroy, we have to make sure
dm_list gets initialized properly.

12 years agoThin add pool_below_threshold
Zdenek Kabelac [Wed, 8 Feb 2012 13:05:38 +0000 (13:05 +0000)]
Thin add pool_below_threshold

Test both data and metadata percent usage.

12 years agoA bit more readable code
Zdenek Kabelac [Wed, 8 Feb 2012 13:03:40 +0000 (13:03 +0000)]
A bit more readable code

Just a minor readability conversion.

12 years agoFix test for lv_snapshot_percent
Zdenek Kabelac [Wed, 8 Feb 2012 13:02:07 +0000 (13:02 +0000)]
Fix test for lv_snapshot_percent

Do not check for PERCENT_MERGE_FAILED if the lv_snapshot_percent() failed.
(test for snap_percent would be testing uninitialized value).

This page took 0.066276 seconds and 5 git commands to generate.