From: agk@sourceware.org <agk@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 doc/example.conf lib/metadata/metadata.c ...
Date: 19 Sep 2008 05:33:38 -0000 [thread overview]
Message-ID: <20080919053338.29607.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2008-09-19 05:33:37
Modified files:
doc : example.conf
lib/metadata : metadata.c
lib/config : defaults.h
. : WHATS_NEW
Log message:
Add device/md_chunk_alignment to lvm.conf
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/doc/example.conf.diff?cvsroot=lvm2&r1=1.36&r2=1.37
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.c.diff?cvsroot=lvm2&r1=1.189&r2=1.190
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/defaults.h.diff?cvsroot=lvm2&r1=1.42&r2=1.43
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.958&r2=1.959
--- LVM2/doc/example.conf 2008/04/10 18:50:37 1.36
+++ LVM2/doc/example.conf 2008/09/19 05:33:36 1.37
@@ -93,6 +93,11 @@
# 1 enables; 0 disables.
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.
+ # 1 enables; 0 disables.
+ md_chunk_alignment = 1
+
# If, while scanning the system for PVs, LVM2 encounters a device-mapper
# device that has its I/O suspended, it waits for it to become accessible.
# Set this to 1 to skip such devices. This should only be needed
--- LVM2/lib/metadata/metadata.c 2008/09/19 05:19:09 1.189
+++ LVM2/lib/metadata/metadata.c 2008/09/19 05:33:36 1.190
@@ -27,6 +27,7 @@
#include "display.h"
#include "locking.h"
#include "archiver.h"
+#include "defaults.h"
#include <sys/param.h>
@@ -74,7 +75,9 @@
/*
* Align to chunk size of underlying md device if present
*/
- if (pv->dev)
+ if (pv->dev &&
+ 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));
--- LVM2/lib/config/defaults.h 2008/06/24 22:48:53 1.42
+++ LVM2/lib/config/defaults.h 2008/09/19 05:33:37 1.43
@@ -32,6 +32,7 @@
#define DEFAULT_PROC_DIR "/proc"
#define DEFAULT_SYSFS_SCAN 1
#define DEFAULT_MD_COMPONENT_DETECTION 1
+#define DEFAULT_MD_CHUNK_ALIGNMENT 1
#define DEFAULT_IGNORE_SUSPENDED_DEVICES 1
#define DEFAULT_LOCK_DIR "/var/lock/lvm"
--- LVM2/WHATS_NEW 2008/09/19 05:19:08 1.958
+++ LVM2/WHATS_NEW 2008/09/19 05:33:37 1.959
@@ -1,5 +1,6 @@
Version 2.02.40 -
================================
+ Add device/md_chunk_alignment to lvm.conf.
Pass struct physical_volume to pe_align and adjust for md chunk size.
Store sysfs location in struct cmd_context.
Avoid shuffling remaining mirror images when removing one, retaining primary.
reply other threads:[~2008-09-19 5:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080919053338.29607.qmail@sourceware.org \
--to=agk@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.