aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/debug.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2020-11-16 15:56:59 +0100
committerJens Axboe <[email protected]>2020-11-16 08:34:14 -0700
commit2dc691cc4ac259f8b5bb0bd8670645af894d30eb (patch)
tree1c480cc11d699018b66daf7363c112b1eba952f3 /tools/lib/api/debug.c
parent92f93c3a1bf9dc73181dc6566497d16b690cb576 (diff)
nbd: refactor size updates
Merge nbd_size_set and nbd_size_update into a single function that also updates the nbd_config fields. This new function takes the device size in bytes as the first argument, and the blocksize as the second argument, simplifying the calculations required in most callers. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions