backing-store modules directory not present is not an error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <lduncan@xxxxxxxx>
---
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;
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux