From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
Olaf Hering <olaf@aepfle.de>, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH] blkif.h: enhance comments related to the discard feature
Date: Fri, 24 Jan 2014 09:30:28 -0500 [thread overview]
Message-ID: <20140124143028.GA12946@phenom.dumpdata.com> (raw)
In-Reply-To: <52E0DEAC020000780011603E@nat28.tlf.novell.com>
On Thu, Jan 23, 2014 at 08:19:40AM +0000, Jan Beulich wrote:
> >>> On 22.01.14 at 22:14, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> > On Fri, Jan 17, 2014 at 03:09:13PM +0000, Jan Beulich wrote:
> >> >>> On 14.01.14 at 22:57, Olaf Hering <olaf@aepfle.de> wrote:
> >> > @@ -323,9 +324,14 @@
> >> > * For full interoperability, block front and backends should publish
> >> > * identical ring parameters, adjusted for unit differences, to the
> >> > * XenStore nodes used in both schemes.
> >> > - * (4) Devices that support discard functionality may internally allocate
> >> > - * space (discardable extents) in units that are larger than the
> >> > - * exported logical block size.
> >> > + * (4) Devices that support discard functionality may internally allocate
> >> > space
> >> > + * (discardable extents) in units that are larger than the exported
> >> > logical
> >> > + * block size. If the backing device has such discardable extents the
> >> > + * backend must provide both discard-granularity and discard-alignment.
> > ^^^^ - MAY
>
> I think the intention is to say that these two should go together,
> i.e. specifying just one of them is a mistake.
The 'and' in that sentence covers that I think?
My reading with 'must' is that 'features-discard' MUST have both
discard-granularity and discard-alignment. But that is not the case
- even if the device does support them - it does not have to
expose them.
>
> Jan
>
> >> > + * Backends supporting discard should include discard-granularity and
> > ^^^^^ - MAY
> >> > + * discard-alignment even if it supports discarding individual sectors.
> >> > + * Frontends should assume discard-alignment == 0 and discard-granularity
> >> > ==
> >> > + * sector size if these keys are missing.
> >> > * (5) The discard-alignment parameter allows a physical device to be
> >> > * partitioned into virtual devices that do not necessarily begin or
> >> > * end on a discardable extent boundary.
>
>
next prev parent reply other threads:[~2014-01-24 14:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-14 21:57 [PATCH] blkif.h: enhance comments related to the discard feature Olaf Hering
2014-01-17 15:09 ` Jan Beulich
2014-01-17 15:51 ` Konrad Rzeszutek Wilk
2014-01-22 21:14 ` Konrad Rzeszutek Wilk
2014-01-23 8:19 ` Jan Beulich
2014-01-24 14:30 ` Konrad Rzeszutek Wilk [this message]
2014-01-24 14:44 ` Jan Beulich
2014-01-27 10:24 ` Olaf Hering
2014-01-17 18:02 ` Keir Fraser
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=20140124143028.GA12946@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=olaf@aepfle.de \
--cc=xen-devel@lists.xenproject.org \
/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.