Home
last modified time | relevance | path

Searched refs:dst_file (Results 1 – 16 of 16) sorted by relevance

/OK3568_Linux_fs/buildroot/support/scripts/
H A Dhardlink-or-copy21 local dst_file="${3}"
23 if [ -n "${dst_file}" ]; then
24 dst_file="${dst_dir}/${dst_file}"
26 dst_file="${dst_dir}/${src_file##*/}"
30 rm -f "${dst_file}"
31 ln -f "${src_file}" "${dst_file}" 2>/dev/null \
32 || cp -f "${src_file}" "${dst_file}"
/OK3568_Linux_fs/kernel/fs/
H A Dremap_range.c448 struct file *dst_file, loff_t dst_pos, in vfs_dedupe_file_range_one() argument
456 ret = mnt_want_write_file(dst_file); in vfs_dedupe_file_range_one()
460 ret = remap_verify_area(dst_file, dst_pos, len, true); in vfs_dedupe_file_range_one()
465 if (!allow_file_dedupe(dst_file)) in vfs_dedupe_file_range_one()
469 if (src_file->f_path.mnt != dst_file->f_path.mnt) in vfs_dedupe_file_range_one()
473 if (S_ISDIR(file_inode(dst_file)->i_mode)) in vfs_dedupe_file_range_one()
477 if (!dst_file->f_op->remap_file_range) in vfs_dedupe_file_range_one()
485 ret = dst_file->f_op->remap_file_range(src_file, src_pos, dst_file, in vfs_dedupe_file_range_one()
488 mnt_drop_write_file(dst_file); in vfs_dedupe_file_range_one()
542 struct file *dst_file = dst_fd.file; in vfs_dedupe_file_range() local
[all …]
H A Dioctl.c227 static long ioctl_file_clone(struct file *dst_file, unsigned long srcfd, in ioctl_file_clone() argument
237 if (src_file.file->f_path.mnt != dst_file->f_path.mnt) in ioctl_file_clone()
239 cloned = vfs_clone_file_range(src_file.file, off, dst_file, destoff, in ioctl_file_clone()
/OK3568_Linux_fs/yocto/poky/scripts/lib/wic/
H A Dfilemap.py529 dst_file = open(dst_fname, 'r+b')
531 dst_file = open(dst_fname, 'wb')
536 dst_file.truncate(dst_size)
553 dst_file.seek(seek + length, os.SEEK_SET)
554 dst_file.close()
557 dst_file.seek(seek + start - skip, os.SEEK_SET)
570 dst_file.write(chunk)
574 dst_file.close()
576 dst_file.close()
/OK3568_Linux_fs/kernel/fs/fuse/
H A Dpassthrough.c17 static void fuse_file_accessed(struct file *dst_file, struct file *src_file) in fuse_file_accessed() argument
22 if (dst_file->f_flags & O_NOATIME) in fuse_file_accessed()
25 dst_inode = file_inode(dst_file); in fuse_file_accessed()
34 touch_atime(&dst_file->f_path); in fuse_file_accessed()
37 static void fuse_copyattr(struct file *dst_file, struct file *src_file) in fuse_copyattr() argument
39 struct inode *dst = file_inode(dst_file); in fuse_copyattr()
H A Dfile.c3479 struct file *dst_file, loff_t dst_off, in fuse_copy_file_range() argument
3484 ret = __fuse_copy_file_range(src_file, src_off, dst_file, dst_off, in fuse_copy_file_range()
3488 ret = generic_copy_file_range(src_file, src_off, dst_file, in fuse_copy_file_range()
/OK3568_Linux_fs/external/recovery/update_engine/
H A Ddo_patch.c72 const char *blk_dev, const char *dst_file) in do_patch_rkimg() argument
144 if (stat(dst_file, &dst_stat) == 0 && in do_patch_rkimg()
145 compareMd5sum(dst_file, (unsigned char *)md5sum, 0, dst_stat.st_size)) { in do_patch_rkimg()
266 if (((fd = open(dst_file, O_CREAT | O_TRUNC | O_RDWR, 0666)) < 0) || in do_patch_rkimg()
272 LOGE("mmap %s err\n", dst_file); in do_patch_rkimg()
346 if (!compareMd5sum(dst_file, (unsigned char *)md5sum, 0, newsize)) in do_patch_rkimg()
H A Dflash_image.c200 const char *blk_dev, const char *dst_file);
211 char dst_file[256]; in flash_normal() local
228 snprintf(dst_file, 256, "%s.%s", src_path, pcmd->name); in flash_normal()
268 if (stat(dst_file, &dst_stat) == 0) in flash_normal()
270 dst_file, pcmd->name); in flash_normal()
272 pcmd->dest_path, dst_file); in flash_normal()
277 ret = block_write(dst_file, 0, ret, in flash_normal()
293 unlink(dst_file); in flash_normal()
/OK3568_Linux_fs/kernel/fs/cifs/
H A Dioctl.c80 static long cifs_ioctl_copychunk(unsigned int xid, struct file *dst_file, in cifs_ioctl_copychunk() argument
89 if (!(dst_file->f_mode & FMODE_WRITE)) { in cifs_ioctl_copychunk()
95 rc = mnt_want_write_file(dst_file); in cifs_ioctl_copychunk()
118 rc = cifs_file_copychunk_range(xid, src_file.file, 0, dst_file, 0, in cifs_ioctl_copychunk()
125 mnt_drop_write_file(dst_file); in cifs_ioctl_copychunk()
H A Dcifsfs.c1078 struct file *dst_file, loff_t destoff, loff_t len, in cifs_remap_file_range() argument
1082 struct inode *target_inode = file_inode(dst_file); in cifs_remap_file_range()
1096 if (!src_file->private_data || !dst_file->private_data) { in cifs_remap_file_range()
1102 smb_file_target = dst_file->private_data; in cifs_remap_file_range()
1139 struct file *dst_file, loff_t destoff, in cifs_file_copychunk_range() argument
1143 struct inode *target_inode = file_inode(dst_file); in cifs_file_copychunk_range()
1152 if (!src_file->private_data || !dst_file->private_data) { in cifs_file_copychunk_range()
1159 smb_file_target = dst_file->private_data; in cifs_file_copychunk_range()
1184 rc = file_modified(dst_file); in cifs_file_copychunk_range()
1217 struct file *dst_file, loff_t destoff, in cifs_copy_file_range() argument
[all …]
H A Dcifsfs.h148 struct file *dst_file, loff_t destoff,
/OK3568_Linux_fs/kernel/fs/nfs/
H A Dnfs4file.c245 struct file *dst_file, loff_t dst_off, loff_t count, in nfs42_remap_file_range() argument
248 struct inode *dst_inode = file_inode(dst_file); in nfs42_remap_file_range()
297 ret = nfs42_proc_clone(src_file, dst_file, src_off, dst_off, count); in nfs42_remap_file_range()
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/utils/
H A Dsshcontrol.py178 dst_file = os.path.join(remotepath, tmp_file.lstrip("/"))
180 self.copy_to(src_file, dst_file)
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dreflink.c837 struct file *dst_file, loff_t destoff, loff_t len, in btrfs_remap_file_range() argument
841 struct inode *dst_inode = file_inode(dst_file); in btrfs_remap_file_range()
853 ret = btrfs_remap_file_range_prep(src_file, off, dst_file, destoff, in btrfs_remap_file_range()
861 ret = btrfs_clone_files(dst_file, src_file, off, len, destoff); in btrfs_remap_file_range()
/OK3568_Linux_fs/kernel/fs/ceph/
H A Dfile.c2304 struct file *dst_file, loff_t dst_off, in __ceph_copy_file_range() argument
2308 struct inode *dst_inode = file_inode(dst_file); in __ceph_copy_file_range()
2372 ret = file_write_and_wait_range(dst_file, dst_off, (dst_off + len)); in __ceph_copy_file_range()
2384 dst_file, (dst_off + len), &dst_got); in __ceph_copy_file_range()
2428 ret = do_splice_direct(src_file, &src_off, dst_file, in __ceph_copy_file_range()
2437 dst_file, (dst_off + len), &dst_got); in __ceph_copy_file_range()
2458 file_update_time(dst_file); in __ceph_copy_file_range()
2484 bytes = do_splice_direct(src_file, &src_off, dst_file, in __ceph_copy_file_range()
2499 struct file *dst_file, loff_t dst_off, in ceph_copy_file_range() argument
2504 ret = __ceph_copy_file_range(src_file, src_off, dst_file, dst_off, in ceph_copy_file_range()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dfs.h1997 struct file *dst_file, loff_t dst_pos,