tag | line | file | source code |
old_dir | 757 | fs/ext/namei.c | static int do_ext_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 777 | fs/ext/namei.c | old_bh = ext_find_entry(old_dir,old_name,old_len,&old_de,&pde,&nde); |
old_dir | 781 | fs/ext/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode,0); /* don't cross mnt-points */ |
old_dir | 785 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 787 | fs/ext/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
old_dir | 823 | fs/ext/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 852 | fs/ext/namei.c | old_dir->i_nlink--; |
old_dir | 854 | fs/ext/namei.c | old_dir->i_dirt = 1; |
old_dir | 864 | fs/ext/namei.c | iput(old_dir); |
old_dir | 878 | fs/ext/namei.c | int ext_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 888 | fs/ext/namei.c | result = do_ext_rename(old_dir, old_name, old_len, |
old_dir | 924 | fs/ext2/namei.c | static int do_ext2_rename (struct inode * old_dir, const char * old_name, |
old_dir | 950 | fs/ext2/namei.c | old_bh = ext2_find_entry (old_dir, old_name, old_len, &old_de); |
old_dir | 954 | fs/ext2/namei.c | old_inode = __iget (old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
old_dir | 958 | fs/ext2/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 960 | fs/ext2/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
old_dir | 1005 | fs/ext2/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 1036 | fs/ext2/namei.c | old_dir->i_version = ++event; |
old_dir | 1042 | fs/ext2/namei.c | old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; |
old_dir | 1043 | fs/ext2/namei.c | old_dir->i_dirt = 1; |
old_dir | 1048 | fs/ext2/namei.c | old_dir->i_nlink--; |
old_dir | 1049 | fs/ext2/namei.c | old_dir->i_dirt = 1; |
old_dir | 1059 | fs/ext2/namei.c | if (IS_SYNC(old_dir)) { |
old_dir | 1075 | fs/ext2/namei.c | iput (old_dir); |
old_dir | 1093 | fs/ext2/namei.c | int ext2_rename (struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 1098 | fs/ext2/namei.c | while (old_dir->i_sb->u.ext2_sb.s_rename_lock) |
old_dir | 1099 | fs/ext2/namei.c | sleep_on (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
old_dir | 1100 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 1; |
old_dir | 1101 | fs/ext2/namei.c | result = do_ext2_rename (old_dir, old_name, old_len, new_dir, |
old_dir | 1103 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 0; |
old_dir | 1104 | fs/ext2/namei.c | wake_up (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
old_dir | 676 | fs/minix/namei.c | static int do_minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 685 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
old_dir | 698 | fs/minix/namei.c | old_bh = minix_find_entry(old_dir,old_name,old_len,&old_de); |
old_dir | 702 | fs/minix/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode,0); /* don't cross mnt-points */ |
old_dir | 706 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 708 | fs/minix/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
old_dir | 752 | fs/minix/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 773 | fs/minix/namei.c | old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; |
old_dir | 774 | fs/minix/namei.c | old_dir->i_dirt = 1; |
old_dir | 775 | fs/minix/namei.c | old_dir->i_version = ++event; |
old_dir | 789 | fs/minix/namei.c | old_dir->i_nlink--; |
old_dir | 790 | fs/minix/namei.c | old_dir->i_dirt = 1; |
old_dir | 806 | fs/minix/namei.c | iput(old_dir); |
old_dir | 820 | fs/minix/namei.c | int minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 830 | fs/minix/namei.c | result = do_minix_rename(old_dir, old_name, old_len, |
old_dir | 438 | fs/msdos/namei.c | static int rename_same_dir(struct inode *old_dir,char *old_name, |
old_dir | 442 | fs/msdos/namei.c | struct super_block *sb = old_dir->i_sb; |
old_dir | 481 | fs/msdos/namei.c | if (MSDOS_SB(old_dir->i_sb)->conversion == 'a') /* update binary info */ |
old_dir | 482 | fs/msdos/namei.c | if ((old_inode = iget(old_dir->i_sb,old_ino)) != NULL) { |
old_dir | 490 | fs/msdos/namei.c | static int rename_diff_dir(struct inode *old_dir,char *old_name, |
old_dir | 494 | fs/msdos/namei.c | struct super_block *sb = old_dir->i_sb; |
old_dir | 501 | fs/msdos/namei.c | if (old_dir->i_dev != new_dir->i_dev) return -EINVAL; |
old_dir | 519 | fs/msdos/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) { |
old_dir | 595 | fs/msdos/namei.c | old_dir->i_nlink--; |
old_dir | 610 | fs/msdos/namei.c | int msdos_rename(struct inode *old_dir,const char *old_name,int old_len, |
old_dir | 613 | fs/msdos/namei.c | struct super_block *sb = old_dir->i_sb; |
old_dir | 619 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(old_dir->i_sb)->name_check, |
old_dir | 623 | fs/msdos/namei.c | if ((error = msdos_scan(old_dir,old_msdos_name,&old_bh,&old_de, |
old_dir | 626 | fs/msdos/namei.c | if (old_dir == new_dir) |
old_dir | 627 | fs/msdos/namei.c | error = rename_same_dir(old_dir,old_msdos_name,new_dir, |
old_dir | 629 | fs/msdos/namei.c | else error = rename_diff_dir(old_dir,old_msdos_name,new_dir, |
old_dir | 634 | fs/msdos/namei.c | iput(old_dir); |
old_dir | 763 | fs/namei.c | struct inode * old_dir, * new_dir; |
old_dir | 767 | fs/namei.c | error = dir_namei(oldname,&old_len,&old_base,NULL,&old_dir); |
old_dir | 770 | fs/namei.c | if ((error = permission(old_dir,MAY_WRITE | MAY_EXEC)) != 0) { |
old_dir | 771 | fs/namei.c | iput(old_dir); |
old_dir | 777 | fs/namei.c | iput(old_dir); |
old_dir | 782 | fs/namei.c | iput(old_dir); |
old_dir | 786 | fs/namei.c | iput(old_dir); |
old_dir | 793 | fs/namei.c | iput(old_dir); |
old_dir | 797 | fs/namei.c | if (new_dir->i_dev != old_dir->i_dev) { |
old_dir | 798 | fs/namei.c | iput(old_dir); |
old_dir | 802 | fs/namei.c | if (IS_RDONLY(new_dir) || IS_RDONLY(old_dir)) { |
old_dir | 803 | fs/namei.c | iput(old_dir); |
old_dir | 810 | fs/namei.c | if (IS_APPEND(old_dir)) { |
old_dir | 811 | fs/namei.c | iput(old_dir); |
old_dir | 815 | fs/namei.c | if (!old_dir->i_op || !old_dir->i_op->rename) { |
old_dir | 816 | fs/namei.c | iput(old_dir); |
old_dir | 822 | fs/namei.c | error = old_dir->i_op->rename(old_dir, old_base, old_len, |
old_dir | 41 | fs/nfs/dir.c | static int nfs_rename(struct inode *old_dir, const char *old_name, |
old_dir | 533 | fs/nfs/dir.c | static int nfs_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 538 | fs/nfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
old_dir | 540 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 546 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 551 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 555 | fs/nfs/dir.c | error = nfs_proc_rename(NFS_SERVER(old_dir), |
old_dir | 556 | fs/nfs/dir.c | NFS_FH(old_dir), old_name, |
old_dir | 559 | fs/nfs/dir.c | nfs_lookup_cache_remove(old_dir, NULL, old_name); |
old_dir | 562 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 541 | fs/nfs/proc.c | struct nfs_fh *old_dir, const char *old_name, |
old_dir | 553 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
old_dir | 69 | fs/smbfs/dir.c | smb_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 886 | fs/smbfs/dir.c | smb_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 892 | fs/smbfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
old_dir | 904 | fs/smbfs/dir.c | res = get_pname_static(old_dir, old_name, old_len, old_path, &old_len); |
old_dir | 914 | fs/smbfs/dir.c | if ( (smb_find_inode(SMB_SERVER(old_dir), old_path) != NULL) |
old_dir | 920 | fs/smbfs/dir.c | res = smb_proc_mv(SMB_SERVER(old_dir), old_path, old_len, |
old_dir | 924 | fs/smbfs/dir.c | smb_invalid_dir_cache(old_dir->i_ino); |
old_dir | 929 | fs/smbfs/dir.c | iput(old_dir); |
old_dir | 672 | fs/sysv/namei.c | static int do_sysv_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 692 | fs/sysv/namei.c | old_bh = sysv_find_entry(old_dir,old_name,old_len,&old_de); |
old_dir | 696 | fs/sysv/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
old_dir | 700 | fs/sysv/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 702 | fs/sysv/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
old_dir | 746 | fs/sysv/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 767 | fs/sysv/namei.c | old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; |
old_dir | 768 | fs/sysv/namei.c | old_dir->i_dirt = 1; |
old_dir | 781 | fs/sysv/namei.c | old_dir->i_nlink--; |
old_dir | 782 | fs/sysv/namei.c | old_dir->i_dirt = 1; |
old_dir | 798 | fs/sysv/namei.c | iput(old_dir); |
old_dir | 812 | fs/sysv/namei.c | int sysv_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 822 | fs/sysv/namei.c | result = do_sysv_rename(old_dir, old_name, old_len, |
old_dir | 312 | fs/umsdos/namei.c | struct inode * old_dir, |
old_dir | 329 | fs/umsdos/namei.c | umsdos_lockcreate2(old_dir,new_dir); |
old_dir | 332 | fs/umsdos/namei.c | ret = umsdos_findentry(old_dir,&old_info,0); |
old_dir | 337 | fs/umsdos/namei.c | if ( !(old_dir->i_mode & S_ISVTX) || fsuser() || |
old_dir | 339 | fs/umsdos/namei.c | current->fsuid == old_dir->i_uid ) { |
old_dir | 354 | fs/umsdos/namei.c | old_dir->i_count++; |
old_dir | 356 | fs/umsdos/namei.c | ret = msdos_rename (old_dir |
old_dir | 367 | fs/umsdos/namei.c | ret = umsdos_delentry (old_dir,&old_info |
old_dir | 411 | fs/umsdos/namei.c | umsdos_unlockcreate(old_dir); |
old_dir | 414 | fs/umsdos/namei.c | iput (old_dir); |
old_dir | 1015 | fs/umsdos/namei.c | struct inode * old_dir, |
old_dir | 1037 | fs/umsdos/namei.c | old_dir->i_count++; |
old_dir | 1039 | fs/umsdos/namei.c | ret = umsdos_rename_f (old_dir,old_name,old_len,new_dir,new_name |
old_dir | 1087 | fs/umsdos/namei.c | ret = umsdos_rename_f (old_dir,old_name,old_len |
old_dir | 1089 | fs/umsdos/namei.c | new_dir = old_dir = NULL; |
old_dir | 1094 | fs/umsdos/namei.c | iput (old_dir); |
old_dir | 717 | fs/xiafs/namei.c | static int do_xiafs_rename(struct inode * old_dir, const char * old_name, |
old_dir | 729 | fs/xiafs/namei.c | old_bh = xiafs_find_entry(old_dir, old_name, old_len, &old_de, &old_de_pre); |
old_dir | 733 | fs/xiafs/namei.c | old_inode = __iget(old_dir->i_sb, old_de->d_ino, 0); /* don't cross mnt-points */ |
old_dir | 737 | fs/xiafs/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 739 | fs/xiafs/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
old_dir | 775 | fs/xiafs/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 811 | fs/xiafs/namei.c | old_dir->i_nlink--; |
old_dir | 813 | fs/xiafs/namei.c | old_dir->i_dirt = 1; |
old_dir | 823 | fs/xiafs/namei.c | iput(old_dir); |
old_dir | 837 | fs/xiafs/namei.c | int xiafs_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 847 | fs/xiafs/namei.c | result = do_xiafs_rename(old_dir, old_name, old_len, |
old_dir | 76 | include/linux/ext_fs.h | extern int ext_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 95 | include/linux/minix_fs.h | extern int minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 153 | include/linux/msdos_fs.h | extern int msdos_rename(struct inode *old_dir,const char *old_name,int old_len, |
old_dir | 74 | include/linux/nfs_fs.h | struct nfs_fh *old_dir, const char *old_name, |
old_dir | 375 | include/linux/sysv_fs.h | extern int sysv_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 80 | include/linux/xia_fs.h | extern int xiafs_rename(struct inode * old_dir, const char * old_name, |