Open PhanLe1010 opened 1 year ago
cc @derekbit @shuo-wu
It seems that write_same
related operations are not listed in the longhorn supported op list, I am not sure why SCSI INQUIRY
gives such an output...
On the other hand, based on the explanation of write_same
, this cmd is similar to unmap
. Can we implement it (for old kernels)? On some tgt vendors like rdwr will do punching-hole for this operation.
Is your improvement request related to a feature? Please describe (👍 if you like this request)
Even though longhorn tgt doesn't implement the operation (codes), the created Longhorn block device somehow still advertises that capability:
From old kernel perspective (< v4.12), it chooses write_same over unmap (when we advertise both) which causes the problem https://github.com/longhorn/longhorn/issues/6854
Investigate if we can disable advertising the
write_same
capability for Longhorn deviceAdditional context
https://github.com/longhorn/website/pull/784#discussion_r1355912219
Longhorn version >= v1.4.0