tag | line | file | source code |
old_dir | 766 | fs/ext/namei.c | static int do_ext_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 786 | fs/ext/namei.c | old_bh = ext_find_entry(old_dir,old_name,old_len,&old_de,&pde,&nde); |
old_dir | 790 | fs/ext/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode,0); /* don't cross mnt-points */ |
old_dir | 794 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 796 | fs/ext/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
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 | 929 | fs/ext2/namei.c | static int do_ext2_rename (struct inode * old_dir, const char * old_name, |
old_dir | 955 | fs/ext2/namei.c | old_bh = ext2_find_entry (old_dir, old_name, old_len, &old_de); |
old_dir | 959 | fs/ext2/namei.c | old_inode = __iget (old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
old_dir | 963 | fs/ext2/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 965 | fs/ext2/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
old_dir | 1013 | fs/ext2/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 1044 | fs/ext2/namei.c | old_dir->i_version = ++event; |
old_dir | 1050 | fs/ext2/namei.c | old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; |
old_dir | 1051 | fs/ext2/namei.c | old_dir->i_dirt = 1; |
old_dir | 1056 | fs/ext2/namei.c | old_dir->i_nlink--; |
old_dir | 1057 | fs/ext2/namei.c | old_dir->i_dirt = 1; |
old_dir | 1067 | fs/ext2/namei.c | if (IS_SYNC(old_dir)) { |
old_dir | 1083 | fs/ext2/namei.c | iput (old_dir); |
old_dir | 1101 | fs/ext2/namei.c | int ext2_rename (struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 1106 | fs/ext2/namei.c | while (old_dir->i_sb->u.ext2_sb.s_rename_lock) |
old_dir | 1107 | fs/ext2/namei.c | sleep_on (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
old_dir | 1108 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 1; |
old_dir | 1109 | fs/ext2/namei.c | result = do_ext2_rename (old_dir, old_name, old_len, new_dir, |
old_dir | 1111 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 0; |
old_dir | 1112 | fs/ext2/namei.c | wake_up (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
old_dir | 674 | fs/minix/namei.c | static int do_minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 683 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
old_dir | 696 | fs/minix/namei.c | old_bh = minix_find_entry(old_dir,old_name,old_len,&old_de); |
old_dir | 700 | fs/minix/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode,0); /* don't cross mnt-points */ |
old_dir | 704 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 706 | fs/minix/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
old_dir | 750 | fs/minix/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 771 | fs/minix/namei.c | old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; |
old_dir | 772 | fs/minix/namei.c | old_dir->i_dirt = 1; |
old_dir | 773 | fs/minix/namei.c | old_dir->i_version = ++event; |
old_dir | 787 | fs/minix/namei.c | old_dir->i_nlink--; |
old_dir | 788 | fs/minix/namei.c | old_dir->i_dirt = 1; |
old_dir | 804 | fs/minix/namei.c | iput(old_dir); |
old_dir | 818 | fs/minix/namei.c | int minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 828 | fs/minix/namei.c | result = do_minix_rename(old_dir, old_name, old_len, |
old_dir | 537 | fs/msdos/namei.c | static int rename_same_dir(struct inode *old_dir,char *old_name,int old_len, |
old_dir | 542 | fs/msdos/namei.c | struct super_block *sb = old_dir->i_sb; |
old_dir | 592 | fs/msdos/namei.c | if ((old_inode = iget(old_dir->i_sb,old_ino)) != NULL) { |
old_dir | 602 | fs/msdos/namei.c | static int rename_diff_dir(struct inode *old_dir,char *old_name,int old_len, |
old_dir | 607 | fs/msdos/namei.c | struct super_block *sb = old_dir->i_sb; |
old_dir | 614 | fs/msdos/namei.c | if (old_dir->i_dev != new_dir->i_dev) return -EINVAL; |
old_dir | 634 | fs/msdos/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) { |
old_dir | 719 | fs/msdos/namei.c | old_dir->i_nlink--; |
old_dir | 734 | fs/msdos/namei.c | int msdos_rename(struct inode *old_dir,const char *old_name,int old_len, |
old_dir | 737 | fs/msdos/namei.c | struct super_block *sb = old_dir->i_sb; |
old_dir | 744 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(old_dir->i_sb)->options.name_check, |
old_dir | 746 | fs/msdos/namei.c | MSDOS_SB(old_dir->i_sb)->options.dotsOK)) |
old_dir | 754 | fs/msdos/namei.c | if ((error = fat_scan(old_dir,old_msdos_name,&old_bh,&old_de, |
old_dir | 757 | fs/msdos/namei.c | if (old_dir == new_dir) |
old_dir | 758 | fs/msdos/namei.c | error = rename_same_dir(old_dir,old_msdos_name,old_len,new_dir, |
old_dir | 760 | fs/msdos/namei.c | else error = rename_diff_dir(old_dir,old_msdos_name,old_len,new_dir, |
old_dir | 765 | fs/msdos/namei.c | iput(old_dir); |
old_dir | 785 | fs/namei.c | struct inode * old_dir, * new_dir; |
old_dir | 789 | fs/namei.c | error = dir_namei(oldname, &old_len, &old_base, NULL, &old_dir); |
old_dir | 792 | fs/namei.c | if ((error = permission(old_dir,MAY_WRITE | MAY_EXEC)) != 0) { |
old_dir | 793 | fs/namei.c | iput(old_dir); |
old_dir | 799 | fs/namei.c | iput(old_dir); |
old_dir | 804 | fs/namei.c | iput(old_dir); |
old_dir | 808 | fs/namei.c | iput(old_dir); |
old_dir | 815 | fs/namei.c | iput(old_dir); |
old_dir | 819 | fs/namei.c | if (new_dir->i_dev != old_dir->i_dev) { |
old_dir | 820 | fs/namei.c | iput(old_dir); |
old_dir | 824 | fs/namei.c | if (IS_RDONLY(new_dir) || IS_RDONLY(old_dir)) { |
old_dir | 825 | fs/namei.c | iput(old_dir); |
old_dir | 832 | fs/namei.c | if (IS_APPEND(old_dir)) { |
old_dir | 833 | fs/namei.c | iput(old_dir); |
old_dir | 837 | fs/namei.c | if (!old_dir->i_op || !old_dir->i_op->rename) { |
old_dir | 838 | fs/namei.c | iput(old_dir); |
old_dir | 846 | fs/namei.c | error = old_dir->i_op->rename(old_dir, old_base, old_len, |
old_dir | 64 | fs/ncpfs/dir.c | ncp_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 1063 | fs/ncpfs/dir.c | ncp_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 1070 | fs/ncpfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) |
old_dir | 1077 | fs/ncpfs/dir.c | if (!ncp_conn_valid(NCP_SERVER(old_dir))) |
old_dir | 1090 | fs/ncpfs/dir.c | if ( (ncp_find_dir_inode(old_dir, old_name) != NULL) |
old_dir | 1105 | fs/ncpfs/dir.c | res = ncp_ren_or_mov_file_or_subdir(NCP_SERVER(old_dir), |
old_dir | 1106 | fs/ncpfs/dir.c | NCP_ISTRUCT(old_dir), _old_name, |
old_dir | 1111 | fs/ncpfs/dir.c | ncp_invalid_dir_cache(old_dir); |
old_dir | 1120 | fs/ncpfs/dir.c | iput(old_dir); |
old_dir | 520 | fs/ncpfs/ncplib_kernel.c | struct nw_info_struct *old_dir, char *old_name, |
old_dir | 525 | fs/ncpfs/ncplib_kernel.c | if ( (old_dir == NULL) || (old_name == NULL) |
old_dir | 536 | fs/ncpfs/ncplib_kernel.c | ncp_add_byte(server, old_dir->volNumber); |
old_dir | 537 | fs/ncpfs/ncplib_kernel.c | ncp_add_dword(server, old_dir->DosDirNum); |
old_dir | 165 | fs/ncpfs/ncplib_kernel.h | struct nw_info_struct *old_dir, char *old_name, |
old_dir | 37 | fs/nfs/dir.c | static int nfs_rename(struct inode *old_dir, const char *old_name, |
old_dir | 563 | fs/nfs/dir.c | static int nfs_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 568 | fs/nfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
old_dir | 570 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 576 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 581 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 585 | fs/nfs/dir.c | error = nfs_proc_rename(NFS_SERVER(old_dir), |
old_dir | 586 | fs/nfs/dir.c | NFS_FH(old_dir), old_name, |
old_dir | 589 | fs/nfs/dir.c | nfs_lookup_cache_remove(old_dir, NULL, old_name); |
old_dir | 592 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 614 | fs/nfs/proc.c | struct nfs_fh *old_dir, const char *old_name, |
old_dir | 626 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
old_dir | 63 | fs/smbfs/dir.c | smb_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 884 | fs/smbfs/dir.c | smb_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 890 | fs/smbfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
old_dir | 902 | fs/smbfs/dir.c | res = get_pname_static(old_dir, old_name, old_len, old_path, &old_len); |
old_dir | 912 | fs/smbfs/dir.c | if ( (smb_find_inode(SMB_SERVER(old_dir), old_path) != NULL) |
old_dir | 918 | fs/smbfs/dir.c | res = smb_proc_mv(SMB_SERVER(old_dir), old_path, old_len, |
old_dir | 923 | fs/smbfs/dir.c | res1 = smb_proc_unlink(SMB_SERVER(old_dir), new_path, new_len); |
old_dir | 925 | fs/smbfs/dir.c | res = smb_proc_mv(SMB_SERVER(old_dir), old_path, |
old_dir | 931 | fs/smbfs/dir.c | smb_invalid_dir_cache(old_dir->i_ino); |
old_dir | 936 | fs/smbfs/dir.c | iput(old_dir); |
old_dir | 670 | fs/sysv/namei.c | static int do_sysv_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 690 | fs/sysv/namei.c | old_bh = sysv_find_entry(old_dir,old_name,old_len,&old_de); |
old_dir | 694 | fs/sysv/namei.c | old_inode = __iget(old_dir->i_sb, old_de->inode, 0); /* don't cross mnt-points */ |
old_dir | 698 | fs/sysv/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 700 | fs/sysv/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
old_dir | 744 | fs/sysv/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 765 | fs/sysv/namei.c | old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; |
old_dir | 766 | fs/sysv/namei.c | old_dir->i_dirt = 1; |
old_dir | 779 | fs/sysv/namei.c | old_dir->i_nlink--; |
old_dir | 780 | fs/sysv/namei.c | old_dir->i_dirt = 1; |
old_dir | 796 | fs/sysv/namei.c | iput(old_dir); |
old_dir | 810 | fs/sysv/namei.c | int sysv_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 820 | fs/sysv/namei.c | result = do_sysv_rename(old_dir, old_name, old_len, |
old_dir | 309 | fs/umsdos/namei.c | struct inode * old_dir, |
old_dir | 326 | fs/umsdos/namei.c | umsdos_lockcreate2(old_dir,new_dir); |
old_dir | 329 | fs/umsdos/namei.c | ret = umsdos_findentry(old_dir,&old_info,0); |
old_dir | 334 | fs/umsdos/namei.c | if ( !(old_dir->i_mode & S_ISVTX) || fsuser() || |
old_dir | 336 | fs/umsdos/namei.c | current->fsuid == old_dir->i_uid ) { |
old_dir | 351 | fs/umsdos/namei.c | old_dir->i_count++; |
old_dir | 353 | fs/umsdos/namei.c | ret = msdos_rename (old_dir |
old_dir | 364 | fs/umsdos/namei.c | ret = umsdos_delentry (old_dir,&old_info |
old_dir | 408 | fs/umsdos/namei.c | umsdos_unlockcreate(old_dir); |
old_dir | 411 | fs/umsdos/namei.c | iput (old_dir); |
old_dir | 1012 | fs/umsdos/namei.c | struct inode * old_dir, |
old_dir | 1034 | fs/umsdos/namei.c | old_dir->i_count++; |
old_dir | 1036 | fs/umsdos/namei.c | ret = umsdos_rename_f (old_dir,old_name,old_len,new_dir,new_name |
old_dir | 1084 | fs/umsdos/namei.c | ret = umsdos_rename_f (old_dir,old_name,old_len |
old_dir | 1086 | fs/umsdos/namei.c | new_dir = old_dir = NULL; |
old_dir | 1091 | fs/umsdos/namei.c | iput (old_dir); |
old_dir | 1352 | fs/vfat/namei.c | int vfat_rename(struct inode *old_dir,const char *old_name,int old_len, |
old_dir | 1355 | fs/vfat/namei.c | struct super_block *sb = old_dir->i_sb; |
old_dir | 1366 | fs/vfat/namei.c | if (old_dir == new_dir && old_len == new_len && |
old_dir | 1372 | fs/vfat/namei.c | res = vfat_find(old_dir,old_name,old_len,1,0,0,&sinfo); |
old_dir | 1380 | fs/vfat/namei.c | res = fat_get_entry(old_dir, &old_offset, &old_bh, &old_de); |
old_dir | 1384 | fs/vfat/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) goto rename_done; |
old_dir | 1387 | fs/vfat/namei.c | if ((old_dir->i_dev != new_dir->i_dev) || |
old_dir | 1479 | fs/vfat/namei.c | old_dir->i_version = ++event; |
old_dir | 1483 | fs/vfat/namei.c | res = fat_get_entry(old_dir, &old_longname_offset, &old_bh, &old_de); |
old_dir | 1515 | fs/vfat/namei.c | old_dir->i_nlink--; |
old_dir | 1530 | fs/vfat/namei.c | iput(old_dir); |
old_dir | 714 | fs/xiafs/namei.c | static int do_xiafs_rename(struct inode * old_dir, const char * old_name, |
old_dir | 726 | fs/xiafs/namei.c | old_bh = xiafs_find_entry(old_dir, old_name, old_len, &old_de, &old_de_pre); |
old_dir | 730 | fs/xiafs/namei.c | old_inode = __iget(old_dir->i_sb, old_de->d_ino, 0); /* don't cross mnt-points */ |
old_dir | 734 | fs/xiafs/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 736 | fs/xiafs/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
old_dir | 772 | fs/xiafs/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 808 | fs/xiafs/namei.c | old_dir->i_nlink--; |
old_dir | 810 | fs/xiafs/namei.c | old_dir->i_dirt = 1; |
old_dir | 820 | fs/xiafs/namei.c | iput(old_dir); |
old_dir | 834 | fs/xiafs/namei.c | int xiafs_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 844 | 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 | 102 | include/linux/minix_fs.h | extern int minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 253 | include/linux/msdos_fs.h | extern int msdos_rename(struct inode *old_dir,const char *old_name,int old_len, |
old_dir | 80 | 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, |