xen-blkfront: feature flags handling adjustments
authorJan Beulich <JBeulich@suse.com>
Mon, 23 Jan 2017 15:12:19 +0000 (08:12 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 23 Jan 2017 18:27:41 +0000 (13:27 -0500)
commitb32728ffef7f233dbdabb3f11814bdf692aaf501
tree5bf0326545d0c4525a43f3c50cfcdef09f0baa88
parentd61b7f972dab2a7d187c38254845546dfc8eed85
xen-blkfront: feature flags handling adjustments

Don't truncate the "feature-persistent" value read from xenstore: Any
non-zero value is supposed to enable the feature, just like is already
being done for feature_secdiscard.

Just like the other feature_* fields, feature_flush and feature_fua are
boolean flags, and hence fit well into a single bit.

Keep all bit fields together to limit gaps.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkfront.c