print KERN_ERR is odf_read_super fails
authorYiannis Pericleous <yiannos@loki.fsl.cs.sunysb.edu>
Fri, 25 May 2007 03:53:25 +0000 (23:53 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:02:33 +0000 (19:02 -0400)
fs/unionfs/odf.c

index ed059bdadf3b4c09e7def4ae37a12598ddad81a5..8b9e5edf88a94cca62d7429a0699ce6bde5e77a4 100644 (file)
@@ -99,11 +99,11 @@ struct odf_sb_info* odf_read_super(char *options)
 
        err = path_lookup(odffile, LOOKUP_DIRECTORY, &nd);
        if (err) {
-               printk(KERN_WARNING "unionfs: Cannot access odf\n");
+               printk(KERN_ERR "unionfs: Cannot access odf\n");
                goto out;
        }
        if (!nd.dentry->d_inode || !S_ISDIR(nd.dentry->d_inode->i_mode)) {
-               printk(KERN_WARNING "unionfs: Invalid odf\n");
+               printk(KERN_ERR "unionfs: Invalid odf\n");
                err = -EINVAL;
                goto out_release;
        }
@@ -170,6 +170,7 @@ struct odf_sb_info* odf_read_super(char *options)
                goto out_free;
        }
        if (!osi->whiteout->d_inode) {
+               printk(KERN_ERR "unionfs: Whiteout file in odf does not exist\n");
                err = -EINVAL;
                goto out_free;
        }