From 308459747b4be593cfa8e2108a3a17c4a4059e23 Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Thu, 13 Sep 2012 16:45:01 -0700 Subject: [PATCH] LU-1946 mount: Print more helpful message on EBUSY If the mount function returns EBUSY, there is a chance that the backend filesystem is mounted through the Posix layer. Specifically, when using a ZFS backend EBUSY will be returned in this use case. As an aid the to end user, this patch prints a message intended to help the user diagnose and fix the issue. Signed-off-by: Prakash Surya Change-Id: I7bacbb74c1e76efbbea60f76049a9356d601d246 Reviewed-on: http://review.whamcloud.com/3997 Reviewed-by: Andreas Dilger Reviewed-by: Bobi Jam Tested-by: Hudson Tested-by: Maloo --- lustre/utils/mount_lustre.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 9be94a6..325ae0f 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -638,6 +638,9 @@ int main(int argc, char *const argv[]) fprintf(stderr, "%s: mount %s at %s failed: %s\n", progname, mop.mo_usource, mop.mo_target, strerror(errno)); + if (errno == EBUSY) + fprintf(stderr, "Is the backend filesystem mounted?\n" + "Check /etc/mtab and /proc/mounts\n"); if (errno == ENODEV) fprintf(stderr, "Are the lustre modules loaded?\n" "Check /etc/modprobe.conf and " -- 1.8.3.1