From bda72009430ed76dc00433346b33be25c2fe2566 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 30 Aug 2012 11:37:24 +0200 Subject: fuse: log options passed to fuse when mount fails This is done to ease debugging. Change-Id: I50cfca297e03f41cc47819d0700752e3d24a07d6 BUG: 852754 Signed-off-by: Lubomir Rintel Reviewed-on: http://review.gluster.org/3877 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- contrib/fuse-lib/mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/fuse-lib/mount.c b/contrib/fuse-lib/mount.c index fedde3fceea..a222aaca402 100644 --- a/contrib/fuse-lib/mount.c +++ b/contrib/fuse-lib/mount.c @@ -294,7 +294,8 @@ gf_fuse_mount (const char *mountpoint, char *fsname, } if (ret == -1) - GFFUSE_LOGERR ("mount failed"); + GFFUSE_LOGERR ("mount of %s to %s (%s) failed", + fsname, mountpoint, mnt_param); if (status_fd >= 0) (void)write (status_fd, &ret, sizeof (ret)); -- cgit