| /linux-6.15/Documentation/filesystems/ |
| H A D | fiemap.rst | 7 The fiemap ioctl is an efficient method for userspace to get file 8 extent mappings. Instead of block-by-block mapping (such as bmap), fiemap 15 A fiemap request is encoded within struct fiemap: 17 .. kernel-doc:: include/uapi/linux/fiemap.h 18 :identifiers: fiemap 33 fiemap interface to grow in the future but without losing 73 .. kernel-doc:: include/uapi/linux/fiemap.h 106 (via fiemap->fm_length). 167 File systems wishing to support fiemap must implement a ->fiemap callback on 179 fiemap request: [all …]
|
| H A D | index.rst | 29 fiemap
|
| H A D | locking.rst | 82 int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, u64 len); 118 fiemap: no
|
| /linux-6.15/fs/ |
| H A D | ioctl.c | 202 struct fiemap fiemap; in ioctl_fiemap() local 207 if (!inode->i_op->fiemap) in ioctl_fiemap() 210 if (copy_from_user(&fiemap, ufiemap, sizeof(fiemap))) in ioctl_fiemap() 213 if (fiemap.fm_extent_count > FIEMAP_MAX_EXTENTS) in ioctl_fiemap() 216 fieinfo.fi_flags = fiemap.fm_flags; in ioctl_fiemap() 217 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ioctl_fiemap() 220 error = inode->i_op->fiemap(inode, &fieinfo, fiemap.fm_start, in ioctl_fiemap() 221 fiemap.fm_length); in ioctl_fiemap() 223 fiemap.fm_flags = fieinfo.fi_flags; in ioctl_fiemap() 224 fiemap.fm_mapped_extents = fieinfo.fi_extents_mapped; in ioctl_fiemap() [all …]
|
| H A D | bad_inode.c | 180 .fiemap = bad_inode_fiemap,
|
| /linux-6.15/fs/ext4/ |
| H A D | ioctl.c | 1034 struct fiemap fiemap; in ext4_ioctl_get_es_cache() local 1035 struct fiemap __user *ufiemap = (struct fiemap __user *) arg; in ext4_ioctl_get_es_cache() 1040 if (copy_from_user(&fiemap, ufiemap, sizeof(fiemap))) in ext4_ioctl_get_es_cache() 1043 if (fiemap.fm_extent_count > FIEMAP_MAX_EXTENTS) in ext4_ioctl_get_es_cache() 1046 fieinfo.fi_flags = fiemap.fm_flags; in ext4_ioctl_get_es_cache() 1047 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ext4_ioctl_get_es_cache() 1050 error = ext4_get_es_cache(inode, &fieinfo, fiemap.fm_start, in ext4_ioctl_get_es_cache() 1051 fiemap.fm_length); in ext4_ioctl_get_es_cache() 1052 fiemap.fm_flags = fieinfo.fi_flags; in ext4_ioctl_get_es_cache() 1053 fiemap.fm_mapped_extents = fieinfo.fi_extents_mapped; in ext4_ioctl_get_es_cache() [all …]
|
| H A D | file.c | 989 .fiemap = ext4_fiemap,
|
| /linux-6.15/fs/iomap/ |
| H A D | Makefile | 16 fiemap.o \
|
| /linux-6.15/include/uapi/linux/ |
| H A D | fiemap.h | 45 struct fiemap { struct
|
| H A D | ext4.h | 32 #define EXT4_IOC_GET_ES_CACHE _IOWR('f', 42, struct fiemap)
|
| H A D | fs.h | 234 #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
|
| /linux-6.15/fs/ocfs2/ |
| H A D | symlink.c | 89 .fiemap = ocfs2_fiemap,
|
| /linux-6.15/fs/nilfs2/ |
| H A D | file.c | 158 .fiemap = nilfs_fiemap,
|
| H A D | namei.c | 574 .fiemap = nilfs_fiemap,
|
| /linux-6.15/fs/btrfs/ |
| H A D | Makefile | 36 lru_cache.o raid-stripe-tree.o fiemap.o direct-io.o
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | fs.h | 227 #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
|
| /linux-6.15/fs/erofs/ |
| H A D | namei.c | 223 .fiemap = erofs_fiemap,
|
| H A D | inode.c | 347 .fiemap = erofs_fiemap,
|
| /linux-6.15/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | fs.h | 234 #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
|
| /linux-6.15/fs/overlayfs/ |
| H A D | inode.c | 598 if (!realinode->i_op->fiemap) in ovl_fiemap() 602 err = realinode->i_op->fiemap(realinode, fieinfo, start, len); in ovl_fiemap() 755 .fiemap = ovl_fiemap,
|
| /linux-6.15/fs/ext2/ |
| H A D | file.c | 334 .fiemap = ext2_fiemap,
|
| /linux-6.15/fs/hpfs/ |
| H A D | file.c | 269 .fiemap = hpfs_fiemap,
|
| /linux-6.15/fs/ntfs3/ |
| H A D | namei.c | 509 .fiemap = ntfs_fiemap,
|
| /linux-6.15/fs/gfs2/ |
| H A D | inode.c | 2184 .fiemap = gfs2_fiemap, 2206 .fiemap = gfs2_fiemap, 2221 .fiemap = gfs2_fiemap,
|
| /linux-6.15/fs/xfs/ |
| H A D | xfs_iops.c | 1205 .fiemap = xfs_vn_fiemap,
|