Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: I9168af3cacffe9c4efae169b56df974a35bd4e2c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13296 Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
20 lines
472 B
C
20 lines
472 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (c) Intel Corporation.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#include "spdk/ftl.h"
|
|
#include "ftl_debug.h"
|
|
|
|
void
|
|
ftl_dev_dump_stats(const struct spdk_ftl_dev *dev)
|
|
{
|
|
size_t total = 0;
|
|
char uuid[SPDK_UUID_STRING_LEN];
|
|
|
|
spdk_uuid_fmt_lower(uuid, sizeof(uuid), &dev->conf.uuid);
|
|
FTL_NOTICELOG(dev, "\n");
|
|
FTL_NOTICELOG(dev, "device UUID: %s\n", uuid);
|
|
FTL_NOTICELOG(dev, "total valid LBAs: %zu\n", total);
|
|
}
|