Commit 2902df92 authored by J. R. Okajima's avatar J. R. Okajima
Browse files

aufs: inode op, rename 2/2, body



Implement i_op->rename().
This is a big monster and I don't like it.

In this version, the copy-up always happen.
Signed-off-by: default avatarJ. R. Okajima <hooanon05g@gmail.com>
parent 2a422a58
......@@ -17,7 +17,7 @@ aufs-y := module.o sbinfo.o super.o branch.o xino.o sysaufs.o opts.o \
dynop.o \
finfo.o file.o \
dir.o vdir.o \
iinfo.o inode.o i_op.o i_op_add.o i_op_del.o
iinfo.o inode.o i_op.o i_op_add.o i_op_del.o i_op_ren.o
# all are boolean
aufs-$(CONFIG_PROC_FS) += procfs.o plink.o
......
......@@ -652,6 +652,7 @@ struct inode_operations aufs_iop[] = {
.mkdir = aufs_mkdir,
.rmdir = aufs_rmdir,
.mknod = aufs_mknod,
.rename = aufs_rename,
.permission = aufs_permission,
......
This diff is collapsed.
......@@ -179,6 +179,12 @@ int au_may_del(struct dentry *dentry, aufs_bindex_t bindex,
int aufs_unlink(struct inode *dir, struct dentry *dentry);
int aufs_rmdir(struct inode *dir, struct dentry *dentry);
/* i_op_ren.c */
int au_wbr(struct dentry *dentry, aufs_bindex_t btgt);
int aufs_rename(struct inode *src_dir, struct dentry *src_dentry,
struct inode *dir, struct dentry *dentry,
unsigned int flags);
/* iinfo.c */
struct inode *au_h_iptr(struct inode *inode, aufs_bindex_t bindex);
void au_hiput(struct au_hinode *hinode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment