Lines Matching refs:odirfd
102 static void renameat_preserve_errno(int odirfd, const char *opath, int ndirfd, in renameat_preserve_errno() argument
106 qemu_renameat(odirfd, opath, ndirfd, npath); in renameat_preserve_errno()
961 int odirfd, ndirfd; in local_link() local
969 odirfd = local_opendir_nofollow(ctx, odirpath); in local_link()
970 if (odirfd == -1) { in local_link()
976 close_preserve_errno(odirfd); in local_link()
980 ret = linkat(odirfd, oname, ndirfd, name, 0); in local_link()
994 omap_dirfd = openat_dir(odirfd, VIRTFS_META_DIR); in local_link()
1022 close_preserve_errno(odirfd); in local_link()
1275 int odirfd, ndirfd; in local_renameat() local
1284 odirfd = local_opendir_nofollow(ctx, olddir->data); in local_renameat()
1285 if (odirfd == -1) { in local_renameat()
1291 close_preserve_errno(odirfd); in local_renameat()
1295 ret = qemu_renameat(odirfd, old_name, ndirfd, new_name); in local_renameat()
1308 omap_dirfd = openat_dir(odirfd, VIRTFS_META_DIR); in local_renameat()
1334 renameat_preserve_errno(ndirfd, new_name, odirfd, old_name); in local_renameat()
1337 close_preserve_errno(odirfd); in local_renameat()