Skip to content

Commit

Permalink
NBS-3864: set vhost rdma backend device offset to 0
Browse files Browse the repository at this point in the history
device offset is not used for rdma since we access device through disk agent
which takes care of translating request to correct device physical offset
  • Loading branch information
budevg committed Jan 9, 2024
1 parent e9a841b commit af6cf43
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -850,11 +850,16 @@ class TExternalVhostEndpointListener final
for (const auto& device: volume.GetDevices()) {
const ui64 size = device.GetBlockCount() * volume.GetBlockSize();

auto offset = device.GetPhysicalOffset();
if (epType == EEndpointType::Rdma) {
offset = 0;
}

args.insert(args.end(), {
"--device", TStringBuilder()
<< GetDevicePath(epType, device) << ":"
<< size << ":"
<< device.GetPhysicalOffset()
<< offset
});
}

Expand Down

0 comments on commit af6cf43

Please sign in to comment.