Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1495065 > unrolled thread

[PATCH] hpfs: support FIEMAP

Started byMikulas Patocka <mikulas@twibright.com>
First post2016-10-03 23:50 +0200
Last post2016-10-05 01:10 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] hpfs: support FIEMAP Mikulas Patocka <mikulas@twibright.com> - 2016-10-03 23:50 +0200
    Re: [PATCH] hpfs: support FIEMAP Linus Torvalds <torvalds@linux-foundation.org> - 2016-10-04 23:50 +0200
      Re: [PATCH] hpfs: support FIEMAP Al Viro <viro@ZenIV.linux.org.uk> - 2016-10-05 01:10 +0200

#1495065 — [PATCH] hpfs: support FIEMAP

FromMikulas Patocka <mikulas@twibright.com>
Date2016-10-03 23:50 +0200
Subject[PATCH] hpfs: support FIEMAP
Message-ID<sojhv-1QB-1@gated-at.bofh.it>
Support the FIEMAP ioctl that reports extents allocated by a file.

Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>

---
 fs/hpfs/file.c |    6 ++++++
 1 file changed, 6 insertions(+)

Index: linux-2.6/fs/hpfs/file.c
===================================================================
--- linux-2.6.orig/fs/hpfs/file.c
+++ linux-2.6/fs/hpfs/file.c
@@ -189,6 +189,11 @@ static sector_t _hpfs_bmap(struct addres
 	return generic_block_bmap(mapping, block, hpfs_get_block);
 }
 
+static int hpfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 start, u64 len)
+{
+	return generic_block_fiemap(inode, fieinfo, start, len, hpfs_get_block);
+}
+
 const struct address_space_operations hpfs_aops = {
 	.readpage = hpfs_readpage,
 	.writepage = hpfs_writepage,
@@ -214,4 +219,5 @@ const struct file_operations hpfs_file_o
 const struct inode_operations hpfs_file_iops =
 {
 	.setattr	= hpfs_setattr,
+	.fiemap		= hpfs_fiemap,
 };

[toc] | [next] | [standalone]


#1495612

FromLinus Torvalds <torvalds@linux-foundation.org>
Date2016-10-04 23:50 +0200
Message-ID<soFL3-8fU-9@gated-at.bofh.it>
In reply to#1495065
Al,
 I'm assuming I'll be getting this from you. If not, just holler and
I'll apply it directly.

              Linus

On Mon, Oct 3, 2016 at 2:00 PM, Mikulas Patocka <mikulas@twibright.com> wrote:
> Support the FIEMAP ioctl that reports extents allocated by a file.
>
> Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
>
> ---
>  fs/hpfs/file.c |    6 ++++++
>  1 file changed, 6 insertions(+)
>
> Index: linux-2.6/fs/hpfs/file.c
> ===================================================================
> --- linux-2.6.orig/fs/hpfs/file.c
> +++ linux-2.6/fs/hpfs/file.c
> @@ -189,6 +189,11 @@ static sector_t _hpfs_bmap(struct addres
>         return generic_block_bmap(mapping, block, hpfs_get_block);
>  }
>
> +static int hpfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 start, u64 len)
> +{
> +       return generic_block_fiemap(inode, fieinfo, start, len, hpfs_get_block);
> +}
> +
>  const struct address_space_operations hpfs_aops = {
>         .readpage = hpfs_readpage,
>         .writepage = hpfs_writepage,
> @@ -214,4 +219,5 @@ const struct file_operations hpfs_file_o
>  const struct inode_operations hpfs_file_iops =
>  {
>         .setattr        = hpfs_setattr,
> +       .fiemap         = hpfs_fiemap,
>  };

[toc] | [prev] | [next] | [standalone]


#1495624

FromAl Viro <viro@ZenIV.linux.org.uk>
Date2016-10-05 01:10 +0200
Message-ID<soH0t-PU-1@gated-at.bofh.it>
In reply to#1495612
On Tue, Oct 04, 2016 at 02:47:03PM -0700, Linus Torvalds wrote:
> Al,
>  I'm assuming I'll be getting this from you. If not, just holler and
> I'll apply it directly.

Already applied in a local branch.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web