bs_dev: Add notice log when device does not support unmap

Previously lack of support for specific bdev was not known to user.
This impacts all unmap operations, such as initialization of blobstore.
It should be useful to user to know it will take longer

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I89bf3bc0342558fda9a8964fb5cb1daa3a8ed79e
Reviewed-on: https://review.gerrithub.io/385999
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Tomasz Zawadzki 2017-11-07 09:39:15 +01:00 committed by Jim Harris
parent 0e00414344
commit 5a597c6f16

View File

@ -234,6 +234,8 @@ spdk_bdev_create_bs_dev(struct spdk_bdev *bdev, spdk_bdev_remove_cb_t remove_cb,
* This will always work, since bdev implements write_zeroes on top of write
* if the device doesn't natively support write_zeroes.
*/
SPDK_NOTICELOG("Bdev %s does not support unmap, write_zeroes will be used instead.\n",
bdev->name);
b->bs_dev.unmap = bdev_blob_write_zeroes;
}