27 lines
865 B
Plaintext
27 lines
865 B
Plaintext
|
From: Lee Duncan <lduncan@suse.com>
|
||
|
Date: Mon Nov 16 08:49:57 PST 2015
|
||
|
Subject: backing-store modules directory not present is not an error
|
||
|
|
||
|
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@suse.com>
|
||
|
---
|
||
|
usr/bs.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
--- a/usr/bs.c
|
||
|
+++ b/usr/bs.c
|
||
|
@@ -263,7 +263,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;
|