diff options
Diffstat (limited to 'xlators/storage/bd/src/bd.c')
-rw-r--r-- | xlators/storage/bd/src/bd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/storage/bd/src/bd.c b/xlators/storage/bd/src/bd.c index 17a9a5f159a..4c3a7e14e65 100644 --- a/xlators/storage/bd/src/bd.c +++ b/xlators/storage/bd/src/bd.c @@ -1015,6 +1015,13 @@ bd_setx_stat_cbk (call_frame_t *frame, void *cookie, xlator_t *this, goto out; } + if (!strcmp (type, BD_THIN) && !(priv->caps & BD_CAPS_THIN)) { + gf_log (this->name, GF_LOG_WARNING, "THIN lv not supported by " + "this volume"); + op_errno = EOPNOTSUPP; + goto out; + } + s_size = strtok_r (NULL, ":", &p); /* If size not specified get default size */ |