tag | line | file | source code |
old_dir | 755 | fs/ext/namei.c | static int do_ext_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 775 | fs/ext/namei.c | old_bh = ext_find_entry(old_dir,old_name,old_len,&old_de,&pde,&nde); |
old_dir | 779 | fs/ext/namei.c | old_inode = iget(old_dir->i_sb, old_de->inode); |
old_dir | 783 | fs/ext/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 785 | fs/ext/namei.c | current->euid != old_dir->i_uid && !suser()) |
old_dir | 822 | fs/ext/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 851 | fs/ext/namei.c | old_dir->i_nlink--; |
old_dir | 853 | fs/ext/namei.c | old_dir->i_dirt = 1; |
old_dir | 863 | fs/ext/namei.c | iput(old_dir); |
old_dir | 877 | fs/ext/namei.c | int ext_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 887 | fs/ext/namei.c | result = do_ext_rename(old_dir, old_name, old_len, |
old_dir | 785 | fs/ext2/namei.c | static int do_ext2_rename (struct inode * old_dir, const char * old_name, |
old_dir | 806 | fs/ext2/namei.c | old_bh = ext2_find_entry (old_dir, old_name, old_len, &old_de, &pde); |
old_dir | 810 | fs/ext2/namei.c | old_inode = iget (old_dir->i_sb, old_de->inode); |
old_dir | 814 | fs/ext2/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 816 | fs/ext2/namei.c | current->euid != old_dir->i_uid && !suser()) |
old_dir | 859 | fs/ext2/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 880 | fs/ext2/namei.c | ext2_dcache_remove (old_dir->i_dev, old_dir->i_ino, old_de->name, |
old_dir | 899 | fs/ext2/namei.c | old_dir->i_nlink --; |
old_dir | 901 | fs/ext2/namei.c | old_dir->i_dirt = 1; |
old_dir | 911 | fs/ext2/namei.c | iput (old_dir); |
old_dir | 929 | fs/ext2/namei.c | int ext2_rename (struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 934 | fs/ext2/namei.c | while (old_dir->i_sb->u.ext2_sb.s_rename_lock) |
old_dir | 935 | fs/ext2/namei.c | sleep_on (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
old_dir | 936 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 1; |
old_dir | 937 | fs/ext2/namei.c | result = do_ext2_rename (old_dir, old_name, old_len, new_dir, |
old_dir | 939 | fs/ext2/namei.c | old_dir->i_sb->u.ext2_sb.s_rename_lock = 0; |
old_dir | 940 | fs/ext2/namei.c | wake_up (&old_dir->i_sb->u.ext2_sb.s_rename_wait); |
old_dir | 666 | fs/minix/namei.c | static int do_minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 675 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
old_dir | 688 | fs/minix/namei.c | old_bh = minix_find_entry(old_dir,old_name,old_len,&old_de); |
old_dir | 692 | fs/minix/namei.c | old_inode = iget(old_dir->i_sb, old_de->inode); |
old_dir | 696 | fs/minix/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 698 | fs/minix/namei.c | current->euid != old_dir->i_uid && !suser()) |
old_dir | 742 | fs/minix/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 772 | fs/minix/namei.c | old_dir->i_nlink--; |
old_dir | 773 | fs/minix/namei.c | old_dir->i_dirt = 1; |
old_dir | 789 | fs/minix/namei.c | iput(old_dir); |
old_dir | 803 | fs/minix/namei.c | int minix_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 813 | fs/minix/namei.c | result = do_minix_rename(old_dir, old_name, old_len, |
old_dir | 390 | fs/msdos/namei.c | static int rename_same_dir(struct inode *old_dir,char *old_name, |
old_dir | 432 | fs/msdos/namei.c | if (MSDOS_SB(old_dir->i_sb)->conversion == 'a') /* update binary info */ |
old_dir | 433 | fs/msdos/namei.c | if ((old_inode = iget(old_dir->i_sb,old_ino)) != NULL) { |
old_dir | 441 | fs/msdos/namei.c | static int rename_diff_dir(struct inode *old_dir,char *old_name, |
old_dir | 451 | fs/msdos/namei.c | if (old_dir->i_dev != new_dir->i_dev) return -EINVAL; |
old_dir | 469 | fs/msdos/namei.c | if (!(old_inode = iget(old_dir->i_sb,old_ino))) { |
old_dir | 545 | fs/msdos/namei.c | old_dir->i_nlink--; |
old_dir | 560 | fs/msdos/namei.c | int msdos_rename(struct inode *old_dir,const char *old_name,int old_len, |
old_dir | 568 | fs/msdos/namei.c | if ((error = msdos_format_name(MSDOS_SB(old_dir->i_sb)->name_check, |
old_dir | 572 | fs/msdos/namei.c | if ((error = msdos_scan(old_dir,old_msdos_name,&old_bh,&old_de, |
old_dir | 575 | fs/msdos/namei.c | if (old_dir == new_dir) |
old_dir | 576 | fs/msdos/namei.c | error = rename_same_dir(old_dir,old_msdos_name,new_dir, |
old_dir | 578 | fs/msdos/namei.c | else error = rename_diff_dir(old_dir,old_msdos_name,new_dir, |
old_dir | 583 | fs/msdos/namei.c | iput(old_dir); |
old_dir | 651 | fs/namei.c | struct inode * old_dir, * new_dir; |
old_dir | 655 | fs/namei.c | error = dir_namei(oldname,&old_len,&old_base,NULL,&old_dir); |
old_dir | 658 | fs/namei.c | if (!permission(old_dir,MAY_WRITE | MAY_EXEC)) { |
old_dir | 659 | fs/namei.c | iput(old_dir); |
old_dir | 665 | fs/namei.c | iput(old_dir); |
old_dir | 670 | fs/namei.c | iput(old_dir); |
old_dir | 674 | fs/namei.c | iput(old_dir); |
old_dir | 681 | fs/namei.c | iput(old_dir); |
old_dir | 685 | fs/namei.c | if (new_dir->i_dev != old_dir->i_dev) { |
old_dir | 686 | fs/namei.c | iput(old_dir); |
old_dir | 690 | fs/namei.c | if (IS_RDONLY(new_dir) || IS_RDONLY(old_dir)) { |
old_dir | 691 | fs/namei.c | iput(old_dir); |
old_dir | 695 | fs/namei.c | if (!old_dir->i_op || !old_dir->i_op->rename) { |
old_dir | 696 | fs/namei.c | iput(old_dir); |
old_dir | 700 | fs/namei.c | return old_dir->i_op->rename(old_dir, old_base, old_len, |
old_dir | 36 | fs/nfs/dir.c | static int nfs_rename(struct inode *old_dir, const char *old_name, |
old_dir | 520 | fs/nfs/dir.c | static int nfs_rename(struct inode *old_dir, const char *old_name, int old_len, |
old_dir | 525 | fs/nfs/dir.c | if (!old_dir || !S_ISDIR(old_dir->i_mode)) { |
old_dir | 527 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 533 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 538 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 542 | fs/nfs/dir.c | error = nfs_proc_rename(NFS_SERVER(old_dir), |
old_dir | 543 | fs/nfs/dir.c | NFS_FH(old_dir), old_name, |
old_dir | 546 | fs/nfs/dir.c | nfs_lookup_cache_remove(old_dir, NULL, old_name); |
old_dir | 549 | fs/nfs/dir.c | iput(old_dir); |
old_dir | 401 | fs/nfs/proc.c | struct nfs_fh *old_dir, const char *old_name, |
old_dir | 410 | fs/nfs/proc.c | p = xdr_encode_fhandle(p, old_dir); |
old_dir | 707 | fs/xiafs/namei.c | static int do_xiafs_rename(struct inode * old_dir, const char * old_name, |
old_dir | 719 | fs/xiafs/namei.c | old_bh = xiafs_find_entry(old_dir, old_name, old_len, &old_de, &old_de_pre); |
old_dir | 723 | fs/xiafs/namei.c | old_inode = iget(old_dir->i_sb, old_de->d_ino); |
old_dir | 727 | fs/xiafs/namei.c | if ((old_dir->i_mode & S_ISVTX) && |
old_dir | 729 | fs/xiafs/namei.c | current->euid != old_dir->i_uid && !suser()) |
old_dir | 766 | fs/xiafs/namei.c | if (PARENT_INO(dir_bh->b_data) != old_dir->i_ino) |
old_dir | 802 | fs/xiafs/namei.c | old_dir->i_nlink--; |
old_dir | 804 | fs/xiafs/namei.c | old_dir->i_dirt = 1; |
old_dir | 814 | fs/xiafs/namei.c | iput(old_dir); |
old_dir | 828 | fs/xiafs/namei.c | int xiafs_rename(struct inode * old_dir, const char * old_name, int old_len, |
old_dir | 838 | 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 | 86 | 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 | 79 | include/linux/nfs_fs.h | struct nfs_fh *old_dir, const char *old_name, |
old_dir | 78 | include/linux/xia_fs.h | extern int xiafs_rename(struct inode * old_dir, const char * old_name, |