All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH v2] Add --align parameter to pvcreate
Date: Mon, 02 Feb 2009 18:15:56 +0100	[thread overview]
Message-ID: <49872A4C.6090908@redhat.com> (raw)
In-Reply-To: <1233592128.5366.13.camel@localhost.localdomain>

Dave Wysochanski wrote:
>>  # Miscellaneous global LVM2 settings
>>  global {
>> -    
>> +
>>      # The file creation mask for any files and directories created.
>>      # Interpreted as octal if the first digit is zero.
>>      umask = 077
> 
> Uintended whitespace changes?

well, intended (whitespace cleaning),  but not necessary for patch:-)


>> -unsigned long pe_align(struct physical_volume *pv)
>> +unsigned long pe_align(struct physical_volume *pv, unsigned long force_pe_align)
> 
> 
> Inconsistent naming?  You have 'req_pe_align', 'align', and
> 'force_pe_align'.

...and physicalvolumealign_ARG, and pv_alignment in lvm.conf

I know, but if it is consistent in one place, it breaks somewhere else.
The idea was
	align is read from --align CLI parameter in pvcreate.c

(and is --align for commandline ok here?)

Others were just prefixes (req_/force_)

So if we have some name consistency rules, I'll rename it according it,
I just need to know these rules:-)

See for example this 
	pp->pe_start = pv_pe_start(existing_pv);
	pp->extent_size = pv_pe_size(existing_pv);
	pp->extent_count = pv_pe_count(existing_pv);

so pe_size or extent_size? align or pe_align or ... ?


>> +.BR \-\-align " size"
>> +Force align start of the payload to specified boundary (to align
>> +with underlying RAID device stripe or chunk).
>> +Note that you should use properly sized physical extent later
>> +in vgcreate to correctly align all Logical Volumes start too.
>> +.TP
> 
> Might be worth adding a sentence or two of how to query / derive this
> value.  I would guess someone will use this value, then want to verify
> it is set correctly.  I know we don't store it so we can't add it to the
> reporting code as a field but we can point out the use of pe_start and
> pe_size.

Yes, so I'll add

"To print the current data payload offset for the Physical Volume use
pvs -o +pe_start command.  The reported value is always multiple
of requested alignment value".

Any other suggestions?

> Ack other than the comments above.
> 
> I reviewed the whole patch and did limited testing.

Thanks for review!

Milan
--
mbroz at redhat.com



  reply	other threads:[~2009-02-02 17:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-28 12:07 [PATCH] Add --align parameter to pvcreate Milan Broz
2009-01-30 11:56 ` [PATCH v2] " Milan Broz
2009-02-02 16:28   ` Dave Wysochanski
2009-02-02 17:15     ` Milan Broz [this message]
2009-02-02 23:29       ` Dave Wysochanski
2009-02-03 13:15         ` [PATCH v3] " Milan Broz

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=49872A4C.6090908@redhat.com \
    --to=mbroz@redhat.com \
    --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.