tgt/tgt-missing-module-directory-not-an-error
Lee Duncan a9712ec8ea Accepting request 344818 from home:lee_duncan:branches:Base:System
- Adding upstream patch to silence bogus error
  message when backing-store directory not present
  (bsc#954801), adding patch:
  * tgt-missing-module-directory-not-an-error 

- Added upstream patch to handle possible target removal
  while accessing it (bsc#922526), adding patch:
  * tgt-handle-access-of-a-target-that-has-been-removed

OBS-URL: https://build.opensuse.org/request/show/344818
OBS-URL: https://build.opensuse.org/package/show/Base:System/tgt?expand=0&rev=35
2015-11-16 21:52:21 +00:00

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;