[stgt] [PATCH] use "null" backing store for no backing device
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Wed May 26 16:06:38 CEST 2010
Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
usr/target.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/usr/target.c b/usr/target.c
index c848757..4912c0f 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -480,7 +480,8 @@ int tgt_device_create(int tid, int dev_type, uint64_t lun, char *params,
goto out;
}
}
- }
+ } else
+ bst = get_backingstore_template("null");
t = device_type_lookup(dev_type);
if (!t) {
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list