fiemap.h (713B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _LINUX_FIEMAP_H 3#define _LINUX_FIEMAP_H 1 4 5#include <uapi/linux/fiemap.h> 6#include <linux/fs.h> 7 8struct fiemap_extent_info { 9 unsigned int fi_flags; /* Flags as passed from user */ 10 unsigned int fi_extents_mapped; /* Number of mapped extents */ 11 unsigned int fi_extents_max; /* Size of fiemap_extent array */ 12 struct fiemap_extent __user *fi_extents_start; /* Start of 13 fiemap_extent array */ 14}; 15 16int fiemap_prep(struct inode *inode, struct fiemap_extent_info *fieinfo, 17 u64 start, u64 *len, u32 supported_flags); 18int fiemap_fill_next_extent(struct fiemap_extent_info *info, u64 logical, 19 u64 phys, u64 len, u32 flags); 20 21#endif /* _LINUX_FIEMAP_H 1 */