From: Pavel Charvat Date: Mon, 29 Oct 2007 12:13:10 +0000 (+0100) Subject: Allow direct I/O parametrized fastbufs only with CONFIG_UCW_THREADS X-Git-Tag: holmes-import~506^2~3 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=0cab8a383f41f534519c7589101d5bcdac4416be;p=libucw.git Allow direct I/O parametrized fastbufs only with CONFIG_UCW_THREADS enabled, otherwise die with an error. --- diff --git a/lib/fb-param.c b/lib/fb-param.c index 39584769..854ba78a 100644 --- a/lib/fb-param.c +++ b/lib/fb-param.c @@ -27,7 +27,7 @@ fbpar_cf_commit(struct fb_params *p UNUSED) { #ifndef CONFIG_UCW_THREADS if (p->type == FB_DIRECT) - p->type = FB_STD; + return "Direct I/O is supported only with CONFIG_UCW_THREADS"; #endif return NULL; }