Unionfs: better error handling in rename code when copyups are involved
authorErez_Zadok <ezk@cs.sunysb.edu>
Tue, 10 Jul 2007 00:14:41 +0000 (20:14 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 03:43:29 +0000 (23:43 -0400)
commit1b5a6a4e425006c30bd80131e2bc815d914837d4
treeca4c4597c3917f71ef2eae38ab9517ef6efba59f
parent00b2d78c4c1a8de3b81a5f1cd30c8754ebc977aa
Unionfs: better error handling in rename code when copyups are involved

First, rewrite code slightly and document it better to explain why we appear
to ignore copyup errors (because we try the next branch to the left).

Second, change a BUG_ON to a printk(KERN_ERR), because a mild failure to
copyup a file should not cause an oops.  For example, some file systems
don't support UIDs/GIDs (e.g., VFAT) and others don't allow you to chmod a
symlink (e.g., jffs2), possibly resulting in mild copyup failures; that
shouldn't be considered so severe as to cause an oops.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/rename.c