commit 5c2557cbeb445ba4c53abac8af5b6b9cef6efc29
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Thu May 24 23:36:21 2007 -0400
return EEXIST if a dir exists when constructing the odf hierarchy
diff --git a/fs/unionfs/odf.c b/fs/unionfs/odf.c
index d49247f..cb44d27 100644
--- a/fs/unionfs/odf.c
+++ b/fs/unionfs/odf.c
@@ -13,7 +13,7 @@ static inline struct dentry * __odf_create_dir(struct dentry
*parent, char *name
goto out;
if (unlikely(dentry->d_inode)) {
dput(dentry);
- dentry = ERR_PTR(-EINVAL);
+ dentry = ERR_PTR(-EEXIST);
goto out;
}
err = vfs_mkdir(parent->d_inode, dentry, S_IRWXUGO);
@@ -68,12 +68,11 @@ int __odf_create_hierarchy(struct dentry *odf_root)
goto out;
}
if (unlikely(dentry->d_inode)){
- err = -EINVAL;
+ err = -EEXIST;
goto out;
}
- err = vfs_create(odf_root->d_inode, dentry, S_IRWXUGO, NULL );
- if (err)
- goto out;
+ err = vfs_create(odf_root->d_inode, dentry, S_IRWXUGO, NULL);
+
out:
dput(dentry);
return err;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs