Fix mkfs fail when using lvol as backend of nbd.Predefined NBD_FLAG_SEND_FLUSH and NBD_FLAG_SEND_TRIM are defined by default, so the operations of trim and flush are supported,but in fact lvol doesn't support trim and flush operations.Therefore add judgement for NBD_FLAG_SEND_FLUSH and NBD_FLAG_SEND_TRIM to check. Signed-off-by: Xinrui Mao <xinrui.mao@intel.com> Change-Id: I3d21034d12a038c8fc694d3383028103239ea6bd Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14099 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> |
||
---|---|---|
.. | ||
bdevio | ||
bdevperf | ||
bdev_raid.sh | ||
blockdev.sh | ||
Makefile | ||
nbd_common.sh | ||
nonarray.json | ||
nonenclosed.json |