tag | line | file | source code |
old_dir | 765 | fs/ext/namei.c | static int do_ext_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 785 | fs/ext/namei.c | old_bh = ext_find_entry(old_dir,old_name,old_len,&old_de,&pde,&nde); |
old_dir | 789 | fs/ext/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode,0); /* don't cross mnt-points */ |
old_dir | 793 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 795 | fs/ext/namei.c | current->euid != old_dir->i_uid && !suser()) |
old_dir | 832 | fs/ext/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 861 | fs/ext/namei.c | old_dir->i_nlink--; |
old_dir | 863 | fs/ext/namei.c | old_dir->i_dirt = 1; |
old_dir | 873 | fs/ext/namei.c | iput(old_dir); |
old_dir | 887 | fs/ext/namei.c | int ext_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 897 | fs/ext/namei.c | result = do_ext_rename(old_dir, old_name, old_len, |
old_dir | 934 | fs/ext2/namei.c | static int do_ext2_rename (struct inode * old_dir, const char * old_name, |
old_dir | 958 | fs/ext2/namei.c | old_bh = ext2_find_entry (old_dir, old_name, old_len, &old_de); |
old_dir | 962 | fs/ext2/namei.c | old_inode = __iget (old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
old_dir | 966 | fs/ext2/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 968 | fs/ext2/namei.c | current->euid != old_dir->i_uid && !suser()) |
old_dir | 1011 | fs/ext2/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 1036 | fs/ext2/namei.c | ext2_dcache_remove (old_dir->i_dev, old_dir->i_ino, old_de->name, |
old_dir | 1047 | fs/ext2/namei.c | old_dir->i_version++; |
old_dir | 1053 | fs/ext2/namei.c | old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; |
old_dir | 1054 | fs/ext2/namei.c | old_dir->i_dirt = 1; |
old_dir | 1058 | fs/ext2/namei.c | old_dir->i_nlink--; |
old_dir | 1059 | fs/ext2/namei.c | old_dir->i_dirt = 1; |
old_dir | 1069 | fs/ext2/namei.c | if (IS_SYNC(old_dir)) { |
old_dir | 1085 | fs/ext2/namei.c | iput (old_dir); |
old_dir | 1103 | fs/ext2/namei.c | int ext2_rename (struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 1108 | fs/ext2/namei.c | while (old_dir->i_sb->u.ext2_sb.s_rename_lock) |
old_dir | 1109 | fs/ext2/namei.c | sleep_on (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
old_dir | 1110 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 1; |
old_dir | 1111 | fs/ext2/namei.c | result = do_ext2_rename (old_dir, old_name, old_len, new_dir, |
old_dir | 1113 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 0; |
old_dir | 1114 | fs/ext2/namei.c | wake_up (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
old_dir | 672 | fs/minix/namei.c | static int do_minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 681 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
old_dir | 694 | fs/minix/namei.c | old_bh = minix_find_entry(old_dir,old_name,old_len,&old_de); |
old_dir | 698 | fs/minix/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode,0); /* don't cross mnt-points */ |
old_dir | 702 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 704 | fs/minix/namei.c | current->euid != old_dir->i_uid && !suser()) |
old_dir | 748 | fs/minix/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 769 | fs/minix/namei.c | old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; |
old_dir | 770 | fs/minix/namei.c | old_dir->i_dirt = 1; |
old_dir | 783 | fs/minix/namei.c | old_dir->i_nlink--; |
old_dir | 784 | fs/minix/namei.c | old_dir->i_dirt = 1; |
old_dir | 800 | fs/minix/namei.c | iput(old_dir); |
old_dir | 814 | fs/minix/namei.c | int minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 824 | fs/minix/namei.c | result = do_minix_rename(old_dir, old_name, old_len, |
old_dir | 396 | fs/msdos/namei.c | static int rename_same_dir(struct inode *old_dir,char *old_name, |
old_dir | 438 | fs/msdos/namei.c | if (MSDOS_SB(old_dir->i_sb)->conversion == 'a') /* update binary info */ |
old_dir | 439 | fs/msdos/namei.c | if ((old_inode = iget(old_dir->i_sb,old_ino)) != NULL) { |
old_dir | 447 | fs/msdos/namei.c | static int rename_diff_dir(struct inode *old_dir,char *old_name, |
old_dir | 457 | fs/msdos/namei.c | if (old_dir->i_dev != new_dir->i_dev) return -EINVAL; |
old_dir | 475 | fs/msdos/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) { |
old_dir | 551 | fs/msdos/namei.c | old_dir->i_nlink--; |
old_dir | 566 | fs/msdos/namei.c | int msdos_rename(struct inode *old_dir,const char *old_name,int old_len, |
old_dir | 574 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(old_dir->i_sb)->name_check, |
old_dir | 578 | fs/msdos/namei.c | if ((error = msdos_scan(old_dir,old_msdos_name,&old_bh,&old_de, |
old_dir | 581 | fs/msdos/namei.c | if (old_dir == new_dir) |
old_dir | 582 | fs/msdos/namei.c | error = rename_same_dir(old_dir,old_msdos_name,new_dir, |
old_dir | 584 | fs/msdos/namei.c | else error = rename_diff_dir(old_dir,old_msdos_name,new_dir, |
old_dir | 589 | fs/msdos/namei.c | iput(old_dir); |
old_dir | 685 | fs/namei.c | struct inode * old_dir, * new_dir; |
old_dir | 689 | fs/namei.c | error = dir_namei(oldname,&old_len,&old_base,NULL,&old_dir); |
old_dir | 692 | fs/namei.c | if (!permission(old_dir,MAY_WRITE | MAY_EXEC)) { |
old_dir | 693 | fs/namei.c | iput(old_dir); |
old_dir | 699 | fs/namei.c | iput(old_dir); |
old_dir | 704 | fs/namei.c | iput(old_dir); |
old_dir | 708 | fs/namei.c | iput(old_dir); |
old_dir | 715 | fs/namei.c | iput(old_dir); |
old_dir | 719 | fs/namei.c | if (new_dir->i_dev != old_dir->i_dev) { |
old_dir | 720 | fs/namei.c | iput(old_dir); |
old_dir | 724 | fs/namei.c | if (IS_RDONLY(new_dir) || IS_RDONLY(old_dir)) { |
old_dir | 725 | fs/namei.c | iput(old_dir); |
old_dir | 729 | fs/namei.c | if (!old_dir->i_op || !old_dir->i_op->rename) { |
old_dir | 730 | fs/namei.c | iput(old_dir); |
old_dir | 736 | fs/namei.c | error = old_dir->i_op->rename(old_dir, old_base, old_len, |
old_dir | 37 | fs/nfs/dir.c | static int nfs_rename(struct inode *old_dir, const char *old_name, |
old_dir | 521 | fs/nfs/dir.c | static int nfs_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 526 | fs/nfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
old_dir | 528 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 534 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 539 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 543 | fs/nfs/dir.c | error = nfs_proc_rename(NFS_SERVER(old_dir), |
old_dir | 544 | fs/nfs/dir.c | NFS_FH(old_dir), old_name, |
old_dir | 547 | fs/nfs/dir.c | nfs_lookup_cache_remove(old_dir, NULL, old_name); |
old_dir | 550 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 504 | fs/nfs/proc.c | struct nfs_fh *old_dir, const char *old_name, |
old_dir | 516 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
old_dir | 681 | fs/sysv/namei.c | static int do_sysv_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 702 | fs/sysv/namei.c | old_bh = sysv_find_entry(old_dir,old_name,old_len,&old_de); |
old_dir | 706 | fs/sysv/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
old_dir | 710 | fs/sysv/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 712 | fs/sysv/namei.c | current->euid != old_dir->i_uid && !suser()) |
old_dir | 756 | fs/sysv/namei.c | if (PARENT_INO(dir_bh_data) != old_dir->i_ino) |
old_dir | 777 | fs/sysv/namei.c | old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; |
old_dir | 778 | fs/sysv/namei.c | old_dir->i_dirt = 1; |
old_dir | 791 | fs/sysv/namei.c | old_dir->i_nlink--; |
old_dir | 792 | fs/sysv/namei.c | old_dir->i_dirt = 1; |
old_dir | 808 | fs/sysv/namei.c | iput(old_dir); |
old_dir | 822 | fs/sysv/namei.c | int sysv_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 832 | fs/sysv/namei.c | result = do_sysv_rename(old_dir, old_name, old_len, |
old_dir | 712 | fs/xiafs/namei.c | static int do_xiafs_rename(struct inode * old_dir, const char * old_name, |
old_dir | 724 | fs/xiafs/namei.c | old_bh = xiafs_find_entry(old_dir, old_name, old_len, &old_de, &old_de_pre); |
old_dir | 728 | fs/xiafs/namei.c | old_inode = __iget(old_dir->i_sb, old_de->d_ino, 0); /* don't cross mnt-points */ |
old_dir | 732 | fs/xiafs/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 734 | fs/xiafs/namei.c | current->euid != old_dir->i_uid && !suser()) |
old_dir | 771 | fs/xiafs/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 807 | fs/xiafs/namei.c | old_dir->i_nlink--; |
old_dir | 809 | fs/xiafs/namei.c | old_dir->i_dirt = 1; |
old_dir | 819 | fs/xiafs/namei.c | iput(old_dir); |
old_dir | 833 | fs/xiafs/namei.c | int xiafs_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 843 | fs/xiafs/namei.c | result = do_xiafs_rename(old_dir, old_name, old_len, |
old_dir | 75 | include/linux/ext_fs.h | extern int ext_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 89 | include/linux/minix_fs.h | extern int minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 164 | include/linux/msdos_fs.h | extern int msdos_rename(struct inode *old_dir,const char *old_name,int old_len, |
old_dir | 71 | include/linux/nfs_fs.h | struct nfs_fh *old_dir, const char *old_name, |
old_dir | 404 | include/linux/sysv_fs.h | extern int sysv_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 78 | include/linux/xia_fs.h | extern int xiafs_rename(struct inode * old_dir, const char * old_name, |