[GFS2] print mount errors related to sysfs
authorDavid Teigland <teigland@redhat.com>
Fri, 15 Sep 2006 18:09:11 +0000 (13:09 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 18 Sep 2006 13:43:23 +0000 (09:43 -0400)
Print an error message if mount fails in setting up the sysfs files.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/sys.c

index 88386d8dc05a0de14aa3c66f4c07b7cdee00b5f0..c9b23084918f4bec54c3dc83227440c9a7f0c770 100644 (file)
@@ -555,6 +555,7 @@ fail_lockstruct:
 fail_reg:
        kobject_unregister(&sdp->sd_kobj);
 fail:
+       fs_err(sdp, "error %d adding sysfs files", error);
        return error;
 }