lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFzL2Msk9CQ-Dgri-aqiGw5eXrAxryc5dt2YxDX-v9xuJA@mail.gmail.com>
Date:   Tue, 4 Oct 2016 14:47:03 -0700
From:   Linus Torvalds <torvalds@...ux-foundation.org>
To:     Mikulas Patocka <mikulas@...bright.com>
Cc:     Alexander Viro <viro@...iv.linux.org.uk>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        linux-fsdevel <linux-fsdevel@...r.kernel.org>
Subject: Re: [PATCH] hpfs: support FIEMAP

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@...bright.com> wrote:
> Support the FIEMAP ioctl that reports extents allocated by a file.
>
> Signed-off-by: Mikulas Patocka <mikulas@...ax.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,
>  };

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ