From: Miklos Szeredi <mszeredi@xxxxxxx> so we return -EIO instead of -EINVAL. Signed-off-by: Miklos Szeredi <mszeredi@xxxxxxx> --- fs/bad_inode.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/fs/bad_inode.c +++ b/fs/bad_inode.c @@ -224,6 +224,13 @@ static int bad_inode_rename (struct inod return -EIO; } +static int bad_inode_rename2(struct inode *old_dir, struct dentry *old_dentry, + struct inode *new_dir, struct dentry *new_dentry, + unsigned int flags) +{ + return -EIO; +} + static int bad_inode_readlink(struct dentry *dentry, char __user *buffer, int buflen) { @@ -280,6 +287,7 @@ static const struct inode_operations bad .rmdir = bad_inode_rmdir, .mknod = bad_inode_mknod, .rename = bad_inode_rename, + .rename2 = bad_inode_rename2, .readlink = bad_inode_readlink, /* follow_link must be no-op, otherwise unmounting this inode won't work */ -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html