Home
last modified time | relevance | path

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

12

/Linux-v5.10/fs/
Dioctl.c196 static int ioctl_fiemap(struct file *filp, struct fiemap __user *ufiemap) in ioctl_fiemap()
198 struct fiemap fiemap; in ioctl_fiemap() local
203 if (!inode->i_op->fiemap) in ioctl_fiemap()
206 if (copy_from_user(&fiemap, ufiemap, sizeof(fiemap))) in ioctl_fiemap()
209 if (fiemap.fm_extent_count > FIEMAP_MAX_EXTENTS) in ioctl_fiemap()
212 fieinfo.fi_flags = fiemap.fm_flags; in ioctl_fiemap()
213 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ioctl_fiemap()
216 error = inode->i_op->fiemap(inode, &fieinfo, fiemap.fm_start, in ioctl_fiemap()
217 fiemap.fm_length); in ioctl_fiemap()
219 fiemap.fm_flags = fieinfo.fi_flags; in ioctl_fiemap()
[all …]
Dbad_inode.c173 .fiemap = bad_inode_fiemap,
/Linux-v5.10/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);
106 fiemap: no
/Linux-v5.10/fs/ext4/
Dioctl.c786 struct fiemap fiemap; in ext4_ioctl_get_es_cache() local
787 struct fiemap __user *ufiemap = (struct fiemap __user *) arg; in ext4_ioctl_get_es_cache()
792 if (copy_from_user(&fiemap, ufiemap, sizeof(fiemap))) in ext4_ioctl_get_es_cache()
795 if (fiemap.fm_extent_count > FIEMAP_MAX_EXTENTS) in ext4_ioctl_get_es_cache()
798 fieinfo.fi_flags = fiemap.fm_flags; in ext4_ioctl_get_es_cache()
799 fieinfo.fi_extents_max = fiemap.fm_extent_count; in ext4_ioctl_get_es_cache()
802 error = ext4_get_es_cache(inode, &fieinfo, fiemap.fm_start, in ext4_ioctl_get_es_cache()
803 fiemap.fm_length); in ext4_ioctl_get_es_cache()
804 fiemap.fm_flags = fieinfo.fi_flags; in ext4_ioctl_get_es_cache()
805 fiemap.fm_mapped_extents = fieinfo.fi_extents_mapped; in ext4_ioctl_get_es_cache()
[all …]
Dfile.c919 .fiemap = ext4_fiemap,
/Linux-v5.10/fs/iomap/
DMakefile15 fiemap.o \
/Linux-v5.10/include/uapi/linux/
Dfiemap.h28 struct fiemap { struct
Dfs.h208 #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
/Linux-v5.10/fs/ocfs2/
Dsymlink.c94 .fiemap = ocfs2_fiemap,
/Linux-v5.10/fs/nilfs2/
Dfile.c149 .fiemap = nilfs_fiemap,
Dnamei.c551 .fiemap = nilfs_fiemap,
/Linux-v5.10/tools/include/uapi/linux/
Dfs.h208 #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
/Linux-v5.10/fs/ext2/
Dfile.c206 .fiemap = ext2_fiemap,
/Linux-v5.10/fs/overlayfs/
Dinode.c482 if (!realinode->i_op->fiemap) in ovl_fiemap()
486 err = realinode->i_op->fiemap(realinode, fieinfo, start, len); in ovl_fiemap()
499 .fiemap = ovl_fiemap,
/Linux-v5.10/fs/hpfs/
Dfile.c224 .fiemap = hpfs_fiemap,
/Linux-v5.10/Documentation/admin-guide/cifs/
Dtodo.rst21 b) improved sparse file support (fiemap and SEEK_HOLE are implemented
/Linux-v5.10/fs/gfs2/
Dinode.c2144 .fiemap = gfs2_fiemap,
2164 .fiemap = gfs2_fiemap,
2177 .fiemap = gfs2_fiemap,
/Linux-v5.10/fs/xfs/
Dxfs_iops.c1175 .fiemap = xfs_vn_fiemap,
/Linux-v5.10/fs/cifs/
Dcifsglob.h501 int (*fiemap)(struct cifs_tcon *tcon, struct cifsFileInfo *, member
Dsmb2ops.c5030 .fiemap = smb3_fiemap,
5131 .fiemap = smb3_fiemap,
5244 .fiemap = smb3_fiemap,
5357 .fiemap = smb3_fiemap,
Dinode.c2463 if (server->ops->fiemap) {
2464 rc = server->ops->fiemap(tcon, cfile, fei, start, len);
Dcifsfs.c1067 .fiemap = cifs_fiemap,
/Linux-v5.10/fs/f2fs/
Dnamei.c1317 .fiemap = f2fs_fiemap,

12