diff options
| author | Mikulas Patocka <mikulas@twibright.com> | 2016-10-03 17:00:19 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-10-05 18:31:58 -0400 |
| commit | 91fff9b347f9f69025e6557b3279cccedbcc744a (patch) | |
| tree | 455cff8104eafd64d4c9ae03586a06c7cd2246b3 /fs/hpfs | |
| parent | dbbab32574c384a83e5ea6fc970928424cd363ed (diff) | |
hpfs: support FIEMAP
Support the FIEMAP ioctl that reports extents allocated by a file.
Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hpfs')
| -rw-r--r-- | fs/hpfs/file.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c index d3bcdd975700..b3be1b5a62e2 100644 --- a/fs/hpfs/file.c +++ b/fs/hpfs/file.c | |||
| @@ -189,6 +189,11 @@ static sector_t _hpfs_bmap(struct address_space *mapping, sector_t block) | |||
| 189 | return generic_block_bmap(mapping, block, hpfs_get_block); | 189 | return generic_block_bmap(mapping, block, hpfs_get_block); |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | static int hpfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 start, u64 len) | ||
| 193 | { | ||
| 194 | return generic_block_fiemap(inode, fieinfo, start, len, hpfs_get_block); | ||
| 195 | } | ||
| 196 | |||
| 192 | const struct address_space_operations hpfs_aops = { | 197 | const struct address_space_operations hpfs_aops = { |
| 193 | .readpage = hpfs_readpage, | 198 | .readpage = hpfs_readpage, |
| 194 | .writepage = hpfs_writepage, | 199 | .writepage = hpfs_writepage, |
| @@ -214,4 +219,5 @@ const struct file_operations hpfs_file_ops = | |||
| 214 | const struct inode_operations hpfs_file_iops = | 219 | const struct inode_operations hpfs_file_iops = |
| 215 | { | 220 | { |
| 216 | .setattr = hpfs_setattr, | 221 | .setattr = hpfs_setattr, |
| 222 | .fiemap = hpfs_fiemap, | ||
| 217 | }; | 223 | }; |
