From: Theodore Ts'o <tytso@mit.edu>
To: HanBin Yoon <hanbinyoon@google.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: [RFC] Draft Linux kernel interfaces for ZBC drives
Date: Tue, 4 Feb 2014 11:27:33 -0500 [thread overview]
Message-ID: <20140204162733.GE12768@thunk.org> (raw)
In-Reply-To: <loom.20140204T025737-783@post.gmane.org>
On Tue, Feb 04, 2014 at 02:00:58AM +0000, HanBin Yoon wrote:
>
> Just a minor point, but I noticed that the specification (14-010r1) had an
> ordering for these flags in the zone descriptor format (Table 6) in a
> different way from the above #define's. I thought it might be handy to have
> these sync up? For example:
Sure, making them line up would mean make it a little easier to
translate from the response from the drive to the Linux kernel
structure.
> > * If free_sectors_criteria is positive, then return zones that have
> > * at least that many sectors available to be written. If it is zero,
> > * then match all zones. If free_sectors_criteria is negative, then
> > * return the zones that match the following criteria:
> > *
> > * -1 Return all read-only zones
> > * -2 Return all offline zones
> > * -3 Return all zones where the write ptr != the checkpoint ptr
>
> "all" above for -1/-2/-3 is still limited by (int) max_zones, correct?
Good point, that is what I intended. We can better clarify this
replacing "Return all..." with "Match all...".
> I was also wondering whether the returned (struct) zone_status'es should
> have any ordering, e.g., if they should preserve the ordering given by the
> drive. According to the specification for REPORT ZONES, "The descriptors
> shall be sorted in ascending order based on the zone start LBA value." If
> this ordering is preserved, maybe it will help to reduce seek distance
> (assuming correlation between ascending LBA and going from OD to ID)?
Yes, I was assuming they would be returned in ascending LBA order,
but we should explicitly specify this in the interface specification.
Cheers,
- Ted
next prev parent reply other threads:[~2014-02-04 16:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-31 5:38 [RFC] Draft Linux kernel interfaces for ZBC drives Theodore Ts'o
2014-01-31 13:07 ` Matthew Wilcox
2014-01-31 15:44 ` Theodore Ts'o
2014-02-03 21:01 ` Jeff Moyer
2014-02-03 21:07 ` Martin K. Petersen
2014-02-03 21:38 ` Theodore Ts'o
2014-02-03 22:26 ` Jeff Moyer
2014-02-03 21:03 ` Eric Sandeen
2014-02-03 22:17 ` Theodore Ts'o
2014-02-04 2:00 ` HanBin Yoon
2014-02-04 16:27 ` Theodore Ts'o [this message]
2014-02-11 18:43 ` [RFC] Draft Linux kernel interfaces for SMR/ZBC drives Theodore Ts'o
2014-02-11 19:04 ` Andreas Dilger
2014-02-11 19:53 ` Theodore Ts'o
2014-02-13 2:08 ` Andreas Dilger
2014-02-13 3:09 ` Theodore Ts'o
2014-02-21 10:02 ` [RFC] Draft Linux kernel interfaces for ZBC drives Rohan Puri
2014-02-21 15:49 ` Theodore Ts'o
2014-02-25 9:36 ` Rohan Puri
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=20140204162733.GE12768@thunk.org \
--to=tytso@mit.edu \
--cc=hanbinyoon@google.com \
--cc=linux-fsdevel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).