From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: Pawel Baldysiak <pawel.baldysiak@intel.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: [PATCH 0/4] IMSM: Add support for 4Kn sector size drives
Date: Wed, 16 Nov 2016 10:14:36 -0500 [thread overview]
Message-ID: <wrfj1syblan7.fsf@redhat.com> (raw)
In-Reply-To: <1478788098-32041-1-git-send-email-pawel.baldysiak@intel.com> (Pawel Baldysiak's message of "Thu, 10 Nov 2016 15:28:14 +0100")
Pawel Baldysiak <pawel.baldysiak@intel.com> writes:
> This patch set adds support for IMSM with 4Kn sector size drives
> First patch adds the generic function for receiving sector size,
> rest are IMSM specific.
> Internal calculation are still based on 512-bytes sector,
> variables are converted during read/write from/to member drive.
> Mixing of devices with different sector size is not allowed.
>
> Pawel Baldysiak (4):
> Add function for getting member drive sector size
> IMSM: Read and store device sector size
> IMSM: Add support for 4Kn sector size drives
> IMSM: 4Kn drives support - adapt general migration record
>
> mdadm.h | 1 +
> super-intel.c | 315 +++++++++++++++++++++++++++++++++++++++++++++-------------
> super1.c | 3 +-
> util.c | 16 +++
> 4 files changed, 265 insertions(+), 70 deletions(-)
Hi Pawel,
This set mostly looks good - a couple of comments:
+int get_dev_sector_size(int fd, char *dname, unsigned int *sectsizep)
This introduces a *dname but nowhere in your code is it actually used. I
am not necessarily against this, and it looks like we do it in some
places, but not others. However do you anticipate using it in future
changes you have lined up?
I noticed you changed hard coded 512 byte limits to hard coded 4096
when rounding up sizes for posix_memalign() etc. Wouldn't it be cleaner
to introduce a MAX_SECTOR_SIZE or similar?
Cheers,
Jes
prev parent reply other threads:[~2016-11-16 15:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-10 14:28 [PATCH 0/4] IMSM: Add support for 4Kn sector size drives Pawel Baldysiak
2016-11-10 14:28 ` [PATCH 1/4] Add function for getting member drive sector size Pawel Baldysiak
2016-11-10 14:28 ` [PATCH 2/4] IMSM: Read and store device " Pawel Baldysiak
2016-11-10 14:28 ` [PATCH 3/4] IMSM: Add support for 4Kn sector size drives Pawel Baldysiak
2016-11-10 14:28 ` [PATCH 4/4] IMSM: 4Kn drives support - adapt general migration record Pawel Baldysiak
2016-11-16 15:14 ` Jes Sorensen [this message]
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=wrfj1syblan7.fsf@redhat.com \
--to=jes.sorensen@redhat.com \
--cc=linux-raid@vger.kernel.org \
--cc=pawel.baldysiak@intel.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.