]> sourceware.org Git - lvm2.git/log
lvm2.git
15 years agoFix some distclean rules.
Dave Wysochanski [Mon, 16 Mar 2009 18:28:04 +0000 (18:28 +0000)]
Fix some distclean rules.

By gnu coding stds, 'distclean' should remove all files generated
by ./configure in addition to what 'clean' does.

Author: Takahiro Yasui <tyasui@redhat.com>

15 years agoFix warning in previous commit.
Milan Broz [Mon, 16 Mar 2009 15:19:29 +0000 (15:19 +0000)]
Fix warning in previous commit.

15 years agoFix lv_count when manipulating with snapshots and max_lv is set.
Milan Broz [Mon, 16 Mar 2009 14:34:57 +0000 (14:34 +0000)]
Fix lv_count when manipulating with snapshots and max_lv is set.

Patch fixes these problems:
 - during the snapshot creation process, it needs create 2 LVs,
   one is cow, second becomes snapshot.
   If the code fails in vg_add_snapshot, code lvcreate will not remove
   LV cow volume.

 - if max_lv is set and VG contains snapshot, it can happen that
   during the activation lv_count is temporarily increased over the limit
   and VG metadata are not properly processed
   see https://bugzilla.redhat.com/show_bug.cgi?id=490298

 - vgcfgrestore alows restore with max_lv set to lower valuer that actual
   LV count. This later leads to situation that max_lv is completely ignored.

 - vgck doesn't call vg_validate(). It should at least try:-)

Signed-off-by: Milan Broz <mbroz@redhat.com>
15 years agoRemove unnecessary includes in lvm_base.c.
Dave Wysochanski [Tue, 10 Mar 2009 15:38:46 +0000 (15:38 +0000)]
Remove unnecessary includes in lvm_base.c.

We would like to declare our handles pv_t, vg_t, and lv_t in
the external library header lvm.h.  However, these are already
defined in metadata-exported.h for the use of some of the
in-progress liblvm APIs.  Thus, we cannot both define
them in lvm.h and include metadata-exported.h in the external
library C files.  We could use preprocessor tricks (#ifndef)
but for now we just avoid the include.

15 years agoFix clvmd build after liblvm commit.
Milan Broz [Tue, 10 Mar 2009 12:10:12 +0000 (12:10 +0000)]
Fix clvmd build after liblvm commit.

15 years agoFix error messages when PV uuid or pe_start reading fails.
Dave Wysochanski [Mon, 9 Mar 2009 15:42:10 +0000 (15:42 +0000)]
Fix error messages when PV uuid or pe_start reading fails.

Author: Takahiro Yasui <tyasui@redhat.com>
Committer: Dave Wysochanski <dwysocha@redhat.com>

15 years agoAdd missing liblvm/.exported_symbols
Dave Wysochanski [Sun, 8 Mar 2009 18:58:53 +0000 (18:58 +0000)]
Add missing liblvm/.exported_symbols

15 years agoFix liblvm version symlink.
Dave Wysochanski [Sun, 8 Mar 2009 18:10:39 +0000 (18:10 +0000)]
Fix liblvm version symlink.

15 years agoRemove unnecessary linker flags for liblvm.
Dave Wysochanski [Sun, 8 Mar 2009 17:29:26 +0000 (17:29 +0000)]
Remove unnecessary linker flags for liblvm.

15 years agoAdd DSO generation for new LVM application library.
Dave Wysochanski [Sun, 8 Mar 2009 17:06:55 +0000 (17:06 +0000)]
Add DSO generation for new LVM application library.

Fix test/api/test build.

15 years agoMove lvm.h from lib to liblvm.
Dave Wysochanski [Fri, 6 Mar 2009 22:49:48 +0000 (22:49 +0000)]
Move lvm.h from lib to liblvm.

15 years agoAdd new liblvm build directory and move lvm_base.c.
Dave Wysochanski [Fri, 6 Mar 2009 16:19:52 +0000 (16:19 +0000)]
Add new liblvm build directory and move lvm_base.c.

The original liblvm.a has been moved to liblvm-internal.a.
We now use liblvm.a for the new application library and build
it inside liblvm directory.

Change dependencies so tools depend on liblvm application library,
and application library depends on liblvm internal.

15 years agoRename liblvm to liblvm-internal.
Dave Wysochanski [Fri, 6 Mar 2009 16:17:28 +0000 (16:17 +0000)]
Rename liblvm to liblvm-internal.

Make preparation for using liblvm for new application library.

15 years agoFix unlocks in clvmd-corosync.
Christine Caulfield [Fri, 6 Mar 2009 11:29:38 +0000 (11:29 +0000)]
Fix unlocks in clvmd-corosync.

The DLM unlock returns EUNLOCK in the lksb on success, not 0

15 years agoFix possible increasing in memory allocation if refreshing_context
Milan Broz [Thu, 5 Mar 2009 16:25:35 +0000 (16:25 +0000)]
Fix possible increasing in memory allocation if refreshing_context
(for example when CLVMD_CMD_LOCK_VG for is called during vgscan).

If clvmd calls LV lock, it calls
    /* clean the pool for another command */
dm_pool_empty(cmd->mem);
to clean up memory pool after command.

Unfortunately, do_refresh_cache() do not call this
and because during it operation it allocates some memory,
the pool increases.

Also do_refresh_cache should use lvm_lock
(it manipulates with lvm internal data).

The same applies for lvm_backup command.

Signed-off-by: Milan Broz <mbroz@redhat.com>
15 years agopost-release
Alasdair Kergon [Tue, 3 Mar 2009 18:25:05 +0000 (18:25 +0000)]
post-release

15 years agovgname_from_mda now tries to parse for vgname even
Milan Broz [Tue, 3 Mar 2009 16:35:32 +0000 (16:35 +0000)]
vgname_from_mda now tries to parse for vgname even
if rlocn not defined (there is no metadata area).

In most cases it fails in validate_name(),
unfortunately there are situatuions, when
validate_name is ok and later code fails with
checksum error.

Reproducer:

# dd if=/dev/zero of=/dev/loop0

# pvcreate --metadatasize 637k /dev/loop0
  Physical volume "/dev/loop0" successfully created

# pvs /dev/loop0
  /dev/loop0: Checksum error
      PV         VG   Fmt  Attr PSize PFree
        /dev/loop0      lvm2 --   1.00M 1.00M

Signed-off-by: Milan Broz <mbroz@redhat.com>
-

15 years agopre-release
Alasdair Kergon [Tue, 3 Mar 2009 13:03:03 +0000 (13:03 +0000)]
pre-release

15 years agoFix last check-ins: seg can be NULL.
Alasdair Kergon [Sat, 28 Feb 2009 20:04:24 +0000 (20:04 +0000)]
Fix last check-ins: seg can be NULL.

15 years ago.
Alasdair Kergon [Sat, 28 Feb 2009 19:43:42 +0000 (19:43 +0000)]
.

15 years agoAttempt cleanup in child before execing new binary in exec_cmd()
Alasdair Kergon [Sat, 28 Feb 2009 00:54:06 +0000 (00:54 +0000)]
Attempt cleanup in child before execing new binary in exec_cmd()

15 years ago.
Alasdair Kergon [Fri, 27 Feb 2009 23:55:15 +0000 (23:55 +0000)]
.

15 years agofsadm cleanups & release prep
Alasdair Kergon [Fri, 27 Feb 2009 23:40:11 +0000 (23:40 +0000)]
fsadm cleanups & release prep

15 years agoautoreconf (using fedora 10 for this now)
Alasdair Kergon [Wed, 25 Feb 2009 23:33:30 +0000 (23:33 +0000)]
autoreconf  (using fedora 10 for this now)

15 years agope_start can be overwritten in VG metadata, so it is not PV label-only field.
Milan Broz [Wed, 25 Feb 2009 23:31:06 +0000 (23:31 +0000)]
pe_start can be overwritten in VG metadata, so it is not PV label-only field.

15 years agoTry to avoid full rescan if label scan is enough.
Milan Broz [Wed, 25 Feb 2009 23:29:06 +0000 (23:29 +0000)]
Try to avoid full rescan if label scan is enough.

15 years agoUse pkgconfig to obtain corosync library details during configuration. (kabi)
Alasdair Kergon [Wed, 25 Feb 2009 22:41:12 +0000 (22:41 +0000)]
Use pkgconfig to obtain corosync library details during configuration. (kabi)

15 years agoFix error returns in clvmd-corosync interface to DLM.
Christine Caulfield [Wed, 25 Feb 2009 14:33:00 +0000 (14:33 +0000)]
Fix error returns in clvmd-corosync interface to DLM.

Thanks to Xinwei Hu for spotting this.

15 years agoUpdate vgchange and vgmknodes man pages to include --refresh.
Dave Wysochanski [Wed, 25 Feb 2009 13:17:40 +0000 (13:17 +0000)]
Update vgchange and vgmknodes man pages to include --refresh.

Author: Dave Wysochanski <dwysocha@redhat.com>

15 years agoFixed bug where lvresize option -t was not properly passed to fsadm.
Zdenek Kabelac [Tue, 24 Feb 2009 15:48:00 +0000 (15:48 +0000)]
Fixed bug where lvresize option -t was not properly passed to fsadm.
Using argv[] list in exec_cmd() to allow more params for external commands.
Fsadm does not allow checking mounted filesystem.
Fsadm no longer accepts 'any other key' as 'no' answer to y/n.
Fsadm improved handling of command line options.

15 years agoFix include/.symlinks for lvm2.h to lvm.h renaming
Thomas Woerner [Tue, 24 Feb 2009 13:13:56 +0000 (13:13 +0000)]
Fix include/.symlinks for lvm2.h to lvm.h renaming

Author: Thomas Woerner <twoerner@redhat.com>

15 years agoAdded files lib/lvm.h and lib/lvm_base.c:
Thomas Woerner [Tue, 24 Feb 2009 13:03:45 +0000 (13:03 +0000)]
Added files lib/lvm.h and lib/lvm_base.c:
New structure lvm (used as an alias to cmd_context), new type definition lvm_t
for the lvm handle. Added functions lvm_create, lvm_destroy and
lvm_reload_config using the new handle.

Modified test/api/test.c:
Use new lvm.h header file and lvm_t handle.

Removed lib/lvm2.h

Author: Thomas Woerner <twoerner@redhat.com>

15 years agoFix validation of dataalignment value introduced in previous commit.
Milan Broz [Mon, 23 Feb 2009 16:53:42 +0000 (16:53 +0000)]
Fix validation of dataalignment value introduced in previous commit.

15 years agoMove tools/version.h to lib/misc/lvm-version.h.
Alasdair Kergon [Sun, 22 Feb 2009 22:11:58 +0000 (22:11 +0000)]
Move tools/version.h to lib/misc/lvm-version.h.
Split LVM_VERSION into MAJOR, MINOR, PATCHLEVEL, RELEASE and RELEASE_DATE.

15 years agoAdd system_dir parameter to create_toolcontext() and call it system_dir
Alasdair Kergon [Sun, 22 Feb 2009 21:14:37 +0000 (21:14 +0000)]
Add system_dir parameter to create_toolcontext() and call it system_dir
everywhere for consistency.

15 years agoComment out pvcreate pagesize alignment test for now.
Milan Broz [Sun, 22 Feb 2009 19:32:28 +0000 (19:32 +0000)]
Comment out pvcreate pagesize alignment test for now.

15 years agoAdd --dataalignment to pvcreate to specify alignment of data area. (mbroz)
Alasdair Kergon [Sun, 22 Feb 2009 19:00:26 +0000 (19:00 +0000)]
Add --dataalignment to pvcreate to specify alignment of data area.  (mbroz)

This patch is not fully tested and leaves some related bugs unfixed.

Intended behaviour of the code now:

  pe_start in the lvm2 format PV label header is set only by pvcreate (or
vgconvert -M2) and then preserved in *all* operations thereafter.

  In some specialist cases, after the PV is added to a VG, the pe_start
field in the VG metadata may hold a different value and if so, it
overrides the other one for as long as the PV is in such a VG.

  Currently, the field storing the size of the data area in the PV label
header always holds 0.  As it only has meaning in the context of a
volume group, it is calculated whenever the PV is added to a VG (and can
be derived from extent_size and pe_count in the VG metadata).

15 years agoFix interrupt unblocking after vgcreate, for example: drop_cached_metadata()
Alasdair Kergon [Sun, 22 Feb 2009 16:13:57 +0000 (16:13 +0000)]
Fix interrupt unblocking after vgcreate, for example: drop_cached_metadata()
previously left _vg_lock_count incremented.
Other locks are always held during drop_cached_metadata() so there's no
need to increment+decrement it.

15 years agoProvide da and mda locations in debug message when writing text format label.
Alasdair Kergon [Fri, 20 Feb 2009 23:19:28 +0000 (23:19 +0000)]
Provide da and mda locations in debug message when writing text format label.

15 years agoMention the restriction on file descriptors at invocation on the lvm man page.
Alasdair Kergon [Fri, 20 Feb 2009 01:47:02 +0000 (01:47 +0000)]
Mention the restriction on file descriptors at invocation on the lvm man page.

15 years agoIn testsuite's not.c, print a notice when program dies of a fatal signal.
Petr Rockai [Tue, 17 Feb 2009 19:37:28 +0000 (19:37 +0000)]
In testsuite's not.c, print a notice when program dies of a fatal signal.

15 years agoFix test output collection in harness.c.
Petr Rockai [Tue, 17 Feb 2009 19:36:16 +0000 (19:36 +0000)]
Fix test output collection in harness.c.

15 years agoIndex cached vgmetadata by vgid not vgname to cope with duplicate vgnames. (dwyso)
Alasdair Kergon [Tue, 17 Feb 2009 18:56:41 +0000 (18:56 +0000)]
Index cached vgmetadata by vgid not vgname to cope with duplicate vgnames.  (dwyso)

15 years agoFix lvm.static build dependence (to properly propagate changes in libdevmapper).
Milan Broz [Tue, 17 Feb 2009 11:07:59 +0000 (11:07 +0000)]
Fix lvm.static build dependence (to properly propagate changes in libdevmapper).

15 years agoOnly fail when tests have failed, but not when they have been just skipped.
Petr Rockai [Mon, 16 Feb 2009 16:49:21 +0000 (16:49 +0000)]
Only fail when tests have failed, but not when they have been just skipped.

15 years agoIf kernel supports only one dm major number, use in place of any supplied.
Alasdair Kergon [Thu, 12 Feb 2009 20:42:07 +0000 (20:42 +0000)]
If kernel supports only one dm major number, use in place of any supplied.
No longer require kernel and metadata major numbers to match.

15 years agoRe-implement the test harness in C. This lets us pass through signals and
Petr Rockai [Thu, 12 Feb 2009 19:54:45 +0000 (19:54 +0000)]
Re-implement the test harness in C. This lets us pass through signals and
trigger proper test teardown upon harness interrupt or termination. I also
tweaked the output somewhat while I was at it...

15 years agoAdd a fully-functional get_cluster_name() to clvmd corosync interface.
Christine Caulfield [Wed, 11 Feb 2009 10:13:20 +0000 (10:13 +0000)]
Add a fully-functional get_cluster_name() to clvmd corosync interface.

15 years agoRemove duplicate cpg_initialize from clvmd startup.
Christine Caulfield [Tue, 10 Feb 2009 13:22:18 +0000 (13:22 +0000)]
Remove duplicate cpg_initialize from clvmd startup.

15 years agoAdd option to /etc/sysconfig/cluster to select cluster type for clvmd.
Christine Caulfield [Tue, 10 Feb 2009 11:53:33 +0000 (11:53 +0000)]
Add option to /etc/sysconfig/cluster to select cluster type for clvmd.

15 years agoAllow clvmd to start up if its lockspace already exists.
Christine Caulfield [Tue, 10 Feb 2009 11:52:40 +0000 (11:52 +0000)]
Allow clvmd to start up if its lockspace already exists.

15 years agoSeparate PV label attributes which do not need parse metadata when reporting.
Milan Broz [Mon, 9 Feb 2009 09:45:49 +0000 (09:45 +0000)]
Separate PV label attributes which do not need parse metadata when reporting.

When reporting explicitly label attributes (pv_uuid for example), we do not
need to read metadata.

This patch separate the label fileds and removes scan_vgs_for_pvs
in process_each_pv() if not needed.

(There should be no user visible change in output.)

15 years agoRemove external dependency on the 'cut' command in fsadm
Zdenek Kabelac [Fri, 6 Feb 2009 14:28:06 +0000 (14:28 +0000)]
Remove external dependency on the 'cut' command in fsadm

15 years agoFix pvs segfault when pv mda attributes requested for not available PV.
Milan Broz [Fri, 6 Feb 2009 12:41:51 +0000 (12:41 +0000)]
Fix pvs segfault when pv mda attributes requested for not available PV.

15 years agoadd support for ext4 resize in fsadm
Zdenek Kabelac [Wed, 4 Feb 2009 12:47:05 +0000 (12:47 +0000)]
add support for ext4 resize in fsadm

15 years agoMove locking_type reading inside init_locking().
Dave Wysochanski [Tue, 3 Feb 2009 16:23:19 +0000 (16:23 +0000)]
Move locking_type reading inside init_locking().

No functional change.

15 years agoRename get_vgs() to get_vgnames() and clarify related error messages.
Dave Wysochanski [Tue, 3 Feb 2009 16:19:25 +0000 (16:19 +0000)]
Rename get_vgs() to get_vgnames() and clarify related error messages.

get_vgs() really returns a list of vgnames.  In the future we will use
get_vgs() to return a list of vg structures, similar to get_pvs().

15 years agoAllow clvmd to be built with all cluster managers & select one on cmdline.
Christine Caulfield [Mon, 2 Feb 2009 14:34:24 +0000 (14:34 +0000)]
Allow clvmd to be built with all cluster managers & select one on cmdline.

15 years agoMention --with-clvmd=corosync in ./configure
Christine Caulfield [Thu, 29 Jan 2009 15:23:15 +0000 (15:23 +0000)]
Mention --with-clvmd=corosync in ./configure

15 years agoAdd as-yet-unused vg_read_error() and vg_might_exist(). (mornfall)
Alasdair Kergon [Tue, 27 Jan 2009 01:48:47 +0000 (01:48 +0000)]
Add as-yet-unused vg_read_error() and vg_might_exist().  (mornfall)

15 years agoIntroduce as-yet-unused replacement vg_read() and vg_read_for_update()
Alasdair Kergon [Tue, 27 Jan 2009 00:40:44 +0000 (00:40 +0000)]
Introduce as-yet-unused replacement vg_read() and vg_read_for_update()
functions.  (mornfall)

15 years ago Replace internal vg_check_status() implementation. (mornfall)
Alasdair Kergon [Mon, 26 Jan 2009 22:42:59 +0000 (22:42 +0000)]
 Replace internal vg_check_status() implementation.  (mornfall)

15 years agoProperly enforce cluster locking in as-yet-unused _vg_lock_and_read. (mornfall)
Alasdair Kergon [Mon, 26 Jan 2009 22:22:07 +0000 (22:22 +0000)]
Properly enforce cluster locking in as-yet-unused _vg_lock_and_read. (mornfall)

15 years agoIntroduce as-yet-unused _vg_lock_and_read() and associated header file
Alasdair Kergon [Mon, 26 Jan 2009 22:13:22 +0000 (22:13 +0000)]
Introduce as-yet-unused _vg_lock_and_read() and associated header file
definitions.

15 years agoRename vg_read() to vg_read_internal(). (mornfall)
Alasdair Kergon [Mon, 26 Jan 2009 19:01:32 +0000 (19:01 +0000)]
Rename vg_read() to vg_read_internal(). (mornfall)

15 years agopost-release
Alasdair Kergon [Mon, 26 Jan 2009 14:46:08 +0000 (14:46 +0000)]
post-release

15 years agoand another one missing
Alasdair Kergon [Mon, 26 Jan 2009 14:40:06 +0000 (14:40 +0000)]
and another one missing

15 years agoAdd stuff people missed.
Alasdair Kergon [Mon, 26 Jan 2009 13:34:07 +0000 (13:34 +0000)]
Add stuff people missed.

15 years agopre-release
Alasdair Kergon [Mon, 26 Jan 2009 13:14:22 +0000 (13:14 +0000)]
pre-release

15 years agoAdd a corosync/DLM cluster service to clvmd.
Christine Caulfield [Thu, 22 Jan 2009 10:21:12 +0000 (10:21 +0000)]
Add a corosync/DLM cluster service to clvmd.

It's not integrated in the configure system yet though.

15 years agoUse tools.h in for lvm-static.
Milan Broz [Tue, 20 Jan 2009 20:37:41 +0000 (20:37 +0000)]
Use tools.h in for lvm-static.

15 years agoAdd --unquoted to pvs, vgs, lvs man pages.
Dave Wysochanski [Tue, 20 Jan 2009 17:39:07 +0000 (17:39 +0000)]
Add --unquoted to pvs, vgs, lvs man pages.

15 years agoAdd missing --segments to pvs man pg.
Dave Wysochanski [Tue, 20 Jan 2009 17:27:11 +0000 (17:27 +0000)]
Add missing --segments to pvs man pg.

15 years agoAdd --nameprefixes to pvs, vgs, lvs man pages.
Dave Wysochanski [Tue, 20 Jan 2009 17:10:44 +0000 (17:10 +0000)]
Add --nameprefixes to pvs, vgs, lvs man pages.

15 years agoFix problems with static build
Milan Broz [Tue, 20 Jan 2009 17:07:53 +0000 (17:07 +0000)]
Fix problems with static build

 - compiler warning (missing header)

 - configure should set static flag early to be able
   use STATIC_LINK flag during configure script

15 years agoAdd --rows option to pvs, vgs, lvs man pages.
Dave Wysochanski [Tue, 20 Jan 2009 16:55:24 +0000 (16:55 +0000)]
Add --rows option to pvs, vgs, lvs man pages.

15 years agoRename _parse_options() to _parse_fields() for naming consistency.
Dave Wysochanski [Mon, 19 Jan 2009 20:53:35 +0000 (20:53 +0000)]
Rename _parse_options() to _parse_fields() for naming consistency.

In libdm, we only ever use 'fields', while the tools use 'options' and
'fields' interchangeably.

Ideally it would be good to use 'fields' consistently everywhere.
However, 'options' most likely comes from the tool commandline '-o' and
'--options' which cannot be changed.

15 years agoAdd skeleton of fsadm nightly test but skip (doesn't work yet).
Dave Wysochanski [Thu, 15 Jan 2009 17:14:38 +0000 (17:14 +0000)]
Add skeleton of fsadm nightly test but skip (doesn't work yet).

15 years agoFix fsadm lvresize for filesystem block sizes != 1024.
Dave Wysochanski [Thu, 15 Jan 2009 14:44:48 +0000 (14:44 +0000)]
Fix fsadm lvresize for filesystem block sizes != 1024.

Fixes rhbz 480022.

15 years agoA C implementation of "not" that handles fatal signals rather more
Petr Rockai [Mon, 12 Jan 2009 18:45:44 +0000 (18:45 +0000)]
A C implementation of "not" that handles fatal signals rather more
intelligently than the shell implementation. C code by Jaroslav Stava.

I have done a rudimentary review and checked that tests still pass.

15 years ago...and a few more uninitialised dummy fields.
Alasdair Kergon [Sat, 10 Jan 2009 17:21:17 +0000 (17:21 +0000)]
...and a few more uninitialised dummy fields.

15 years agoMore fields can cause segfaults with orphans.
Alasdair Kergon [Sat, 10 Jan 2009 17:09:40 +0000 (17:09 +0000)]
More fields can cause segfaults with orphans.
Fix these by populating the dummy VG struct more completely.

15 years agoFix pvs segfault when run with orphan PV and vg_mda_size or vg_mda_free fields
Dave Wysochanski [Sat, 10 Jan 2009 15:04:28 +0000 (15:04 +0000)]
Fix pvs segfault when run with orphan PV and vg_mda_size or vg_mda_free fields

We display '0' for these fields now in this case.  Ideally these values are
undefined for an orphan PV but today there is no way to specify undefined
with display functions such as _size64_disp().

15 years agoFix some checks in lvm-utils.sh. Note that "$(test ...)" is always empty, since
Petr Rockai [Sat, 10 Jan 2009 12:19:41 +0000 (12:19 +0000)]
Fix some checks in lvm-utils.sh. Note that "$(test ...)" is always empty, since
"test" never prints anything. Therefore, "return $(test ...)" is equivalent to
just "return;" which means success in sh (same as return 0). We can however,
thanks to set -e, use "test foo = bar" as an assertion.

PS: test a == b is invalid syntax. It is either = or -eq: = is textual and -eq
is numeric comparison.

15 years agoAdd <report_type>_all to help text.
Alasdair Kergon [Sat, 10 Jan 2009 03:14:24 +0000 (03:14 +0000)]
Add <report_type>_all to help text.

15 years agoAdd an "all" field which expands to all fields of the report type.
Alasdair Kergon [Sat, 10 Jan 2009 03:01:35 +0000 (03:01 +0000)]
Add an "all" field which expands to all fields of the report type.

For example in LVM2, "pv_all" gives all PV fields.
"seg_all" gives all LV segment fields.

"all" gives all fields of the final report type.  I think this is more
useful than just adding the current prefix.

So "lvs -o seg_all" gives all the LV segment fields, whilst
"lvs --segments -o all" adds in LV and VG fields too.

"lvs -o all -O vg_name" has report type LVS+VGS so includes all LV and all
VG fields.

15 years agoDisplay a 'dev_size' of zero for missing devices in reports.
Alasdair Kergon [Sat, 10 Jan 2009 02:43:51 +0000 (02:43 +0000)]
Display a 'dev_size' of zero for missing devices in reports.

15 years agoAdd pv_mda_size to pvs and vg_mda_size to vgs.
Dave Wysochanski [Fri, 9 Jan 2009 22:48:22 +0000 (22:48 +0000)]
Add pv_mda_size to pvs and vg_mda_size to vgs.

15 years agoAdd pv_mda_size to 'pvs' and vg_mda_size to 'vgs'.
Dave Wysochanski [Fri, 9 Jan 2009 22:44:33 +0000 (22:44 +0000)]
Add pv_mda_size to 'pvs' and vg_mda_size to 'vgs'.

Reports the size of the smallest metadata area in a PV or a VG.
Useful to confirm pvcreate --metadatasize or pvmetadatasize setting in
/etc/lvm/lvm.conf file.

NOTE: Actual value in these fields will most always differ from that
given in pvcreate options due to rounding and alignment effects.

15 years agoDocument current state of inconsistent metadata behaviour of a few commands in
Petr Rockai [Fri, 9 Jan 2009 10:16:57 +0000 (10:16 +0000)]
Document current state of inconsistent metadata behaviour of a few commands in
a test. Should make changes to the !consistent bits of code easier. To be
expanded.

15 years agoInitial import of the cluster log daemon from the 'cluster' repository.
Jonathan Earl Brassow [Thu, 8 Jan 2009 17:12:33 +0000 (17:12 +0000)]
Initial import of the cluster log daemon from the 'cluster' repository.

There is a rudimentary make file in place so people can build by hand
from 'LVM2/daemons/clogd'.  It is not hooked into the main build system
yet.  I am checking this in to provide people better access to the
source code.

There is still work to be done to make better use of existing code in
the LVM repository.  (list.h could be removed in favor of existing list
implementations, for example.  Logging might also be removed in favor
of what is already in the tree.)

I will probably defer updating WHATS_NEW_DM until this code is linked
into the main build system (unless otherwise instructed).

15 years agoAdd checks for device names in dmsetup and show proper error messages.
Peter Rajnoha [Wed, 7 Jan 2009 12:17:40 +0000 (12:17 +0000)]
Add checks for device names in dmsetup and show proper error messages.

Checks added for DM device names to allow only names < DM_NAME_LEN,
otherwise a part of lengthy name would be silently ignored and could
cause confusion while using dmsetup. Also, the name should not contain
'/' character, if it is used in context of creating a new device
or renaming the existing one (because we do not consider full path
to devices, they do not exist in filesystem yet) and appropriate error
messages are shown.

15 years agoFix lvmdump /sys listing to include virtual devices directory.
Milan Broz [Tue, 6 Jan 2009 18:02:57 +0000 (18:02 +0000)]
Fix lvmdump /sys listing to include virtual devices directory.

15 years agoFix "Calculate mirror log size" commit, the le_count should be always set.
Milan Broz [Tue, 6 Jan 2009 17:24:21 +0000 (17:24 +0000)]
Fix "Calculate mirror log size" commit, the le_count should be always set.

15 years agoAdd "--refresh" functionality to vgchange and vgmknodes.
Peter Rajnoha [Mon, 22 Dec 2008 09:04:35 +0000 (09:04 +0000)]
Add "--refresh" functionality to vgchange and vgmknodes.

15 years agoAdd "--refresh" functionality to vgchange and vgmknodes.
Peter Rajnoha [Mon, 22 Dec 2008 09:00:51 +0000 (09:00 +0000)]
Add "--refresh" functionality to vgchange and vgmknodes.

15 years agolvm2cmdline.h:31: warning: declaration of `is_static' shadows a global declaration
Alasdair Kergon [Fri, 19 Dec 2008 18:51:02 +0000 (18:51 +0000)]
lvm2cmdline.h:31: warning: declaration of `is_static' shadows a global declaration

15 years agoDo not issue write behind lv size.
Milan Broz [Fri, 19 Dec 2008 15:26:01 +0000 (15:26 +0000)]
Do not issue write behind lv size.

pvcreate $DEV
vgcreate -s 1k vg_test $DEV
lvcreate -l 1 -n lv1 vg_test
..
/dev/vg_test/lv1: write failed after 1024 of 4096 at 0: No space left on device

Just check for maximum write size in set_lv.

15 years agoCalculate mirror log size instead of hardcoding 1 extent size.
Milan Broz [Fri, 19 Dec 2008 15:24:52 +0000 (15:24 +0000)]
Calculate mirror log size instead of hardcoding 1 extent size.

It fails for 1k PE now.

Patch adds log_region_size into allocation habdle struct
and use it in _alloc_parallel_area() for proper log size calculation
instead of hardcoded 1 extent - which can fail.

Reproducer for incorrect log size calculation:
        DEV=/dev/sd[bcd]

        pvcreate $DEV
        vgcreate -s 1k vg_test $DEV
        lvcreate -m1 -L 12M -n mirr vg_test

https://bugzilla.redhat.com/show_bug.cgi?id=477040

The log size calculation is mostly copied from kernel code.

15 years agoFail add tree node when requested major/minor is used.
Milan Broz [Fri, 19 Dec 2008 15:23:03 +0000 (15:23 +0000)]
Fail add tree node when requested major/minor is used.

Check for major/minor collision is added in _add_dev_to_dtree()
where we already read info by uuid,
so in the case of requesting major/minor it queries device-mapper
by major/minor for device availability.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=204992

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