13d6d00347
In show_blob(), value_len of xattr contains terminator '\0', which is printed as '.' when calling spdk_log_dump(). For example, we set key/value pair as <key1,xattr value>, we get "xattr value." but not "xattr value" when showing blob info. Skip '\0' will fix this. And "data[BUFSIZE]" seems redundant here, remove it. Signed-off-by: Richael Zhuang <richael.zhuang@arm.com> Change-Id: I4e7c3276e51f14badf43b660b80b24ae85bb0900 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1745 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
91 lines
2.5 KiB
Plaintext
91 lines
2.5 KiB
Plaintext
Starting SPDK v19.10.1 / DPDK 19.08.0 initialization...
|
|
[ DPDK EAL parameters: blobcli --no-shconf -c 0x1 --log-level=lib.eal:6 --log-level=lib.cryptodev:5 --log-level=user1:6 --iova-mode=pa --base-virtaddr=0x200000000000 --match-allocations --file-prefix=spdk_pid1641656 ]
|
|
|
|
SCRIPT NOW PROCESSING: -i
|
|
Init blobstore using bdev Product Name: NVMe disk
|
|
blobstore init'd: ($(XX))
|
|
|
|
SCRIPT NOW PROCESSING: -l bdevs
|
|
|
|
List bdevs:
|
|
bdev Name: Nvme0n1
|
|
bdev Product Name: NVMe disk
|
|
|
|
|
|
SCRIPT NOW PROCESSING: -n 1
|
|
New blob id $(N)
|
|
blob now has USED clusters of 1
|
|
|
|
SCRIPT NOW PROCESSING: -p $B0
|
|
Super Blob ID has been set.
|
|
|
|
SCRIPT NOW PROCESSING: -n 1
|
|
New blob id $(N)
|
|
blob now has USED clusters of 1
|
|
|
|
SCRIPT NOW PROCESSING: -m $B1 test.pattern
|
|
Working...............................................................................................................................................................................................................................................................
|
|
Blob import complete (from test.pattern).
|
|
|
|
SCRIPT NOW PROCESSING: -d $B1 test.pattern.blob
|
|
Working................................................................................................................................................................................................................................................................
|
|
File write complete (to test.pattern.blob).
|
|
|
|
SCRIPT NOW PROCESSING: -x $B1 key val
|
|
Xattr has been set.
|
|
|
|
SCRIPT NOW PROCESSING: -s bs
|
|
Blobstore Public Info:
|
|
Using bdev Product Name: NVMe disk
|
|
API Version: $(N)
|
|
super blob ID: $(N)
|
|
page size: $(N)
|
|
io unit size: $(N)
|
|
cluster size: 1048576
|
|
# free clusters: $(N)
|
|
blobstore type:
|
|
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
|
|
|
|
Blobstore Private Info:
|
|
Metadata start (pages): $(N)
|
|
Metadata length (pages): $(N)
|
|
|
|
SCRIPT NOW PROCESSING: -s $B1
|
|
Blob Public Info:
|
|
blob ID: $(N)
|
|
# of clusters: 1
|
|
# of bytes: 1048576
|
|
# of pages: 256
|
|
# of xattrs: 1
|
|
xattrs:
|
|
|
|
(0) Name:key
|
|
(0) Value:
|
|
|
|
00000000 76 61 6c val
|
|
|
|
Blob Private Info:
|
|
state: CLEAN
|
|
open ref count: 1
|
|
|
|
SCRIPT NOW PROCESSING: -r $B1 key
|
|
Xattr has been removed.
|
|
|
|
SCRIPT NOW PROCESSING: -s bs
|
|
Blobstore Public Info:
|
|
Using bdev Product Name: NVMe disk
|
|
API Version: 3
|
|
super blob ID: $(N)
|
|
page size: $(N)
|
|
io unit size: $(N)
|
|
cluster size: 1048576
|
|
# free clusters: $(N)
|
|
blobstore type:
|
|
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
|
|
|
|
Blobstore Private Info:
|
|
Metadata start (pages): $(N)
|
|
Metadata length (pages): $(N)
|
|
|
|
SCRIPT NOW PROCESSING: -X
|