]> sourceware.org Git - lvm2.git/log
lvm2.git
14 years agoAdd alphabetical vgname ordering tests for vgsplit, vgmerge, vgrename.
Dave Wysochanski [Wed, 2 Sep 2009 18:31:11 +0000 (18:31 +0000)]
Add alphabetical vgname ordering tests for vgsplit, vgmerge, vgrename.

14 years agorename clogd dir to cmirrord
Alasdair Kergon [Wed, 2 Sep 2009 17:36:46 +0000 (17:36 +0000)]
rename clogd dir to cmirrord

14 years agoImplement write lock prioritisation for file locking and make it default.
Petr Rockai [Wed, 2 Sep 2009 14:47:39 +0000 (14:47 +0000)]
Implement write lock prioritisation for file locking and make it default.

14 years agoFix cmirrod build directory while we wait to do a proper rename of the
Fabio M. Di Nitto [Wed, 2 Sep 2009 11:49:03 +0000 (11:49 +0000)]
Fix cmirrod build directory while we wait to do a proper rename of the
directory and move files.

14 years agoDrop clogd Makefile from CVS since it's always autogenerated from Makefile.in
Fabio M. Di Nitto [Tue, 1 Sep 2009 19:13:38 +0000 (19:13 +0000)]
Drop clogd Makefile from CVS since it's always autogenerated from Makefile.in
at configure time.

14 years agoFix --with-clvmd=all to deal with the case where no cluster managers are available.
Fabio M. Di Nitto [Tue, 1 Sep 2009 19:11:45 +0000 (19:11 +0000)]
Fix --with-clvmd=all to deal with the case where no cluster managers are available.

Also simplify the check by removing an unnecessary variable and update
configure messages.

14 years agoRemove unwanted Makefiles and don't purge lvm2.po that's
Fabio M. Di Nitto [Tue, 1 Sep 2009 18:11:14 +0000 (18:11 +0000)]
Remove unwanted Makefiles and don't purge lvm2.po that's
under RCS.

14 years agoAdd some code to clvmd to look in the corosync confdb to see what cluster
Christine Caulfield [Tue, 1 Sep 2009 09:48:01 +0000 (09:48 +0000)]
Add some code to clvmd to look in the corosync confdb to see what cluster
interface it should be using, it can still be overriden with -I.

If corosync isn't running or there is no information then the usual
checking will happen.

This code only builds if corosync is available.

14 years agochange clogd to cmirrord
Alasdair Kergon [Fri, 28 Aug 2009 20:51:40 +0000 (20:51 +0000)]
change clogd to cmirrord
make pidfile locn configurable

14 years agoRewrite clvmd configuration code.
Alasdair Kergon [Fri, 28 Aug 2009 19:22:05 +0000 (19:22 +0000)]
Rewrite clvmd configuration code.

14 years agocluster log daemon (clogd): Adjust for kernel CTR arg reordering
Jonathan Earl Brassow [Fri, 28 Aug 2009 05:27:09 +0000 (05:27 +0000)]
cluster log daemon (clogd): Adjust for kernel CTR arg reordering

We have moved the internally generated mirror-device-size
parameter from the end of the CTR string to the begining.
This change adjusts for that.

14 years agoFix global locking in PV reporting commands (2.02.49).
Milan Broz [Mon, 24 Aug 2009 11:37:20 +0000 (11:37 +0000)]
Fix global locking in PV reporting commands (2.02.49).

14 years agoFix uuid warning in pvcreate to use terminated (and dash formatted) UUID string.
Milan Broz [Thu, 20 Aug 2009 07:03:02 +0000 (07:03 +0000)]
Fix uuid warning in pvcreate to use terminated (and dash formatted) UUID string.

# pvcreate -u udwxr7-BoKY-EeKM-r033-xK6o-4og7-F13sGi /dev/sdc
   uuid udwxr7BoKYEeKMr033xK6o4og7F13sGi|��� already in use on "/dev/sdb1"
 is now
# pvcreate -u udwxr7-BoKY-EeKM-r033-xK6o-4og7-F13sGi /dev/sdc
   uuid udwxr7-BoKY-EeKM-r033-xK6o-4og7-F13sGi already in use on "/dev/sdb1"

14 years agoFix pvcreate on a partition (regressed in 2.02.51).
Mike Snitzer [Wed, 19 Aug 2009 15:34:33 +0000 (15:34 +0000)]
Fix pvcreate on a partition (regressed in 2.02.51).

Eliminate busy loop during pvcreate of a "normal" partition.
_md_sysfs_attribute_snprintf() would busy loop if the device it was
given was not a blkext-based MD partition.

Rather than being cute with a busy-loop prone 'goto check_md_major' in
_md_sysfs_attribute_snprintf(): explicitly check if the provided device
is a blkext-based partition (blkext_major()); and then check that the
get_primary_dev() determined parent is an MD device (md_major()).

14 years agoUse new blkid instead of vol_id in udev rules.
Peter Rajnoha [Fri, 14 Aug 2009 14:37:46 +0000 (14:37 +0000)]
Use new blkid instead of vol_id in udev rules.

Thanks to Daniel Mierswa for reminding us.

14 years agoCluster log server (clogd): Add new build files.
Jonathan Earl Brassow [Thu, 13 Aug 2009 20:51:41 +0000 (20:51 +0000)]
Cluster log server (clogd):  Add new build files.

Might be a good idea to add the new files to the repository.  :(

14 years agoconfigure script: A couple unwanted changes snuck in.
Jonathan Earl Brassow [Thu, 13 Aug 2009 20:23:01 +0000 (20:23 +0000)]
configure script:  A couple unwanted changes snuck in.

Previously while messing around with 'configure.in' and autoconf,
I changed a couple lines that I didn't want in the final check-in.

14 years agomirror table generating code: Properly handle 'block_on_errors' and 'cluster' features
Jonathan Earl Brassow [Thu, 13 Aug 2009 19:36:04 +0000 (19:36 +0000)]
mirror table generating code:  Properly handle 'block_on_errors' and 'cluster' features

The device-mapper mirror CTR table has been changing over time.  This has
now been corrected to handle the old and new methods for invoking the
'block_on_errors' and 'cluster' features.  (The code that does this was
accidentally committed in the previous check-in.  This check-in finishes
the job.)

14 years agoFix error paths for vgcfgrestore when locking fails.
Dave Wysochanski [Thu, 13 Aug 2009 17:16:38 +0000 (17:16 +0000)]
Fix error paths for vgcfgrestore when locking fails.

14 years agoupdate WHATS_NEW
Jonathan Earl Brassow [Thu, 13 Aug 2009 16:36:49 +0000 (16:36 +0000)]
update WHATS_NEW

14 years agocluster log daemon (clogd): Add to LVM build system
Jonathan Earl Brassow [Thu, 13 Aug 2009 16:34:07 +0000 (16:34 +0000)]
cluster log daemon (clogd): Add to LVM build system

This check-in includes the touch-ups, make file changes, copyrights,
and other necessities to include the cluster log daemon into the
build system.

[autoconf still needs to be run to generate the 'configure' and
'Makefile' files.]

14 years agoCluster log daemon (clogd): use LVM bitops in place of ext2 bitops
Jonathan Earl Brassow [Thu, 13 Aug 2009 16:31:01 +0000 (16:31 +0000)]
Cluster log daemon (clogd): use LVM bitops in place of ext2 bitops

Eliminate dependency on outside library, since the same functionality
exists in our tree.

[It is important that the bitops work in the same way, as the bitmaps
must remain backwards compatible.  I haven't tested every architecture,
but the x86* archs work.  My test involved using the old ext2fsprogs
bitops, memcpy'ing the bits over to the LVM bitset array and ensuring
that only the bits set via the old methods were set.]

14 years agoMake lvchange --refresh only take a read lock on volume group.
Petr Rockai [Thu, 13 Aug 2009 14:27:32 +0000 (14:27 +0000)]
Make lvchange --refresh only take a read lock on volume group.

14 years agoRefactor file locking, lifting the flock wrapper code into separate
Petr Rockai [Thu, 13 Aug 2009 13:23:51 +0000 (13:23 +0000)]
Refactor file locking, lifting the flock wrapper code into separate
functions. Also fixes a bug, where a nonblocking lock could, in certain race
situations, succeed without actually obtaining the lock.

14 years agoUpdate WHATS_NEW
Dave Wysochanski [Thu, 13 Aug 2009 12:19:30 +0000 (12:19 +0000)]
Update WHATS_NEW

14 years agoMake lvm2app pv_t handle definition consistent with lvm_t.
Dave Wysochanski [Thu, 13 Aug 2009 12:18:15 +0000 (12:18 +0000)]
Make lvm2app pv_t handle definition consistent with lvm_t.

This patch update pv_t handle to be consistent with lvm_t - define as a pointer
to internal struct physical_volume.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoMake lvm2app lv_t handle definition consistent with lvm_t.
Dave Wysochanski [Thu, 13 Aug 2009 12:17:32 +0000 (12:17 +0000)]
Make lvm2app lv_t handle definition consistent with lvm_t.

This patch update lv_t handle to be consistent with lvm_t - define as a pointer
to internal struct logical_volume.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoMake lvm2app vg_t handle definition consistent with lvm_t.
Dave Wysochanski [Thu, 13 Aug 2009 12:16:45 +0000 (12:16 +0000)]
Make lvm2app vg_t handle definition consistent with lvm_t.

This patch update vg_t handle to be consistent with lvm_t - define as a pointer
to internal struct volume_group.

Author: Dave Wysochanski <dwysocha@redhat.com>

14 years agoUpdate WHATS_NEW for recent checkins.
Dave Wysochanski [Thu, 13 Aug 2009 12:04:01 +0000 (12:04 +0000)]
Update WHATS_NEW for recent checkins.

14 years agoFix vgextend error path - if ORPHAN lock fails, unlock and release vg.
Dave Wysochanski [Thu, 13 Aug 2009 12:03:46 +0000 (12:03 +0000)]
Fix vgextend error path - if ORPHAN lock fails, unlock and release vg.

Full changes
- Fix vgextend error path when lock_vol(VG_ORPHANS) fails
- Move lock_vol(VG_ORPHANS) before archive(vg) - safe & simpler error paths
- Remove legacy comment/code that no longer applies

Found in review - Milan Broz <mbroz@redhat.com>
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
14 years agoFix compilation warning in clvmd.c
Christine Caulfield [Thu, 13 Aug 2009 10:39:41 +0000 (10:39 +0000)]
Fix compilation warning in clvmd.c

15 years agoUpdate man pages to clarify usage of PE ranges.
Dave Wysochanski [Mon, 10 Aug 2009 17:23:04 +0000 (17:23 +0000)]
Update man pages to clarify usage of PE ranges.

Author: Dave Wysochanski <dwysocha@redhat.com>

15 years agoRemove useless _pv_write wrapper.
Dave Wysochanski [Mon, 10 Aug 2009 17:15:01 +0000 (17:15 +0000)]
Remove useless _pv_write wrapper.

15 years agoUpdate test/api/test.c to call lvm_vg_create and lvm_vg_remove.
Dave Wysochanski [Fri, 7 Aug 2009 21:22:37 +0000 (21:22 +0000)]
Update test/api/test.c to call lvm_vg_create and lvm_vg_remove.

Also fix a couple bugs.

15 years agopost-release
Alasdair Kergon [Thu, 6 Aug 2009 19:32:26 +0000 (19:32 +0000)]
post-release

15 years agopre-release
Alasdair Kergon [Thu, 6 Aug 2009 17:08:01 +0000 (17:08 +0000)]
pre-release

15 years agopre-release
Alasdair Kergon [Thu, 6 Aug 2009 16:30:34 +0000 (16:30 +0000)]
pre-release

15 years agoFix semaphore includes in dmsetup for udev sync.
Peter Rajnoha [Thu, 6 Aug 2009 15:56:50 +0000 (15:56 +0000)]
Fix semaphore includes in dmsetup for udev sync.

15 years agoRemove 11-dm-permissions.rules (is now in 12-dm-permissions.rules).
Peter Rajnoha [Thu, 6 Aug 2009 15:28:05 +0000 (15:28 +0000)]
Remove 11-dm-permissions.rules (is now in 12-dm-permissions.rules).

15 years agoRename template rule file 11-dm-permissions.rules to 12-dm-permissions.rules.
Peter Rajnoha [Thu, 6 Aug 2009 15:10:58 +0000 (15:10 +0000)]
Rename template rule file 11-dm-permissions.rules to 12-dm-permissions.rules.

15 years agoAdd 'udevcookies' command for dmsetup.
Peter Rajnoha [Thu, 6 Aug 2009 15:05:10 +0000 (15:05 +0000)]
Add 'udevcookies' command for dmsetup.

15 years agoAdd 'udevcomplete_all' command for dmsetup. Export DM_COOKIE_MAGIC in libdevmapper.h.
Peter Rajnoha [Thu, 6 Aug 2009 15:04:30 +0000 (15:04 +0000)]
Add 'udevcomplete_all' command for dmsetup. Export DM_COOKIE_MAGIC in libdevmapper.h.

15 years agoFix failure situations in dm_task_run for udev sync.
Peter Rajnoha [Thu, 6 Aug 2009 15:02:01 +0000 (15:02 +0000)]
Fix failure situations in dm_task_run for udev sync.

15 years agoDetect udev problems in _rename_dev_node.
Peter Rajnoha [Thu, 6 Aug 2009 15:00:25 +0000 (15:00 +0000)]
Detect udev problems in _rename_dev_node.

15 years agoAdditional logging
Alasdair Kergon [Wed, 5 Aug 2009 19:50:08 +0000 (19:50 +0000)]
Additional logging

15 years agoFix locking in clvmd
Christine Caulfield [Wed, 5 Aug 2009 14:18:35 +0000 (14:18 +0000)]
Fix locking in clvmd

The changes to remove LCK_NONBLOCK from the LVM locks broke clvmd because the
code was clearly wrong but working anyway! The constant was being masked rather
than the variable that was supposed to match against it.

15 years agoForgotten '%s' in one of _mk_link warning messages.
Peter Rajnoha [Wed, 5 Aug 2009 09:12:44 +0000 (09:12 +0000)]
Forgotten '%s' in one of _mk_link warning messages.

15 years agodetect udev mk_link problems
Alasdair Kergon [Tue, 4 Aug 2009 21:44:20 +0000 (21:44 +0000)]
detect udev mk_link problems

15 years agoAdded basic pvcreate --dataalignmentoffset testing to t-pvcreate-usage.sh
Mike Snitzer [Tue, 4 Aug 2009 16:02:39 +0000 (16:02 +0000)]
Added basic pvcreate --dataalignmentoffset testing to t-pvcreate-usage.sh
Added topology testing via new test/t-pvcreate-operation-md.sh
- requires mdadm and rawhide kernel for full test coverage

15 years agoAdd --noudevsync option for relevant LVM tools.
Peter Rajnoha [Tue, 4 Aug 2009 15:55:43 +0000 (15:55 +0000)]
Add --noudevsync option for relevant LVM tools.

15 years agoAdd --noudevsync option for relevant LVM tools.
Peter Rajnoha [Tue, 4 Aug 2009 15:53:04 +0000 (15:53 +0000)]
Add --noudevsync option for relevant LVM tools.

15 years agoAdd activation/udev_sync to lvm.conf.
Alasdair Kergon [Tue, 4 Aug 2009 15:36:13 +0000 (15:36 +0000)]
Add activation/udev_sync to lvm.conf.

15 years ago'--noudevsync' -- update relevant man pages
Peter Rajnoha [Tue, 4 Aug 2009 08:09:52 +0000 (08:09 +0000)]
'--noudevsync' -- update relevant man pages

15 years agoFix a typo in udev rule (splitname, NOT namesplit)
Peter Rajnoha [Tue, 4 Aug 2009 08:05:06 +0000 (08:05 +0000)]
Fix a typo in udev rule (splitname, NOT namesplit)

15 years agoAdd default udev rules.
Alasdair Kergon [Mon, 3 Aug 2009 18:44:54 +0000 (18:44 +0000)]
Add default udev rules.
Update dm-ioctl.h comments.

15 years agoAdd udev checks.
Alasdair Kergon [Mon, 3 Aug 2009 18:33:08 +0000 (18:33 +0000)]
Add udev checks.

15 years agoAdd warnings to check udev did what it was meant to.
Alasdair Kergon [Mon, 3 Aug 2009 18:31:53 +0000 (18:31 +0000)]
Add warnings to check udev did what it was meant to.

15 years agoOnly create LV symlinks on ACTIVATE not PRELOAD.
Alasdair Kergon [Mon, 3 Aug 2009 18:09:25 +0000 (18:09 +0000)]
Only create LV symlinks on ACTIVATE not PRELOAD.
(This is the udev behaviour - but does this change break anything?)

15 years agoManage without dm_udev_cleanup?
Alasdair Kergon [Mon, 3 Aug 2009 18:01:45 +0000 (18:01 +0000)]
Manage without dm_udev_cleanup?

15 years agoMove FIXME from user visible lvm2app.h to lvm_vg.c
Dave Wysochanski [Mon, 3 Aug 2009 12:11:45 +0000 (12:11 +0000)]
Move FIXME from user visible lvm2app.h to lvm_vg.c

Author: Dave Wysochanski <dwysocha@redhat.com>

15 years agocleanup some ignored return values & 'stack's
Alasdair Kergon [Mon, 3 Aug 2009 11:20:15 +0000 (11:20 +0000)]
cleanup some ignored return values & 'stack's

15 years agodeal with error-related FIXMEs
Alasdair Kergon [Mon, 3 Aug 2009 11:01:26 +0000 (11:01 +0000)]
deal with error-related FIXMEs

15 years agolvchange --noudevsync
Alasdair Kergon [Mon, 3 Aug 2009 10:58:40 +0000 (10:58 +0000)]
lvchange --noudevsync

15 years agoMake lvconvert honour log mirror options combined with downconversion.
Petr Rockai [Sun, 2 Aug 2009 21:59:21 +0000 (21:59 +0000)]
Make lvconvert honour log mirror options combined with downconversion.
(RHBZ 463272)

15 years agoSlightly refactor mirror log conversions in lvconvert.
Petr Rockai [Sun, 2 Aug 2009 21:56:29 +0000 (21:56 +0000)]
Slightly refactor mirror log conversions in lvconvert.

15 years agoAdd test for RHBZ 481793 (passing, thanks to vg_read changes checked in
Petr Rockai [Sun, 2 Aug 2009 21:45:45 +0000 (21:45 +0000)]
Add test for RHBZ 481793 (passing, thanks to vg_read changes checked in
previously).

15 years agoAllow LV suspend while --ignorelockingfailure is in force.
Petr Rockai [Sun, 2 Aug 2009 21:03:09 +0000 (21:03 +0000)]
Allow LV suspend while --ignorelockingfailure is in force.

15 years agoUpdate synopsis in lvconvert manpage to mention --repair.
Petr Rockai [Sun, 2 Aug 2009 21:01:51 +0000 (21:01 +0000)]
Update synopsis in lvconvert manpage to mention --repair.

15 years agoFix error handling of device-related stat() calls to be ENOENT aware.
Mike Snitzer [Sat, 1 Aug 2009 17:14:52 +0000 (17:14 +0000)]
Fix error handling of device-related stat() calls to be ENOENT aware.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agoRetrieve MD sysfs attributes for MD partitions
Mike Snitzer [Sat, 1 Aug 2009 17:11:02 +0000 (17:11 +0000)]
Retrieve MD sysfs attributes for MD partitions

Rename private _primary_dev() to a public get_primary_dev() and reuse it
to allow retrieval of the MD sysfs attributes (raid level, etc) for MD
partitions.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agoImprove ability to lookup primary device associated with a partition
Mike Snitzer [Sat, 1 Aug 2009 17:09:48 +0000 (17:09 +0000)]
Improve ability to lookup primary device associated with a partition

Improve lib/device/device.c:_primary_dev()'s ability to look up the
primary device associated with all partitions; including blkext
(e.g. partitions directly on MD).  The same will also work for obscure
sysfs paths; e.g.: paths with mangled names like the HP cciss driver
uses: /sys/block/cciss!c0d0/cciss!c0d0p1/

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agoAdd devices/data_alignment_detection to lvm.conf.
Mike Snitzer [Sat, 1 Aug 2009 17:08:43 +0000 (17:08 +0000)]
Add devices/data_alignment_detection to lvm.conf.

Adds 'data_alignment_detection' config option to the devices section of
lvm.conf.  If your kernel provides topology information in sysfs (linux
>= 2.6.31) for the Physical Volume, the start of data area will be
aligned on a multiple of the ’minimum_io_size’ or ’optimal_io_size’
exposed in sysfs.

minimum_io_size is used if optimal_io_size is undefined (0).  If both
md_chunk_alignment and data_alignment_detection are enabled the result
of data_alignment_detection is used.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agoAdd devices/data_alignment_offset_detection to lvm.conf.
Mike Snitzer [Sat, 1 Aug 2009 17:07:36 +0000 (17:07 +0000)]
Add devices/data_alignment_offset_detection to lvm.conf.

If the pvcreate --dataalignmentoffset option is not specified the start
of a PV's aligned data area will be shifted by the associated
'alignment_offset' exposed in sysfs (unless
devices/data_alignment_offset_detection is disabled in lvm.conf).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agodummy makefile for now to keep builds happy
Alasdair Kergon [Fri, 31 Jul 2009 18:41:19 +0000 (18:41 +0000)]
dummy makefile for now to keep builds happy

15 years agoSet cookies in activation code and wait for udev to complete processing.
Alasdair Kergon [Fri, 31 Jul 2009 18:30:31 +0000 (18:30 +0000)]
Set cookies in activation code and wait for udev to complete processing.

15 years agoAdd udevcomplete and --noudevwait to dmsetup.
Alasdair Kergon [Fri, 31 Jul 2009 17:51:45 +0000 (17:51 +0000)]
Add udevcomplete and --noudevwait to dmsetup.

15 years agoanother fixme
Alasdair Kergon [Fri, 31 Jul 2009 16:57:06 +0000 (16:57 +0000)]
another fixme

15 years ago Add libdevmapper functions to support synchronisation with udev.
Alasdair Kergon [Fri, 31 Jul 2009 15:53:11 +0000 (15:53 +0000)]
  Add libdevmapper functions to support synchronisation with udev.

15 years agoFix compile warnings from recently added log_very_verbose() in _text_pv_write()
Mike Snitzer [Fri, 31 Jul 2009 14:23:06 +0000 (14:23 +0000)]
Fix compile warnings from recently added log_very_verbose() in _text_pv_write()

15 years agoconfigure --udevdir
Alasdair Kergon [Fri, 31 Jul 2009 13:31:53 +0000 (13:31 +0000)]
configure --udevdir

15 years agoadd not-yet-working udev options
Alasdair Kergon [Fri, 31 Jul 2009 11:51:23 +0000 (11:51 +0000)]
add not-yet-working udev options

15 years agoPrepare for udev synchronisation code. (options don't work yet)
Alasdair Kergon [Fri, 31 Jul 2009 11:49:53 +0000 (11:49 +0000)]
Prepare for udev synchronisation code.  (options don't work yet)

15 years agoDisable the "new pe_start policy"
Mike Snitzer [Thu, 30 Jul 2009 21:15:17 +0000 (21:15 +0000)]
Disable the "new pe_start policy"

Documented which use-cases force the reinstatement of the nuanced
handling of pe_start.  As soon as orphan PVs are eliminated much of this
will no longer be a concern ('preserve_pe_start' can be reenabled in
.pv_setup).

Added defensive 'if (pv->pe_align)' check in _text_pv_write()'s pe_start
loop.

15 years agoRevert 'preserve_pe_start' related code in _text_pv_setup
Mike Snitzer [Thu, 30 Jul 2009 18:40:22 +0000 (18:40 +0000)]
Revert 'preserve_pe_start' related code in _text_pv_setup

If pv_setup was given a non-zero pe_start it would short-circuit
establishing a default pv->pe_align.  pv->pe_align=0 would result
in a divide by zero in _mda_setup().  'vgconvert -M2 $vgname' hit this.

.pv_write still properly preserves pe_start if it was supplied.

15 years agoAdd --dataalignmentoffset to pvcreate to shift start of aligned data area
Mike Snitzer [Thu, 30 Jul 2009 17:45:28 +0000 (17:45 +0000)]
Add --dataalignmentoffset to pvcreate to shift start of aligned data area

Adds pe_align_offset to 'struct physical_volume'; is initialized with
set_pe_align_offset().  After pe_start is established pe_align_offset is
added to it.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agoPreserve pe_start in .pv_setup and .pv_write if pe_start was supplied.
Mike Snitzer [Thu, 30 Jul 2009 17:42:33 +0000 (17:42 +0000)]
Preserve pe_start in .pv_setup and .pv_write if pe_start was supplied.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agoRemove legacy support for preserving pe_start if a PV already has data
Mike Snitzer [Thu, 30 Jul 2009 17:41:01 +0000 (17:41 +0000)]
Remove legacy support for preserving pe_start if a PV already has data
areas.

This preserved pe_start would quickly be readjusted to follow the first
mda anyway.  An example use-case that hit this code path is: running
pvcreate on an already existing PV _without_ a preceeding pvremove.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agoFix _mda_setup() to not check first mda's size before pe_align rounding.
Mike Snitzer [Thu, 30 Jul 2009 17:19:31 +0000 (17:19 +0000)]
Fix _mda_setup() to not check first mda's size before pe_align rounding.

Without this fix rounding the end of the first mda to a pe_align
boundary could silently exceed the disk_size.

Final 'if (start1 + mda_size1 > disk_size)' block serves as a safety
net.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agoFormalize pe_start policy as split between .pv_setup and .pv_write.
Mike Snitzer [Thu, 30 Jul 2009 17:18:03 +0000 (17:18 +0000)]
Formalize pe_start policy as split between .pv_setup and .pv_write.

Document existing pe_start policy.
Fix issue in _text_pv_setup() where existing pe_start case could have
the pv->pe_start set to pv->pe_align even though pe_start shouldn't ever
change.

vgconvert and pvcreate have a facility to preserve the existing start
of the on-disk data extents, known as pe_start.
They indicate this by passing the existing value to the pvsetup function
which must preserve it.

This patch avoids one particular case where the value could get
changed incorrectly now that the alignment settings are configurable.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
15 years agoDocument the -I option to clvmd
Christine Caulfield [Thu, 30 Jul 2009 13:32:38 +0000 (13:32 +0000)]
Document the -I option to clvmd

15 years agocorosync not cman...
Alasdair Kergon [Thu, 30 Jul 2009 12:31:45 +0000 (12:31 +0000)]
corosync not cman...

15 years agoFix configure script to handle multiple clvmd selections.
Alasdair Kergon [Thu, 30 Jul 2009 12:25:42 +0000 (12:25 +0000)]
Fix configure script to handle multiple clvmd selections.

15 years ago Fix lvm2app.pc installation filename.
Alasdair Kergon [Wed, 29 Jul 2009 19:24:11 +0000 (19:24 +0000)]
  Fix lvm2app.pc installation filename.

15 years agoDon't include lvm-version.h in exported liblvm file!
Dave Wysochanski [Wed, 29 Jul 2009 18:38:27 +0000 (18:38 +0000)]
Don't include lvm-version.h in exported liblvm file!

Move include of lvm-version.h into lvm_base.c where it belongs.

15 years agoRemove unneeded struct on return from lvm_lv_create_linear.
Dave Wysochanski [Wed, 29 Jul 2009 16:47:53 +0000 (16:47 +0000)]
Remove unneeded struct on return from lvm_lv_create_linear.

Results in compile warning.

15 years agorenamed include files
Alasdair Kergon [Wed, 29 Jul 2009 14:06:31 +0000 (14:06 +0000)]
renamed include files

15 years agoRemove pv_t, vg_t & lv_t handles from lib. Only liblvm uses them.
Alasdair Kergon [Wed, 29 Jul 2009 13:26:01 +0000 (13:26 +0000)]
Remove pv_t, vg_t & lv_t handles from lib.  Only liblvm uses them.
Rename lvm.h to lvm2app.h for now.

15 years agoRemove old custom list macros and replace with libdevmapper list
Jonathan Earl Brassow [Tue, 28 Jul 2009 21:14:12 +0000 (21:14 +0000)]
Remove old custom list macros and replace with libdevmapper list
macros.

15 years agopost-release
Alasdair Kergon [Tue, 28 Jul 2009 20:47:40 +0000 (20:47 +0000)]
post-release

15 years ago\n
Alasdair Kergon [Tue, 28 Jul 2009 20:41:41 +0000 (20:41 +0000)]
\n

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