grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: grub-devel@gnu.org, linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [PATCH] F2FS support
Date: Sun, 29 Mar 2015 00:00:11 +0300	[thread overview]
Message-ID: <20150329000011.7163a2b7@opensuse.site> (raw)
In-Reply-To: <20150328204318.GB81167@jaegeuk-mac02.hsd1.ca.comcast.net>

В Sat, 28 Mar 2015 13:43:18 -0700
Jaegeuk Kim <jaegeuk@kernel.org> пишет:

> Hi Andrei,
> 
> On Sat, Mar 28, 2015 at 10:31:55AM +0300, Andrei Borzenkov wrote:
> > В Tue, 24 Mar 2015 01:19:00 -0700
> > Jaegeuk Kim <jaegeuk@kernel.org> пишет:
> > 
> > >  * Makefile.util.def: Add f2fs.c.
> > >  * doc/grub.texi: Add f2fs description.
> > >  * grub-core/Makefile.core.def: Add f2fs module.
> > >  * grub-core/fs/f2fs.c: New file.
> > >  * tests/f2fs_test.in: New file.
> > >  * tests/util/grub-fs-tester.in: Add f2fs requirements.
> > > 
> > 
> > It's not the most useful commit message. Better would be short
> > explanation of use cases and intended platforms. I'm curious here -
> > F2FS is intended for raw flash access, on which platform(s) grub has
> > access to such devices? 
> 
> I just followed the commit convention in grub.git.

It has changed meanwhile. We are using normal git conventions now.

> > > +static grub_err_t
> > > +grub_f2fs_read_sb (struct grub_f2fs_data *data, int block)
> > > +{
> > > +  grub_disk_t disk = data->disk;
> > > +  grub_uint64_t offset;
> > > +  grub_err_t err;
> > > +
> > > +  if (block == 0)
> > > +    offset = F2FS_SUPER_OFFSET;
> > > +  else
> > > +    offset = F2FS_BLKSIZE + F2FS_SUPER_OFFSET;
> > > +
> > 
> > Please name it "secondary" or similar instead of "block" to avoid
> > confusion. You do not really want to read arbitrary block, right?
> >

Actually it makes more sense just to pass offset directly to eliminate
useless computation. 


  reply	other threads:[~2015-03-28 21:00 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-24  8:19 [PATCH] F2FS support Jaegeuk Kim
2015-03-28  7:31 ` Andrei Borzenkov
2015-03-28 20:43   ` Jaegeuk Kim
2015-03-28 21:00     ` Andrei Borzenkov [this message]
2015-04-03 22:48   ` Jaegeuk Kim
2015-04-03 22:49 ` [PATCH v2] " Jaegeuk Kim
2015-04-29 20:48   ` [f2fs-dev] " Jaegeuk Kim
2015-04-30  3:32     ` Andrei Borzenkov
2015-05-02 17:15   ` Andrei Borzenkov
2015-05-03  6:28     ` Andrei Borzenkov
2015-05-07 14:51     ` Vladimir 'φ-coder/phcoder' Serbinenko
2015-05-07 14:57       ` Andrei Borzenkov
2015-11-19 21:28   ` [PATCH v3] " Jaegeuk Kim
2015-12-14  8:28     ` Andrei Borzenkov
2015-12-15  0:30       ` [f2fs-dev] " Jaegeuk Kim
2015-12-15  0:34       ` [f2fs-dev] [PATCH v4] " Jaegeuk Kim
2015-12-15  8:34         ` Andrei Borzenkov
2015-12-15 18:08           ` Jaegeuk Kim
2015-12-15 18:14         ` [f2fs-dev] [PATCH v5] " Jaegeuk Kim
2016-01-07 19:37           ` Michael Zimmermann
2016-01-08 19:41           ` [f2fs-dev] [PATCH v6] " Jaegeuk Kim
2016-02-22  9:25             ` Andrei Borzenkov
2016-02-22 18:21               ` Jaegeuk Kim
2016-02-22 18:25             ` [f2fs-dev] [PATCH v7] " Jaegeuk Kim
2016-03-01 19:52               ` [2.02] " Andrei Borzenkov
2016-03-02 23:20                 ` Michael Zimmermann
2016-03-03 21:35                   ` Jaegeuk Kim
2016-03-03 21:36                 ` [2.02] Re: [f2fs-dev] [PATCH v8] " Jaegeuk Kim
2016-08-04 17:06                   ` [f2fs-dev] [2.02] " Jaegeuk Kim
2016-08-05 10:57                     ` Andrei Borzenkov
2016-08-05 18:07                       ` Jaegeuk Kim
2016-08-05 19:17                         ` Michael Zimmermann
  -- strict thread matches above, loose matches on Subject: below --
2017-05-04 18:12 [PATCH] " Jaegeuk Kim
2017-05-04 20:52 ` Adam Borowski
2018-03-17  9:08 林博仁
2018-03-18 20:39 ` Pete Batard
2018-03-22 14:26   ` Daniel Kiper
2018-03-22 16:47 Pete Batard
2018-03-28 12:04 ` Daniel Kiper
2018-03-29 16:08   ` Pete Batard
2018-03-31 20:47     ` Paul Menzel
2018-04-01 19:16       ` Pete Batard
2018-04-04 21:03       ` Daniel Kiper
2018-04-04 20:37     ` Daniel Kiper
2018-04-04 21:11       ` Pete Batard

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=20150329000011.7163a2b7@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    --cc=jaegeuk@kernel.org \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    /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).