LVM2 ./WHATS_NEW doc/example.conf lib/device/d ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: snitzer at sourceware.org 2009-07-06 19:04:25
Modified files:
. : WHATS_NEW doc : example.conf lib/device : dev-md.c device.h lib/metadata : metadata.c man : lvm.conf.5.in
Log message:
Use the MD device's stripe-width, instead of chunk_size, to align the data blocks of a Physical Volume that is placed directly upon an MD device.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1163&r2=1.1164
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/doc/example.conf.diff?cvsroot=lvm2&r1=1.40&r2=1.41
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/device/dev-md.c.diff?cvsroot=lvm2&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/device/device.h.diff?cvsroot=lvm2&r1=1.39&r2=1.40
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.c.diff?cvsroot=lvm2&r1=1.230&r2=1.231
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/lvm.conf.5.in.diff?cvsroot=lvm2&r1=1.2&r2=1.3
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.49 - ================================ + Update 'md_chunk_alignment' to use stripe-width to align PV data area. Update test/t-inconsistent-metadata.sh to match new vg_read interface. Add lvmcache_init() to polldaemon initialization. Convert tools to use new vg_read / vg_read_for_update.
doc/example.conf +1 -1
@@ -94,7 +94,7 @@ md_component_detection = 1 # By default, if a PV is placed directly upon an md device, LVM2 - # will align its data blocks with the the chunk_size exposed in sysfs. + # will align its data blocks with the md device's stripe-width. # 1 enables; 0 disables. md_chunk_alignment = 1
lib/device/dev-md.c +154 -28
223 lines not on this page · raw message
lib/device/device.h +1 -1
@@ -96,7 +96,7 @@/* Does device contain md superblock? If so, where? */ int dev_is_md (struct device *dev,uint64_t *sb);int dev_is_swap (struct device *dev,uint64_t *signature); -unsigned long dev_md_chunk_size (const char *sysfs_dir,struct device *dev); +unsigned long dev_md_stripe_width (const char *sysfs_dir,struct device *dev);int is_partitioned_dev (struct device *dev);
lib/metadata/metadata.c +3 -3
@@ -81,13 +81,13 @@ goto out;/* -* Align to chunk size of underlying md device if present +* Align to stripe-width of underlying md device if present */ if (find_config_tree_bool (pv->fmt->cmd,"devices/md_chunk_alignment" ,DEFAULT_MD_CHUNK_ALIGNMENT )) pv->pe_align =MAX (pv->pe_align, -dev_md_chunk_size (pv->fmt->cmd->sysfs_dir, - pv->dev)); +dev_md_stripe_width (pv->fmt->cmd->sysfs_dir, + pv->dev));log_very_verbose ("%s: Setting PE alignment to %lu sectors." ,dev_name (pv->dev), pv->pe_align);
man/lvm.conf.5.in +2 -2
@@ -134,8 +134,8 @@ has been reused without wiping the md superblocks first. .IP \fBmd_chunk_alignment\fP \(em If set to 1, and a Physical Volume is placed -directly upon an md device, LVM2 will align its data blocks with the the -chunk_size exposed in sysfs. +directly upon an md device, LVM2 will align its data blocks with the +md device's stripe-width. .IP \fBdata_alignment\fP \(em Default alignment (in KB) of start of data area when creating a new Physical Volume using the \fBlvm2\fP format.