There are several places where new lvols are created and each reproduces much of the same code. Esnap clones will add yet another in lvol.c and more in unit tests. This introduces lvol_alloc() to minimize the chance of unintended skew over time. A side effect of this is that snapshots and clones now inherit clear method from their parent. Previously they would fall back to the default. The old behavior seems to be accidental, hence the change. Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: Ibf6f79c567e92354ea73e6589c736b1b946731a0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14976 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot |
||
---|---|---|
.. | ||
lvol.c | ||
Makefile | ||
spdk_lvol.map |