All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: The development of GNU GRUB <grub-devel@gnu.org>,
	linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [f2fs-dev] [PATCH v6] F2FS support
Date: Mon, 22 Feb 2016 12:25:26 +0300	[thread overview]
Message-ID: <56CAD406.3030508@gmail.com> (raw)
In-Reply-To: <20160108194132.GA17464@jaegeuk.aosp>

08.01.2016 22:41, Jaegeuk Kim пишет:
> Change log from v5:
>  o fix build warning for ARM, reported by Michael Zimmermann
> 
> Thanks to Michael for testing this patch.
> 
> -- >8 --
> From 284fd66662a6d5e07770cc021c8f59b538471c35 Mon Sep 17 00:00:00 2001
> From: Jaegeuk Kim <jaegeuk@kernel.org>
> Date: Tue, 17 Nov 2015 12:45:13 -0800
> Subject: [PATCH] F2FS support
> 
> "F2FS (Flash-Friendly File System) is flash-friendly file system which was merged
> into Linux kernel v3.8 in 2013.
> 
> The motive for F2FS was to build a file system that from the start, takes into
> account the characteristics of NAND flash memory-based storage devices (such as
> solid-state disks, eMMC, and SD cards).
> 
> F2FS was designed on a basis of a log-structured file system approach, which
> remedies some known issues of the older log structured file systems, such as
> the snowball effect of wandering trees and high cleaning overhead. In addition,
> since a NAND-based storage device shows different characteristics according to
> its internal geometry or flash memory management scheme (such as the Flash
> Translation Layer or FTL), it supports various parameters not only for
> configuring on-disk layout, but also for selecting allocation and cleaning
> algorithm.", quote by https://en.wikipedia.org/wiki/F2FS.
> 
> The source codes for F2FS are available from:
> 
> http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs.git
> http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git
> 

Sorry for delay. I'm fine with it (with single nitpick, see below);
Vladimir has final word whether this can be committed.
...

> +static grub_ssize_t
> +grub_f2fs_read_file (grub_fshelp_node_t node,
> +		grub_disk_read_hook_t read_hook, void *read_hook_data,
> +		grub_off_t pos, grub_size_t len, char *buf)
> +{
> +  struct grub_f2fs_inode *inode = &node->inode.i;
> +  grub_off_t filesize = grub_f2fs_file_size (inode);
> +  char *inline_addr = __inline_addr (inode);
> +
> +  if (inode->i_inline & F2FS_INLINE_DATA)
> +    {
> +      if (pos > filesize || filesize > MAX_INLINE_DATA)

GRUB checks that pos < filesize before calling into fs so this is
redundant. And filesize check is static so can be done in ->open.



WARNING: multiple messages have this Message-ID (diff)
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: The development of GNU GRUB <grub-devel@gnu.org>,
	linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [PATCH v6] F2FS support
Date: Mon, 22 Feb 2016 12:25:26 +0300	[thread overview]
Message-ID: <56CAD406.3030508@gmail.com> (raw)
In-Reply-To: <20160108194132.GA17464@jaegeuk.aosp>

08.01.2016 22:41, Jaegeuk Kim пишет:
> Change log from v5:
>  o fix build warning for ARM, reported by Michael Zimmermann
> 
> Thanks to Michael for testing this patch.
> 
> -- >8 --
> From 284fd66662a6d5e07770cc021c8f59b538471c35 Mon Sep 17 00:00:00 2001
> From: Jaegeuk Kim <jaegeuk@kernel.org>
> Date: Tue, 17 Nov 2015 12:45:13 -0800
> Subject: [PATCH] F2FS support
> 
> "F2FS (Flash-Friendly File System) is flash-friendly file system which was merged
> into Linux kernel v3.8 in 2013.
> 
> The motive for F2FS was to build a file system that from the start, takes into
> account the characteristics of NAND flash memory-based storage devices (such as
> solid-state disks, eMMC, and SD cards).
> 
> F2FS was designed on a basis of a log-structured file system approach, which
> remedies some known issues of the older log structured file systems, such as
> the snowball effect of wandering trees and high cleaning overhead. In addition,
> since a NAND-based storage device shows different characteristics according to
> its internal geometry or flash memory management scheme (such as the Flash
> Translation Layer or FTL), it supports various parameters not only for
> configuring on-disk layout, but also for selecting allocation and cleaning
> algorithm.", quote by https://en.wikipedia.org/wiki/F2FS.
> 
> The source codes for F2FS are available from:
> 
> http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs.git
> http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git
> 

Sorry for delay. I'm fine with it (with single nitpick, see below);
Vladimir has final word whether this can be committed.
...

> +static grub_ssize_t
> +grub_f2fs_read_file (grub_fshelp_node_t node,
> +		grub_disk_read_hook_t read_hook, void *read_hook_data,
> +		grub_off_t pos, grub_size_t len, char *buf)
> +{
> +  struct grub_f2fs_inode *inode = &node->inode.i;
> +  grub_off_t filesize = grub_f2fs_file_size (inode);
> +  char *inline_addr = __inline_addr (inode);
> +
> +  if (inode->i_inline & F2FS_INLINE_DATA)
> +    {
> +      if (pos > filesize || filesize > MAX_INLINE_DATA)

GRUB checks that pos < filesize before calling into fs so this is
redundant. And filesize check is static so can be done in ->open.


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

  reply	other threads:[~2016-02-22  9:25 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-24  8:19 [PATCH] F2FS support Jaegeuk Kim
2015-03-24  8:19 ` Jaegeuk Kim
2015-03-28  7:31 ` Andrei Borzenkov
2015-03-28  7:31   ` Andrei Borzenkov
2015-03-28 20:43   ` Jaegeuk Kim
2015-03-28 20:43     ` Jaegeuk Kim
2015-03-28 21:00     ` Andrei Borzenkov
2015-03-28 21:00       ` Andrei Borzenkov
2015-04-03 22:48   ` Jaegeuk Kim
2015-04-03 22:48     ` Jaegeuk Kim
2015-04-03 22:49 ` [PATCH v2] " Jaegeuk Kim
2015-04-03 22:49   ` Jaegeuk Kim
2015-04-29 20:48   ` [f2fs-dev] " Jaegeuk Kim
2015-04-29 20:48     ` Jaegeuk Kim
2015-04-30  3:32     ` Andrei Borzenkov
2015-04-30  3:32       ` Andrei Borzenkov
2015-05-02 17:15   ` Andrei Borzenkov
2015-05-02 17:15     ` Andrei Borzenkov
2015-05-03  6:28     ` 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-11-19 21:28     ` Jaegeuk Kim
2015-12-14  8:28     ` Andrei Borzenkov
2015-12-14  8:28       ` Andrei Borzenkov
2015-12-15  0:30       ` [f2fs-dev] " Jaegeuk Kim
2015-12-15  0:30         ` Jaegeuk Kim
2015-12-15  0:34       ` [f2fs-dev] [PATCH v4] " Jaegeuk Kim
2015-12-15  0:34         ` Jaegeuk Kim
2015-12-15  8:34         ` [f2fs-dev] " Andrei Borzenkov
2015-12-15  8:34           ` Andrei Borzenkov
2015-12-15 18:08           ` [f2fs-dev] " Jaegeuk Kim
2015-12-15 18:08             ` Jaegeuk Kim
2015-12-15 18:14         ` [f2fs-dev] [PATCH v5] " Jaegeuk Kim
2015-12-15 18:14           ` Jaegeuk Kim
2016-01-07 19:37           ` [f2fs-dev] " Michael Zimmermann
2016-01-07 19:37             ` Michael Zimmermann
2016-01-08 19:41           ` [f2fs-dev] [PATCH v6] " Jaegeuk Kim
2016-01-08 19:41             ` Jaegeuk Kim
2016-02-22  9:25             ` Andrei Borzenkov [this message]
2016-02-22  9:25               ` Andrei Borzenkov
2016-02-22 18:21               ` [f2fs-dev] " Jaegeuk Kim
2016-02-22 18:21                 ` Jaegeuk Kim
2016-02-22 18:25             ` [f2fs-dev] [PATCH v7] " Jaegeuk Kim
2016-02-22 18:25               ` Jaegeuk Kim
2016-03-01 19:52               ` [2.02] Re: [f2fs-dev] " Andrei Borzenkov
2016-03-01 19:52                 ` Andrei Borzenkov
2016-03-02 23:20                 ` Michael Zimmermann
2016-03-02 23:20                   ` Michael Zimmermann
2016-03-03 21:35                   ` Jaegeuk Kim
2016-03-03 21:35                     ` [2.02] " Jaegeuk Kim
2016-03-03 21:36                 ` [2.02] Re: [f2fs-dev] [PATCH v8] " Jaegeuk Kim
2016-03-03 21:36                   ` Jaegeuk Kim
2016-08-04 17:06                   ` [f2fs-dev] [2.02] " Jaegeuk Kim
2016-08-04 17:06                     ` Jaegeuk Kim
2016-08-05 10:57                     ` [f2fs-dev] " Andrei Borzenkov
2016-08-05 10:57                       ` Andrei Borzenkov
2016-08-05 18:07                       ` [f2fs-dev] " Jaegeuk Kim
2016-08-05 18:07                         ` Jaegeuk Kim
2016-08-05 19:17                         ` [f2fs-dev] " Michael Zimmermann
2016-08-05 19:17                           ` Michael Zimmermann

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=56CAD406.3030508@gmail.com \
    --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 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.