backing-store modules directory not present is not an error

Lee Duncan <[email protected]> Sun, 15 Nov 2015 17:15:51 -0800
Newsgroups org.kernel.vger.stgt
Message-ID <[email protected]>
The backing-store modules directory, normally
/usr/lib/tgt/backing-store, is not created, needed, or used when there
are no backing store modules. So change the error message printed when
the directory is not present to a debug message.

Signed-off-by: Lee Duncan <[email protected]>
---
diff -aurp tgt-1.0.44.orig/usr/bs.c tgt-1.0.44/usr/bs.c
--- tgt-1.0.44.orig/usr/bs.c	2014-02-02 22:56:32.000000000 -0800
+++ tgt-1.0.44/usr/bs.c	2015-11-15 17:14:51.932000000 -0800
@@ -267,7 +267,8 @@ static int bs_init_signalfd(void)

 	dir = opendir(BSDIR);
 	if (dir == NULL) {
-		eprintf("could not open backing-store module directory %s\n",
+		/* not considered an error if there are no modules */
+		dprintf("could not open backing-store module directory %s\n",
 			BSDIR);
 	} else {
 		struct dirent *dirent;