linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hpfs: support FIEMAP
@ 2016-10-03 21:00 Mikulas Patocka
  2016-10-04 21:47 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: Mikulas Patocka @ 2016-10-03 21:00 UTC (permalink / raw)
  To: Linus Torvalds, Alexander Viro; +Cc: linux-kernel, linux-fsdevel

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,
 };

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] hpfs: support FIEMAP
  2016-10-03 21:00 [PATCH] hpfs: support FIEMAP Mikulas Patocka
@ 2016-10-04 21:47 ` Linus Torvalds
  2016-10-04 23:06   ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2016-10-04 21:47 UTC (permalink / raw)
  To: Mikulas Patocka; +Cc: Alexander Viro, Linux Kernel Mailing List, linux-fsdevel

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,
>  };

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] hpfs: support FIEMAP
  2016-10-04 21:47 ` Linus Torvalds
@ 2016-10-04 23:06   ` Al Viro
  0 siblings, 0 replies; 3+ messages in thread
From: Al Viro @ 2016-10-04 23:06 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Mikulas Patocka, Linux Kernel Mailing List, linux-fsdevel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-04 23:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-03 21:00 [PATCH] hpfs: support FIEMAP Mikulas Patocka
2016-10-04 21:47 ` Linus Torvalds
2016-10-04 23:06   ` Al Viro

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).