Commit 91fff9b3 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Al Viro

hpfs: support FIEMAP

Support the FIEMAP ioctl that reports extents allocated by a file.
Signed-off-by: default avatarMikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent dbbab325
...@@ -189,6 +189,11 @@ static sector_t _hpfs_bmap(struct address_space *mapping, sector_t block) ...@@ -189,6 +189,11 @@ static sector_t _hpfs_bmap(struct address_space *mapping, sector_t block)
return generic_block_bmap(mapping, block, hpfs_get_block); 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 = { const struct address_space_operations hpfs_aops = {
.readpage = hpfs_readpage, .readpage = hpfs_readpage,
.writepage = hpfs_writepage, .writepage = hpfs_writepage,
...@@ -214,4 +219,5 @@ const struct file_operations hpfs_file_ops = ...@@ -214,4 +219,5 @@ const struct file_operations hpfs_file_ops =
const struct inode_operations hpfs_file_iops = const struct inode_operations hpfs_file_iops =
{ {
.setattr = hpfs_setattr, .setattr = hpfs_setattr,
.fiemap = hpfs_fiemap,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment