Home
last modified time | relevance | path

Searched refs:fiemap (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v6.1/Documentation/filesystems/
Dfiemap.rst7 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 struct fiemap {
44 fiemap interface to grow in the future but without losing
68 which userspace must allocate along with the fiemap structure. The
102 the file so that the process making fiemap calls can determine when no
123 (via fiemap->fm_length).
182 File systems wishing to support fiemap must implement a ->fiemap callback on
183 their inode_operations structure. The fs ->fiemap call is responsible for
[all …]
Dindex.rst29 fiemap
Dlocking.rst77 int (*fiemap)(struct inode *, struct fiemap_extent_info *, u64 start, u64 len);
110 fiemap: no
/Linux-v6.1/fs/
Dioctl.c199 static int ioctl_fiemap(struct file *filp, struct fiemap __user *ufiemap) in ioctl_fiemap()
201 struct fiemap fiemap; in ioctl_fiemap() local
206 if (!inode->i_op->fiemap) in ioctl_fiemap()
209 if (copy_from_user(&fiemap, ufiemap, sizeof(fiemap))) in ioctl_fiemap()
212 if (fiemap.fm_extent_count > FIEMAP_MAX_EXTENTS) in ioctl_fiemap()
215 fieinfo.fi_flags = fiemap.fm_flags; in ioctl_fiemap()
216 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ioctl_fiemap()
219 error = inode->i_op->fiemap(inode, &fieinfo, fiemap.fm_start, in ioctl_fiemap()
220 fiemap.fm_length); in ioctl_fiemap()
222 fiemap.fm_flags = fieinfo.fi_flags; in ioctl_fiemap()
[all …]
Dbad_inode.c181 .fiemap = bad_inode_fiemap,
/Linux-v6.1/fs/ext4/
Dioctl.c1016 struct fiemap fiemap; in ext4_ioctl_get_es_cache() local
1017 struct fiemap __user *ufiemap = (struct fiemap __user *) arg; in ext4_ioctl_get_es_cache()
1022 if (copy_from_user(&fiemap, ufiemap, sizeof(fiemap))) in ext4_ioctl_get_es_cache()
1025 if (fiemap.fm_extent_count > FIEMAP_MAX_EXTENTS) in ext4_ioctl_get_es_cache()
1028 fieinfo.fi_flags = fiemap.fm_flags; in ext4_ioctl_get_es_cache()
1029 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ext4_ioctl_get_es_cache()
1032 error = ext4_get_es_cache(inode, &fieinfo, fiemap.fm_start, in ext4_ioctl_get_es_cache()
1033 fiemap.fm_length); in ext4_ioctl_get_es_cache()
1034 fiemap.fm_flags = fieinfo.fi_flags; in ext4_ioctl_get_es_cache()
1035 fiemap.fm_mapped_extents = fieinfo.fi_extents_mapped; in ext4_ioctl_get_es_cache()
[all …]
Dfile.c960 .fiemap = ext4_fiemap,
/Linux-v6.1/fs/iomap/
DMakefile15 fiemap.o \
/Linux-v6.1/include/uapi/linux/
Dfiemap.h28 struct fiemap { struct
Dfs.h209 #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
/Linux-v6.1/fs/ocfs2/
Dsymlink.c93 .fiemap = ocfs2_fiemap,
/Linux-v6.1/fs/nilfs2/
Dfile.c150 .fiemap = nilfs_fiemap,
Dnamei.c553 .fiemap = nilfs_fiemap,
/Linux-v6.1/fs/ext2/
Dfile.c205 .fiemap = ext2_fiemap,
/Linux-v6.1/tools/include/uapi/linux/
Dfs.h209 #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
/Linux-v6.1/fs/erofs/
Dnamei.c232 .fiemap = erofs_fiemap,
Dinode.c375 .fiemap = erofs_fiemap,
/Linux-v6.1/fs/overlayfs/
Dinode.c576 if (!realinode->i_op->fiemap) in ovl_fiemap()
580 err = realinode->i_op->fiemap(realinode, fieinfo, start, len); in ovl_fiemap()
726 .fiemap = ovl_fiemap,
/Linux-v6.1/fs/hpfs/
Dfile.c275 .fiemap = hpfs_fiemap,
/Linux-v6.1/fs/ntfs3/
Dnamei.c375 .fiemap = ntfs_fiemap,
Dfile.c1260 .fiemap = ntfs_fiemap,
/Linux-v6.1/Documentation/admin-guide/cifs/
Dtodo.rst21 b) improved sparse file support (fiemap and SEEK_HOLE are implemented
/Linux-v6.1/fs/gfs2/
Dinode.c2151 .fiemap = gfs2_fiemap,
2173 .fiemap = gfs2_fiemap,
2188 .fiemap = gfs2_fiemap,
/Linux-v6.1/fs/xfs/
Dxfs_iops.c1109 .fiemap = xfs_vn_fiemap,
/Linux-v6.1/fs/cifs/
Dcifsglob.h530 int (*fiemap)(struct cifs_tcon *tcon, struct cifsFileInfo *, member

12