From 5b0a9f0b1a38e2c7791c75ed64440592d7dc6a65 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 23 Sep 2016 03:04:16 +0000 Subject: [PATCH] scst_vdisk: added parameter cluster_mode to nullio device handler Signed-off-by: Kirill Tyushev git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6985 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 0db59f714..e543bdcbb 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -631,6 +631,7 @@ static const struct attribute *vdisk_nullio_attrs[] = { &vdev_dummy_attr.attr, &vdev_read_zero_attr.attr, &vdisk_removable_attr.attr, + &vdisk_cluster_mode_attr.attr, &vdev_t10_vend_id_attr.attr, &vdev_vend_specific_id_attr.attr, &vdev_prod_id_attr.attr, @@ -831,6 +832,7 @@ static struct scst_dev_type vdisk_null_devtype = { "dif_mode, " "dif_type, " "dif_static_app_tag, ", + "cluster_mode, " "read_only, " "removable, " "rotational, " @@ -8176,7 +8178,7 @@ static int vdev_nullio_add_device(const char *device_name, char *params) int res = 0; static const char *const allowed_params[] = { "read_only", "dummy", "removable", "blocksize", "rotational", - "dif_mode", "dif_type", "dif_static_app_tag", + "cluster_mode", "dif_mode", "dif_type", "dif_static_app_tag", "size", "size_mb", "tst", NULL }; struct scst_vdisk_dev *virt_dev;